Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: XSLT modifying an xml dom tree?

From: Martin Honnen <mahotrash@-----.-->
To: NULL
Date: 8/1/2005 3:13:00 PM

Prashanth Ellina wrote:


> What should I do if I want to add another attrib element between the
> two already created. Can I treat the generated xml as a dom tree and do
> an AddAfterNode() or something?

No, XSLT is template based, while an input tree (in the sense of the 
XPath data model which is different from the DOM model) is transformed 
to an ouput tree there are no methods or functions inserting or adding 
nodes at a particular node. The whole approach is different, templates 
are processed and their contents is instantiated as part of the result 
tree being formed.
It does not help to think in DOM terms (and the W3C DOM does not have a 
AddAfterNode method at all), if you want to learn XSLT then you would 
better look at tutorials and introductions and look at example solutions.
If you want help here implementing an XSLT transformation then it is 
usually a good idea to show us your input XML data and the desired (XML 
or HTML or text) output.



-- 

	Martin Honnen
	http://JavaScript.FAQTs.com/


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent