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] 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





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