Re: XSLT and XML in the same document
er, yeah. So it should be:
<xsl:variable name="foo-msxml" select="msxsl:node-set()"/> <xsl:variable name="foo-exslt" select="exslt:node-set()"/>
<xsl:variable name="is-msxml"> <xsl:choose> <xsl:when test="function-available(msxsl:node-set())">true</ .. ..
and then in the body of the code:
<xsl:choose> <xsl:when test="$is-msxml">...
or some other long-winded, verbose approach. Oh don't forget whitespace. Then then different versions of MSXML and whether they're in side-by-side or replace mode. Then there's whether the result tree is serialized or parsed directly... and um loads of other considerations that I don't know because I gave up long ago and move to the garden of peace and tranquility that is XSLT 2.0.
> I guess its good that people persist with client side XSLT (as one day > it might be worthwhile), but I reckon its just a hangover from the > original intentions of XML.
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format