Re: Using attributes with XPath
> I use 1.0. I know that you can do lots of stuff in 2.0. the construct is legal in XSLT1, I try always to say explictly if I'm using xslt2 draft (as xslt 1 is currently the official version) > I don't agree with the confusing concepts between elements and > attributes, esp. with people that are just learning XSLT. It wasn't that anyone was _recommending it_ it was that the OP did it anyway and you commented that it wasn't allowed, whereas in fact it is. in XSLT 1 the parent of an attribute is an element, and match="@foo[parent::bar]" is a legal XSLT1 match pattern. David
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