MozillaZine

Weekend Discussion

Friday February 18th, 2000

What *one* feature would you most like Mozilla to have by final release? If it's already on the slate to be in the final release, let us know why it's important to you. Just click the Responses link to join the conversation! Our forums are quite civil, and we'd love to hear your opinions.


#190 Re: Re: What makes XSLT so good

by spacecow <spacecow@mis.net>

Monday February 21st, 2000 11:26 AM

You are replying to this message

Ok, I'll give you my situation using Microsoft's XSLT parser/engine... I know it's sad, but I write an intranet for 500 users on IE5:

I have a TOC XML file for every section of my site, and one big one for the entire site. using XSL, I can have IE open the XML file and the translation file, and automagically output a table of contents "tree" that can expand three levels down. Since any update to the site triggers an update to the XML file, I have a way of getting everyone the correct table of contents without using frames (which suck), or serverside scripts (which would kill my wussy little server). The big deal that XSL has over CSS is that you can selectively display parts of the XML file, and you can include them in ways that CSS alone will not let you do (ie <p><xsl:attribute name="onclick">expandcollapse('<xsl:value-of select="docspec/@title"/>');</xsl:attribute></p> lets me include the title property of a docspec tag from the XML file as an arguement to the expandcollapse function in javascript. Also, there are conditionals, and quite a few other features that I use. This is one feature that I can definitely say kicks ass and fills that unavoidable niche of data reporting.