matching elements with no attributes
Is there a way to match an element just when the element itself has no attributes?
For example, in my text I have:
<l>bla bla bla</l> <l part='F'>bla bla</l> <l part='I'>bla bla</l>
I want to declare different rules for <l> when it has no attributes and when he has attributes. I've tryed using
<xsl:when test="l[@part='F']"> bla </xsl:when>
<xsl:otherwise> <-- used for an l element with no attributes --> bla </xsl:otherwise>
but it doesn't work because I need to declare the same variable for the first xsl:when and for the xsl:otherwise.
Many tanks in advance
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