In XSLT, how do you select/copy part of the document as text only?
The change I want to make is to take part of the tree (tags and values both) and output it as text only (preferably with brackets HTML-encoded).
I tried to put a CDATA around my copy-of, but it simply put the copy-of command inside my document.
Edit:
See comment below
Try this, but note that it won’t handle nested CDATA correctly: