[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Conditional xsl:use-attribute-sets
> 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? No. Guessing at syntax isn't a good way of finding out what the spec allows - and this particular guess is miles off. Attribute sets are only useful if you know statically which attributes you want to add. Usually you're likely to know statically what the attribute values will be as well - though the value can in fact depend on the context node or on global variables. Regards, Michael Kay http://www.saxonica.com/ http://twitter.com/michaelhkay
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|