atom feed8 messages in org.oasis-open.lists.docbook-appsRe: CVS (Was Re: DOCBOOK-APPS: A pers...
FromSent OnAttachments
Richard SharpeApr 18, 2001 2:02 am 
Dan YorkApr 18, 2001 5:57 am 
Peter EisentrautApr 18, 2001 8:37 am 
Dan YorkApr 18, 2001 8:42 am 
Ramon CasellasApr 19, 2001 9:14 am 
Richard SharpeApr 19, 2001 4:35 pm 
Norman WalshApr 21, 2001 6:50 am 
Sebastian RahtzApr 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.