Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

XSLT is the only way to do HTML templating on the client without using JS. I think that is valuable.


HTML templating with XSLT may be used to save data, too.

For example, if you build a social network profile page using XSLT, alice.xml and bob.xml can reference the same profile.xsl stylesheet which converts the XML profile data to the rendered HTML page. Since the profile.xsl stylesheet can be cached, whenever a new profile is visited, only the profile data in XML needs to be transferred.

Note that the templating can also be used to save data when rendering a single page. Imagine a Twitter clone that displays a list of tweets. If, hypothetically, 80 characters of Tweet data plus 500 characters of XSL template, produce 250 characters of HTML markup, you only need 3 tweets to start saving data (250x3=750 > 500+3x80=740).


XML+XSTL twitter clone in showHN in 3... 2... 1...


XML+XSLT is vastly, vastly underrated.


Last time I was playing with these were IE6/7 times.


and vastly misunderstood.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: