[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Using attributes with XPath

Subject: Re: Using attributes with XPath
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 24 Aug 2006 14:56:26 +0100
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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2011 All Rights Reserved.