Re: expression hell
Try <xsl:when test=".[(../@first) and first-of-type()]"> --Mike > i want to test that my parent has a "first" attribute, and that > i'm the first child of my type. > > i've tried a bunch of things, and xt barfs on all of them. > i presume that if i can just get my  and () in the right place, > i can do it. > > of course i could break it up into separate xsl:if clauses, > but now i'm challenged. > > for example, this doesn't work: > <xsl:when test=".[../@first and first-of-type()]"> > > this works, but it tests the wrong thing > (it tests whether i have a "first" attribute, not my parent): > <xsl:when test=".[@first and first-of-type()]"> 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