This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: access revnumber for footer


On Wed, Feb 06, 2002 at 05:16:34PM -0600, Matthew Braun wrote:
> 
> Tammy Fox <tfox@redhat.com> writes:
> 
> >How do I access the value of the revnumber to
> >add in a header or footer?
> 
> For the revision of an article, I used:
> 
>  <xsl:value-of select="//revhistory/revision[last()]/revnumber"/>
> 
> This assumes that revhistory contains a list of revisions, ordered from
> earliest date to latest date, and that the current version of the document
> is the last entry in this list.  If it's the other way around, (rev history
> lists most-recent to earliest, and the doc is the first entry in the
> revhistory list) then I think you could just substitute first() for last()
> in the above expression.
> 

Thanks. Unfortunately, I forgot to mention that I am using DSSSL.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]