Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries [Thread Prev] >Thread Next - Re: XSLT 2.0 question: wrapping in an arbitrary number of elements XSLT 2.0 question: wrapping in an arbitrary number of elementsTo: NULL Date: 3/9/2009 10:31:00 AM Hi. I'm writing XSLT 2.0 templates and am trying to do the following without writing extension functions. I'm trying to go from this... <outer> <wrapin>one two three</wrapin> <wrapme>some text</wrapme> </outer> to this... <outer> <one> <two> <three>some text</three> </two> </one> </outer> wrapping the text in <wrapme> in an arbitrary number of elements based on and named after the text nodes under <wrapin>. I can't figure out a way to do this. I'm getting fairly well versed in XSLT 2.0, including using regular expressions and the new grouping elements/ functions but I haven't figured out a way to do this. Any help would be appreciated. Thanks. | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
