|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Can XSL recognize IE5 versus Netscape?
:In http://www.mulberrytech.com/xsl/xsl-list/processor-version.xsl, I
:used multiple namespaces and <choose> elements in each namespace to
:control the output. The stylesheet relies on web browsers ignoring
:non-HTML elements, since for each namespace, the elements in the other
:namespace are literal result elements that are copied to the result
:tree.
:Tony Graham
Hey Tony, why did you do this?
<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>
Why not just
<xsl:otherwise>
<msxsl:if test=".">
</msxsl:if>
<p>Vendor: <xsl:value-of select="system-property('xsl:vendor')"/>
<br/>Vendor URL:
<xsl:value-of select="system-property('xsl:vendor-url')"/></p>
</xsl:otherwise>
Wouldn't that be the the same, every time your test is true it
will do nothing and then continue?
Eddy
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|

Cart








