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] Getting an rcsdate value from outside


You could customize the template named 'rcsdate.format' in
website-common.xsl.  It is used to populate the footer, and currently it
just returned the config param value.  But you could modify it to check a
new parameter that you set on the command line when you run the process:

<xsl:template name="rcsdate.format">
  <xsl:param name="rcsdate" select="./config[@param='rcsdate']/@value"/>
  <xsl:choose>
    <xsl:when test="$myrcsdate != ''">
      <xsl:value-of select="$myrcsdate"/>
    </xsl:when>
    <xsl:otherwise>
      <xsl:value-of select="$rcsdate"/>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>


Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net


----- Original Message ----- 
From: "Steinar Bang" <sb@dod.no>
To: <docbook-apps@lists.oasis-open.org>
Sent: Friday, April 02, 2004 12:23 AM
Subject: [docbook-apps] Getting an rcsdate value from outside


> When generating a Website using DocBook Website 2.5.0, I'm replacing
> an index.html file generated by Doxygen in a subdirectory, with an
> index.html file with a navigational ToC bar on the left.
>
> I would like to get the Doxygen generation date into the rcsdate param
> of the Website page I'm using to generate this index.html page.
>
> I tried using an external entity.  But XML disallows using external
> entities inside attribute values.
>
> Does anyone know of a workaround?
>
> I guess I could use perl to patch the XML source?  Or perhaps patch a
> copy of the XML source? (I already do this with some XIncluded text
> files, that are too large for my version of xsltproc)
>
> But I'd rather not, if there is a simpler fix.
>
> 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/.
>
>
>




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