Altova Mailing List Archives
>xsl-list Archive Home
>Recent entries
>Thread Prev - Re: [xsl] Create an end element - possible?
>Thread Next - Re: [xsl] Create an end element - possible?
Re: [xsl] Create an end element - possible?
To: xsl-list@-----.------------.---
Date: 10/3/2010 1:18:00 PM
[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/ --~------------------------------------------------------------------ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/ or e-mail: <mailto:xsl-list-unsubscribe@l...> --~--
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.

