This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]