I need to transform the text in body tag and append the pre tag...something like:
I have tried something like this:
This works fine. However, this is actually copying the xml structure first in memory and then recreating the entire xml.
Is there a way in xslt i could navigate to the required node and append <pre> within the body tag. Essentially i am thinking if there is a clean way to do it.
SCJP 1.4, SCWCD 1.4<br /> <br />Thanks in advance!<br />Jayashree.
And the way to do that is to replace the text with this:
That's different than inserting a <pre> element, so I don't quite understand why you chose to do something different (and possibly wrong) just to save making a lot of code changes. However perhaps you really do need the <pre> tags as text rather than as markup.
Joined: Sep 27, 2004
yes precisely. this is not only to save lot of code change, but is also shared by another application.