S
shaun
I'd like to do a for-each over a group of attributes except one specific
one.
e.g.
given an element like:
<gluteus_maximus snow_white="pert" queen="callipygous"
dwarf="dontGoThere"/>
I want to loop over both snow white and tinkerbell but not the dwarf.
I could do:
<xsl:for-each select="@*">
<xsl:if test="not(name()='dwarf')">
<!-- do stuff here -->
</xsl:if>
</xsl:for-each>
but is there a cleverer way of using the for-each selection criterion to
exclude only one element?
thanks
shaun
one.
e.g.
given an element like:
<gluteus_maximus snow_white="pert" queen="callipygous"
dwarf="dontGoThere"/>
I want to loop over both snow white and tinkerbell but not the dwarf.
I could do:
<xsl:for-each select="@*">
<xsl:if test="not(name()='dwarf')">
<!-- do stuff here -->
</xsl:if>
</xsl:for-each>
but is there a cleverer way of using the for-each selection criterion to
exclude only one element?
thanks
shaun