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] Select Deepest Node only in Iteration


Subject: Re: [xsl] Select Deepest Node only in Iteration
From: "J. Zhang" <j.zhang@xxxxxx>
Date: Fri, 13 Jul 2007 14:13:09 +0200

YES!!!! It worked! :)

I have been puzzling about this for a day, and I could not see the
problem. Thank you very much Michael.

I probably will encounter some other problems when processing about
650.000 XML files, but I will post a new message then. :)

Cheers!
jz


Michael Kay wrote:
> I suspect you want something like this:
> 
> <xsl:for-each select="//*[matches(., concat('\W', $term, '\W'), 'im')]">
>   <xsl:sort select="count(ancestor::node())" order="descending"/>
>   <xsl:if test="position()=1">
>     <path>/<xsl:value-of select="saxon:path()"/></path>
>   </xsl:if>
> </xsl:for-each>
> 
> Michael Kay
> http://www.saxonica.com/


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