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

Processing only certain nodes in a document fragment

Subject: Processing only certain nodes in a document fragment
From: Glenn MacGregor <gtm@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 18 Feb 2004 13:26:25 -0800
document fragment
Hi All,

Thanks for all the help so far! I am having a problem with the following 
document fragment:

<foreach>
<in>
<item>test1</item>
<item>test2</item>
<item>test3</item>
<item>test4</item>
<item>test5</item>
</in>
<do>
<tr><td><var/></td><td><var/></td></tr>
<tr><td><var/> Test</td><td><var/> Test</td></tr>
</do>
</foreach>

I need a template which will loop through all the <item> tags and replace the 
"<var/>" tag in the <do> section with CDATA of the current item tag echoing all 
the rest of the do tag to the result (without the <do> tag).

Is this possible? If there is a better way to handle this please let me know I 
have complete control the document, I can put any structure or XML in there.

  Thanks 




Glenn MacGregor
HighStreet Networks

-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/

 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.