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


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