Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: XSLT modifying an xml dom tree? >Thread Next - Re: XSLT modifying an xml dom tree? Re: XSLT modifying an xml dom tree?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/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
