OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] Docbook, Subversion, and keyword substitution


Geoff Purchase wrote:
> If I create a single xml file and publish html as a single file then
> this works fine - but... that's not what I'm doing.  What I'm doing is
> creating books from several articles using xinclude and publishing html
> to multiple files.
>
> What I would like to see is the keyword substitution on every page, with
> the relevant dates

Well, of course in the first place it all depends on where the svn keywords
are sitting in your original document(s) - you can't have more distinct
revision dates in your output than you have in your source. So, if your
source is just one file, then it doesn't make much sense.

If your source is in multiple files, you should put a keyword in each of
those. Let's say you put it in article/articleinfo/releaseinfo, you could
add the keyword "closest" to the output document by adding something like
this to your customization layer:

<xsl:template name="user.footer.navigation">
  <p class="revisiondate">
    <xsl:value-of select="ancestor::releaseinfo[1]"/>
  </p>
</xsl:template>

Regards,
Claus

References:
http://www.docbook.org/tdg/en/html/releaseinfo.html
http://www.sagehill.net/docbookxsl/HtmlCustomEx.html#HTMLHeaders

-- 
Technical Communicator
Web: http://techwriter.dk/
Phone: (+45) 262 000 94
Email: claus@techwriter.dk





[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]