This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
[docbook-apps] Re: Contents of CVS $Id$
- From: Yoshihiro Toda <ystoda at yahoo dot co dot jp>
- To: docbook-apps at lists dot oasis-open dot org
- Date: Fri, 4 Jun 2004 09:13:48 +0100
- Subject: [docbook-apps] Re: Contents of CVS $Id$
- References: <200406031904.i53J4v318087@cocoa.inro.ca>
> Thanks for the solution. It works but not exactly as I want.
> I put the $Id$ keyword is the releaseinfo of each of the following:
> bookinfo, chapterinfo and sectioninfo (each section is in a separate
> file). However, when I am generating the complete book, the information
> written in the user.footer.content is that of bookinfo (and not of the
> individual files). That is misleading since it looks like all the
> files were modified the same date.
In that case, try "./*/releaseinfo" instead of "//releaseinfo". But make
sure all of book/chapter/section have releaseinfo element. It might be
better adding a case when an element doesn't have a releaseinfo, like:
<xsl:template name="user.footer.content">
<hr/>
<p class="releaseinfo">
<xsl:choose>
<xsl:when test="./*/releaseinfo">
<xsl:value-of select="./*/releaseinfo"/>
</xsl:when>
<xsl:otherwise>
<xsl:message terminate="no">releaseinfo not found</xsl:message>
</xsl:otherwise>
</xsl:choose>
</p>
</xsl:template>
--
Yoshihiro Toda
<mailto:ystoda@yahoo.co.jp>
__________________________________________________
Do You Yahoo!?
http://bb.yahoo.co.jp/
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.