|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] dynamic testing of an attribute
[NT2000] [TOMCAT3.1] [COCOON 1.8 - XALAN] I liked to know, wether an attribute for a the current node exists. The attribute's name is stored in an variable, say $attname ! I tried the following: <xsl:if test="./@*[name()=$attname]"> //does not work! <foo> <!-- add value of the $attname attribute to the tag foo as attribute --> <attribute name="width"> <xsl:value-of select="???"/> //how to specify the value of the attribute? </attribute> </foo> </xsl:if> Any help appreciated! TIA! - Christof XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|

Cart








