Subject: [xsl] Mulberry processor-version.xsl From: Dan Diebolt <dandiebolt@xxxxxxxxx> Date: Fri, 30 Nov 2001 23:35:59 -0800 (PST) |
There is a unusual stylesheet at Mulberry that I would like to ask some questions about: http://www.mulberrytech.com/xsl/xsl-list/processor-version.xsl Q1) There is no template but I recall reading somewhere where the entirety of the file can be a template body sans an explicit <xsl:template> wrapper. Could someone clarify? Q2) What does this code accomplish? Doesn't the test always fail? <xsl:when test="false()"> <msxsl:if test="."> <p>Vendor: Microsoft <br/>Processor version: Original IE5 (or old version of other processor)</p> </msxsl:if> </xsl:when> In reference to the following: <msxsl:choose> <msxsl:when test="."> </msxsl:when> <msxsl:otherwise> <p>Vendor: <xsl:value-of select="system-property('xsl:vendor')"/> <br/>Vendor URL: <xsl:value-of select="system-property('xsl:vendor-url')"/></p> </msxsl:otherwise> </msxsl:choose> Q3) What is <msxsl:when test="."> testing? What is the current node? Q4) Why are xsl:* statements embedded within msxsl:* statements? ------------------------------------------------------- <?xml version="1.0"?> <?xml-stylesheet href="processor-version.xsl" type="text/xsl"?> <html xsl:version="1.0" xmlns:msxsl="http://www.w3.org/TR/WD-xsl" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/TR/xhtml1/strict"> <head> <title>XSLT Processor Version</title> </head> <body> <xsl:choose> <xsl:when test="false()"> <msxsl:if test="."> <p>Vendor: Microsoft <br/>Processor version: Original IE5 (or old version of other processor)</p> </msxsl:if> </xsl:when> <xsl:otherwise> <msxsl:choose> <msxsl:when test="."> </msxsl:when> <msxsl:otherwise> <p>Vendor: <xsl:value-of select="system-property('xsl:vendor')"/> <br/>Vendor URL: <xsl:value-of select="system-property('xsl:vendor-url')"/></p> </msxsl:otherwise> </msxsl:choose> </xsl:otherwise> </xsl:choose> </body> </html> __________________________________________________ Do You Yahoo!? Buy the perfect holiday gifts at Yahoo! Shopping. http://shopping.yahoo.com XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] CDATA required for javasc, David Carlisle | Thread | Re: [xsl] Mulberry processor-versi, David Carlisle |
[xsl] Javascript and XSLT, Alvaro Mujica | Date | Re: [xsl] Mulberry processor-versi, David Carlisle |
Month |