RE: [docbook-apps] Howto customize title for legalnotice

From
Mauritz Jeanson <>
Date
2007-10-08T16:59:16+00:00
ID
001201c809cc$7ed05520$71ea1a51@D7MZ171J
Thread
RE: [docbook-apps] Howto customize title for legalnotice
> -----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