Subject: RE: [xsl] xsl:if / variables / fancy / confusing From: "Johnathon Wright" <jw@xxxxxxxxxxxxx> Date: Fri, 18 Nov 2005 09:39:19 -0600 |
</xsl:for-each> </select> </xsl:for-each>
Hi Johnathon,
You cannot use attribute value templates within attributes that are expected to contain XPath
expressions themselves. Not a very nice solution, but you could use:
<xsl:if test="/configuration/details/errors/*[local-name() = concat('attribute_', attribute_id)]">
<xsl:attribute name="style">xyz</xsl:attribute>
</xsl:if>
Regards, Geert
------------------------------
Date: Thu, 17 Nov 2005 22:37:44 -0000 To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> From: "Michael Kay" <mike@xxxxxxxxxxxx> Subject: RE: [xsl] xsl:if / variables / fancy / confusing
Don't try to pack meaning and structure into element names. Instead of <attribute_285>, use <attribute id="285">. It's much easier to manipulate.
Michael Kay
http://www.saxonica.com/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] xsl:if / variables / fanc, Michael Kay | Thread | [xsl] Supposed to post XML variable, Bruso, John |
RE: [xsl] Static type-checker, Michael Kay | Date | [xsl] XSL from XSL, Fraser Goffin |
Month |