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.


  <!-- existing code -->
  <xsl:template match="/">
  <!-- proposed new -->
      <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')"/>
    <!-- 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 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:42:18 UTC