xsl-list
[Top] [All Lists]

Multiple tranformations of a given element using XSL

2002-12-10 11:16:43
Hello,

I do have multiple requirements that need to be
applied to a given element during an XML-XML
transformation. And I need to do it using only on XSL
file.

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.

In essence, the first set of templates will modify the
DOM during the first pass, the modified DOM will be
the source tree for the second set of templates and so
on.

I am not sure if this is possible using a style sheet
and not any programming language. I appreciate any
input.


Thanks so much,
Ram.

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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