Re: [docbook-apps] stylesheet version on stdout and html

From
Bob Stayton <>
Date
2009-03-16T19:36:48+00:00
ID
00e901c9a66e$7fe1fd20$6400a8c0@pazu
Thread
Re: [docbook-apps] stylesheet version on stdout and html
The stylesheets have a global param named 'VERSION' that has the
release version.  You can add this to your customization
layer to output the information to standard error:

<!-- side effect of this empty param is to output a message -->
<xsl:param name="foo">
  <xsl:message>
    <xsl:text>DocBook XSL stylesheet VERSION is: </xsl:text>
    <xsl:value-of select="$VERSION"/>
  </xsl:message>
</xsl:param>

Note that chunked HTML output already includes a meta element 
name="generator"
with the $VERSION info.

Bob Stayton
Sagehill Enterprises



----- Original Message ----- 
From: "Sam Steingold" <>
To: "docbook-apps" <>
Sent: Monday, March 16, 2009 12:24 PM
Subject: [docbook-apps] stylesheet version on stdout and html


> It is possible to arrange for the stylesheet version to be printed to
> the stdout as it is being read and saved into the output (html and
> nroff)?
>
> Every now and then I am bitten by cataloging intricacies where I think
> I am using the snapshot while I am not.
>
> thanks.
>
> -- 
> Sam Steingold <http://sds.podval.org>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: 
> For additional commands, e-mail: 
>
>
>