This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Can XSL recognize IE5 versus Netscape?
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: Can XSL recognize IE5 versus Netscape?
- From: "Medina, Edward" <emedina at btg dot com>
- Date: Wed, 10 May 2000 15:01:30 -0400
- Reply-To: xsl-list at mulberrytech dot com
: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