S
Stryder
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.
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.