W3C home > Mailing lists > Public > spec-prod@w3.org > July to September 2008

Reporting the XSLT processor in xmlspec.xsl

From: Jonathan Robie <jonathan.robie@redhat.com>
Date: Wed, 24 Sep 2008 14:36:16 -0400
Message-ID: <48DA88A0.3010705@redhat.com>
To: spec-prod@w3.org

On the XQuery / XSL family of specs, we have lots of different operating 
systems, JREs, and XSLT processors.

To make it a little easier to understand why different editors get 
different results with the same stylesheets, I would like all of our 
stylesheets to report the XSLT processor used.

I propose adding the following code to xmlspec.xsl.

Jonathan

  <!-- existing code -->
  <xsl:template match="/">
  <!-- proposed new -->
    <xsl:comment>
      <xsl:text>XSLT Processor: </xsl:text>
      <xsl:value-of select="system-property('xsl:vendor')"/>
      <xsl:if test="system-property('xsl:version') = '2.0'">
        <xsl:value-of select="system-property('xsl:product-name')"/>
        <xsl:value-of select="system-property('xsl:product-version')"/>
      </xsl:if>
    </xsl:comment>
    <!-- end of proposed new code -->
    <xsl:if test="//prod[@num] and //prod[not(@num)]">
   <!-- dot dot dot -->
 
Received on Wednesday, 24 September 2008 18:37:11 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:19:14 GMT