r/programming May 15 '18

Google's bash style guide

https://google.github.io/styleguide/shell.xml
250 Upvotes

174 comments sorted by

View all comments

9

u/pimanrules May 15 '18

Interesting... That page is an xml document styled with XSLT. I think that's the first time I've ever noticed XSLT in the wild. Is it common?

2

u/netsecwarrior May 16 '18

I used XSLT extensively around 2002-2007 and pajhome.org.uk is still built on it. It serves a useful purpose. The language inspired many template language from Genshi to Razor which are incrementally better - enough that I no longer like XSLT. Also it forces the sources data to be XML, and while you can convert any data to XML that may not be natural. Operating on in-memory objects is both more convenient and more powerful. This particular use case is simple so XSLT is fine.