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] XPATH question


Subject: RE: [xsl] XPATH question
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Thu, 7 Aug 2003 21:52:37 +0100

> Now, I can do this if I select the sumStat matching my 
> criteria and then its 
> parent, something like 
> select="fullPathToSumStat/sumStat[@type='vald'][. 
> &gt; 4]/parent::*" (untested)
> 
> but is there some way to do this avoiding using an axis?

You can't do anything in XPath without using an axis, but you can avoid
going down and then back up:

fullPathToSumStat[sumStat[@type='vald'][. &gt; 4]]

This expression uses the child axis twice, the attribute axis once, and
the self axis once.

Michael Kay


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread
Keywords
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