[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: XPATH to be used in a for-each loop wherein the X

Subject: Re: XPATH to be used in a for-each loop wherein the XPATH is stored in a <xsl:variable>
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Fri, 25 Jul 2003 13:32:20 -0400
rahul patwardhan
Rahul,

The only other way to do it is to use two stylesheets. The first generates a stylesheet in which the XPath appears as an honest XPath, not a string. Then you run this stylesheet over your source document.

Check the FAQ or another online resource on stylesheets to generate stylesheets. (Your first stylesheet may be pretty simple: it's just a copy of your second stylesheet with a call to include the value of your variable as the expression in the relevant spot.) Once you've tried that, ask again if you get stuck: there are list readers who have done this.

Regards,
Wendell

At 09:10 AM 7/25/2003, you wrote:
I want to use an XPATH in a for-each loop.The XPATH is
stored in a variable as a string. I want to traverse
the XPATH in a for-each loop but i dont want to use
the (xalan:evaluate) function. Are there any other
ways of doing this?


======================================================================
Wendell Piez                            mailto:wapiez@xxxxxxxxxxxxxxxx
Mulberry Technologies, Inc.                http://www.mulberrytech.com
17 West Jefferson Street                    Direct Phone: 301/315-9635
Suite 207                                          Phone: 301/315-9631
Rockville, MD  20850                                 Fax: 301/315-8285
----------------------------------------------------------------------
  Mulberry Technologies: A Consultancy Specializing in SGML and XML
======================================================================


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



Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.