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

Re: Multiple tranformations of a given element using X

Subject: Re: Multiple tranformations of a given element using XSL
From: Mike Brown <mike@xxxxxxxx>
Date: Tue, 10 Dec 2002 12:04:56 -0700 (MST)
Re:  Multiple tranformations of a given element using X
Ram UGroups wrote:
> Can anybody please let me know if there is a way to
> write different templates for different requirements
> so that a template can work on already modified DOM.
> 
> To make it more clear, after I change an element name
> during the first pass, if I would like to change the
> content of the element during the second pass, the
> second template is working on the source tree (which
> is never modified) and hence the first change is being
> compromised on the output tree. If there is a way I
> can make the second template work on the DOM modified
> by the first template, then I can probably use the new
> element name in the 'match' variable of the second
> template.

Why do you need two passes?

The way you described your problem, it sounds like an ordinary XSLT task. When
you create the new element, create its content at the same time.

Please post an example of the original XML (the source tree), and an example
of what output you want.

Mike

-- 
  Mike J. Brown   |  http://skew.org/~mike/resume/
  Denver, CO, USA |  http://skew.org/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.