xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

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
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor