RE: [xsl] Matching elements with specific multiple parents

Subject: RE: [xsl] Matching elements with specific multiple parents
From: "David Lee" <dlee@xxxxxxxxxxx>
Date: Fri, 1 Apr 2011 17:10:10 -0700
Ah !!!!!
Can this stack ? Can I do :
	parent::parent::foo ?


----------------------------------------
David A. Lee
dlee@xxxxxxxxxxx
http://www.xmlsh.org


-----Original Message-----
From: David Carlisle [mailto:davidc@xxxxxxxxx] 
Sent: Friday, April 01, 2011 4:58 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Cc: David Lee
Subject: Re: [xsl] Matching elements with specific multiple parents


On 02/04/2011 00:53, David Lee wrote:
> child[parent::foo or parent::bar]
> is the same as
> child[../foo or ../bar]
>

No, it's not.  ../foo is parent::node()/child::foo which means sibling foo,
but parent::foo means what it says, parent with name foo.


David

Current Thread