This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
[docbook-apps] Re: rcsdate not appearing
- From: Steinar Bang <sb at dod dot no>
- To: docbook-apps at lists dot oasis-open dot org
- Date: Tue, 24 Feb 2004 20:52:47 +0100
- Subject: [docbook-apps] Re: rcsdate not appearing
- Cancel-lock: sha1:f5Sdr8gSq28dBsfq4N83PJ7ei7U=
- Organization: Probably a good idea
- References: <871xom57cz.fsf@home.lan> <403B10B3.1080903@sophia.inria.fr>
>>>>> Sébastien Georget <Sebastien.Georget@sophia.inria.fr>:
> Steinar Bang wrote:
>> I have the following line in my layout.xml file
>> <config param="rcsdate" value="$Date: 2004/02/23 11:47:17 $"/>
>> No date appears at the bottom left of my generated pages, that I
>> can see.
[snip!]
> I added the following to my xsl to display the last modification date :
> <xsl:template name="rcsdate.format">
> <xsl:param name="rcsdate" select="./config[@param='rcsdate']/@value"/>
> Dernière modification : <xsl:value-of select="substring($rcsdate, 7, 11)"/>
> </xsl:template>
This is a nice way to lose the $Date$ stuff from the date.
However, the rcsdate.format template isn't empty in the
website-common.xsl file, so customizing this template shouldn't make
any difference in the date appearing.
I tried this anyway, by putting the following into my local
customization layer:
<xsl:template name="rcsdate.format">
<xsl:param name="rcsdate" select="./config[@param='rcsdate']/@value"/>
Last changed: <xsl:value-of select="substring($rcsdate, 7, 11)"/>
</xsl:template>
This made the text "Last changed:" appear at the bottom of the
generated HTML pages.
Ie. the rcsdate parameter value isn't picked up, or is seen as empty
somehow. But why? Is there a subtle misspelling somewhere?
Here are all of my parameters in the layout.xml file, and the others
are picked up and used:
<config param="navbgcolor" value="#e0e0e0"/>
<config param="navtocwidth" value="205px"/>
<config param="homebanner-tabular" value="graphics/menutop.png"/>
<config param="banner-tabular" value="graphics/menutop.png"/>
<config param="rcsdate" value="$Date: 2004/02/24 13:24:34 $"/>
Thanx!
- Steinar
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.