4 ms·
I built a whole website based on spitting out XML and using XSLT on either the server or (optionally; hidden behind a flag) in the browser to transform the XML
by vidarh 12y ago
I built a whole website based on spitting out XML and using XSLT on either the server or (optionally; hidden behind a flag) in the browser to transform the XML to HTML.
It gave us 90% of our API "for free": On any page you could add an argument to the URL to spit out the XML data for the page, and others to get the items on the page as ATOM or RDF.
The developers hated the constraints it placed on them. But it was exactly because of the things the developers were prone to doing that was the reason for structuring it that way in the first place.