| From | Sent On | Attachments |
|---|---|---|
| Richard Sharpe | Apr 18, 2001 2:02 am | |
| Dan York | Apr 18, 2001 5:57 am | |
| Peter Eisentraut | Apr 18, 2001 8:37 am | |
| Dan York | Apr 18, 2001 8:42 am | |
| Ramon Casellas | Apr 19, 2001 9:14 am | |
| Richard Sharpe | Apr 19, 2001 4:35 pm | |
| Norman Walsh | Apr 21, 2001 6:50 am | |
| Sebastian Rahtz | Apr 23, 2001 1:01 am |
| Subject: | Re: CVS (Was Re: DOCBOOK-APPS: A perspective on DocBook and DSSSL) | |
|---|---|---|
| From: | Ramon Casellas (case...@infres.enst.fr) | |
| Date: | Apr 19, 2001 9:14:44 am | |
| List: | org.oasis-open.lists.docbook-apps | |
On Wed, 18 Apr 2001, Dan York wrote:
<date><?cvsdate value="$Date$"></date>
That's what I am currently implementing in the DB2LaTeX stylesheets...
doc.xml
-------------- <doc> <?cvs $Id: abstract.mod.xsl,v 1.3 2001/04/16 16:02:37 rcasellas Exp $ ?> <?cvs $Author: rcasellas $ ?> <?cvs $Revision: 1.3 $ ?> </doc>
doc.xsl
-------------- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml"/>
<xsl:template match="doc"> <xsl:apply-templates/> </xsl:template>
<xsl:template match="processing-instruction('cvs')"> <xsl:choose> <xsl:when test="contains(.,'Author')"> <xsl:element name="theauthor"> <xsl:value-of select="substring-after(substring-before(.,' $'),'$Author: ')"/> </xsl:element> </xsl:when> <xsl:when test="contains(.,'Id:')"> <xsl:element name="theId"> <xsl:value-of select="substring-after(substring-before(.,'$'),'$Id: ')"/> </xsl:element> </xsl:when> <xsl:when test="contains(.,'Revision:')"> <xsl:element name="therevision"> <xsl:value-of select="substring-after(substring-before(.,'$'),'$Revision: ')"/> </xsl:element> </xsl:when> </xsl:choose> </xsl:template> </xsl:stylesheet>
out.xml
--------- <?xml version="1.0" encoding="utf-8"?>
<theId>abstract.mod.xsl,v 1.3 2001/04/16 16:02:37 rcasellas Exp</theId> <theauthor>rcasellas</theauthor> <therevision>1.3</therevision>
Hope this helps
Regards R.
// Ramon Casellas GET/ENST/INFRES/RHD/C206 // http://db2latex.sourceforge.net





