[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Mulberry processor-version.xsl

Subject: Mulberry processor-version.xsl
From: Dan Diebolt <dandiebolt@xxxxxxxxx>
Date: Fri, 30 Nov 2001 23:35:59 -0800 (PST)
processor version test
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.