|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: is there a generic way to iterate through all attr
You can use @* or attribute::*
ex. <xsl:for-each select="@*">
will loop through all the attributes of the current node.
for what you sound like you are doing, it may be better to call a template
to process attributes -
<xsl:template match="*">
tag: <xsl:value-of select="name()"/>
<xsl:apply-templates select="@*"/>
value: <xsl:value-of select="."/>
</xsl:template>
<xsl:template match="@*">
attribute: <xsl:value-of select="name()"/>
</xsl:template>
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








