[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Create an end element - possible?
[x] cross solution wrote:
So now i have to find the "Start" and "End" Tags in the value-of content (the content of <Data> is only an example). Based on this information i have to create a new element "<w:p>" (this works). But to create the </w:p> element doesn't work. There is nothing like a <w:p> element or a </w:p> element in the data XSLT operates on. It operates on a tree of nodes. That tree might be created by parsing markup with start and end tags but when XSLT works on data there are no start tags or end tags, there are only nodes. And when you create output you also create a tree of nodes, you are not creating tags. So xsl:element creates an element node in a result tree, it does not create start or end tags. You might want to show us a sample of the input you have and the corresponding output you want to create with XSLT 1.0, then we can try to suggest an XSLT way of achieving that. -- Martin Honnen http://msmvps.com/blogs/martin_honnen/
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|