Next in thread → Next in month →

Re: [docbook-apps] Re: Saxon 9

From
Dave Pawson <>
Date
2008-08-19T10:38:30+00:00
ID
Thread
Re: [docbook-apps] Re: Saxon 9
Florent Georges wrote:
> Dave Pawson wrote:
> 
>   Hi Dave,
> 
>> That would be a nice piece of debug information to add either way?
>> Especially as docbook moves towards v5 and xslt 2.0
> 
>   Yes, good idea.  It would be nice to have something like the
> following in each docbook.xsl (for XSL-FO, HTML, XHTML, ...), somewhere
> near the top of the template rule matching "/":
> 
>     <xsl:comment>
>        <xsl:text>&_#10;    Version:    </xsl:text>
>        <xsl:value-of select="system-property('xsl:version')"/>
>        <xsl:text>&_#10;    Vendor:     </xsl:text>
>        <xsl:value-of select="system-property('xsl:vendor')"/>
>        <xsl:text>&_#10;    Vendor URL: </xsl:text>
>        <xsl:value-of select="system-property('xsl:vendor-url')"/>
>        <xsl:text>&_#10;</xsl:text>
>     </xsl:comment>
> 
> in order to have a comment like this one at the top of each generated
> file:
> 
>     <!--
>        Version:    2.0
>        Vendor:     SAXON 9.0.0.6 from Saxonica
>        Vendor URL: http://www.saxonica.com/
>     -->


For the fo output, (guessing that newbies don't look at the fo)
perhaps an xsl:message?

So many people rely on the installed Java for the transform,
it might be instructive for them to see
which engine they were using?

regards



regards

-- 
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk
Next in thread → Next in month →