Subject: Re: [xsl] Conditional xsl:use-attribute-sets From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Mon, 01 Jun 2009 15:44:11 -0400 |
Am I doing something wrong because this is not working:
<fo:table-row hyphenate="true"> <xsl:if test="position() mod 2 = 0"> <xsl:attribute name="xsl:use-attribute-sets">background-gray</xsl:attribute> </xsl:if>
Is that the correct way to call an attribute set conditionally?
<xsl:attribute-set name="my:background-gray"> <xsl:attribute name="background-color">#dddddd</ <xsl:attribute name="border">#222222</ </xsl:attribute-set>
<xsl:template name="my:background-gray"> <xsl:attribute name="background-color">#dddddd</ <xsl:attribute name="border">#222222</ </xsl:template>
<fo:table-row hyphenate="true"> <xsl:if test="position() mod 2 = 0"> <xsl:call-template name="my-background-gray"/> </xsl:if> ....
-- XSLT/XSL-FO/XQuery hands-on training - Los Angeles, USA 2009-06-08 Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video Video lesson: http://www.youtube.com/watch?v=PrNjJCh7Ppg&fmt=18 Video overview: http://www.youtube.com/watch?v=VTiodiij6gE&fmt=18 G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Male Cancer Awareness Nov'07 http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Conditional xsl:use-attribute, Karl Stubsjoen | Thread | Re: [xsl] Conditional xsl:use-attri, G. Ken Holman |
[xsl] Conditional xsl:use-attribute, Karl Stubsjoen | Date | Re: [xsl] Conditional xsl:use-attri, G. Ken Holman |
Month |