Re: [xsl] Matching elements with specific multiple parents

Subject: Re: [xsl] Matching elements with specific multiple parents
From: David Carlisle <davidc@xxxxxxxxx>
Date: Sat, 02 Apr 2011 00:57:39 +0100
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