« Return to Thread: Howto customize title for legalnotice

RE: Howto customize title for legalnotice

by spr :: Rate this Message:

Reply to Author | View in Thread

Sorry, made same mistake 2nd time within a week :(
Will be more careful now...

~spr

Mauritz Jeanson wrote:
> -----Original Message-----
> From: spr
>
> My minimal customization is:
> <?xml version="1.0" encoding="utf-8"?>
> <xsl:stylesheet
>     xmlns:xsl   = "http://www.w3.org/1999/XSL/Transform"
>     xmlns:fo    = "http://www.w3.org/1999/XSL/Format"
>     xmlns:d     = "http://docbook.org/ns/docbook"
>     version     = "5.0"
>     xmlns:l     = "http://docbook.sourceforge.net/xmlns/l10n/1.0">
>
>   <xsl:import
>     href    = "../docbook-xsl-ns-1.73.2/fo/docbook.xsl" />
>
>   <xsl:attribute-set name="formal.title.properties">
>   <xsl:attribute name="color">
>     <xsl:choose>
>       <xsl:when test = "self::legalnotice">red</xsl:when>
>       <xsl:otherwise>green</xsl:otherwise>
>     </xsl:choose>
>   </xsl:attribute>
>   </xsl:attribute-set>


Since you use the XSL-NS stylesheets, you must use

 <xsl:when test = "self::d:legalnotice">red</xsl:when>

And the value of the version attribute should be 1.0.

/MJ




---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
~spr

 « Return to Thread: Howto customize title for legalnotice