Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 13th, 2009, 10:31 PM
Registered User
 
Join Date: Apr 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Recursive Xpath

Hi,
Does anyone knows how can I represent the xpath for:
/e1/e2/e2/.../e2/e3 ( I can have an undefined number of e2) ?

Thanks
 
Old May 14th, 2009, 03:28 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

/e1//e3[not(ancestor::*[not(self::e1|self::e2)])]
__________________
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer\'s Reference





Similar Threads
Thread Thread Starter Forum Replies Last Post
Recursive Coding arnabghosh Classic ASP Professional 2 July 9th, 2007 02:06 AM
Recursive template - Please Help! Tre XSLT 5 March 20th, 2007 11:23 AM
recursive query cathiec SQL Language 2 August 25th, 2006 05:58 AM
recursive XSLT Help boates XSLT 2 January 11th, 2006 03:50 PM
Recursive Transform chuck.boyer XSLT 0 December 5th, 2005 05:51 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.