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 6:35:00 AM Hi, I find the XSLT programming model very alien and un-intuitive. The most restrictive thing is that I cannot maintain state across function/template calls. This is what I am looking to do Input document: <booksinformation> <book> <title>book title 1</title> <author>Kramer</author> </book> <book> <title>book title 2</title> <author>Terry</author> </book> <book> <title>book title 3</title> <author>Terry</author> </book> </booksinformation> Output document: <booksinformation> <bookdata> <book author='1'> <title>book title 1</title> </book> <book author='2'> <title>book title 2</title> </book> <book author='2'> <title>book title 3</title> </book> </bookdata> <authordata> <author id="1" name="Kramer"/> <author id="2" name="Terry"/> </authordata> </booksinformation> The output document avoid duplication of data by maintaining a subtree for authors into which the bookdata can point. Thank you, Prashanth | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
