Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Transformation of text with nested elements Transformation of text with nested elementsTo: NULL Date: 5/10/2005 7:46:00 PM Hi,
i have a xml passage that looks like this:
<title>this is a <super>title</super> with superscript <sub>and</sub>
subscript.</title>
The transformation should do the following things:
- preservere the structure
- change *all* text to uppercase
The result should be the following:
<title>THIS IS A <super>TITLE</super> WITH SUPERSCRIPT <sub>AND</sub>
SUBSCRIPT.</title>
I searched the whole day for a working solution but couldn't find anything.
This is what i am able to do up to now:
- uppercase the whole string but loose the nested elements ("THIS IS A
TITLE WITH SUPERSCRIPT AND SUBSCRIPT"; simply by matching "title" and using
"translate()" on ".")
- preserver the structure and uppercase the nested elements ("This is a
<super>TITLE</super> with superscript <sub>AND</sub> subscript.</title>";
matching "title", calling "apply-templates", matching "sub" and "super",
inserting sub/super-elements and using "translate()" on ".").
Has anyone an idea how a could realize this?
TIA
Mathias
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
