Next in thread → Next in month →

Re: [docbook-apps] Controlling header color from the Makefile

From
Thomas Schraitle <>
Date
2005-07-16T08:29:26+00:00
ID
Thread
Re: [docbook-apps] Controlling header color from the Makefile
Hi,

On Saturday 16 July 2005 08:43, Bob Stayton wrote:
> Unfortunately, the syntax you have suggested is not permitted in XSLT.
> Putting an <xsl:choose> inside an attribute-set will yield an error
> because an attribute-set only takes <xsl:attribute> child elements.  I
> think you meant to put the <xsl:choose> inside each <xsl:attribute>
> element, since xsl:attribute can take a template body.
>
> <xsl:attribute-set name="attset">
>   <xsl:attribute name="color">
>     <xsl:choose>
>       <xsl:when test="$internal.doc = '1'">black</xsl:when>
>       <xsl:otherwise>blue</xsl:otherwise>
>     </xsl:choose>
>   </xsl:attribute>
>   [other attributes defined the same way]
> </xsl:attribute-set>

Bob, you are right, of course. I meant it that way. :) Last time I 
stumpled over the same situation and did it the wrong way. Unfortunatly I 
remembered it just wrong. ;)


Tom

-- 
Thomas Schraitle
Next in thread → Next in month →