Forgot to add: If what you're trying to do is construct an element in the output stream, I strongly recommend that you actually use XSLT's ability to construct elements, rather than trying to force text into the stream and hope it will be treated as an element. As you've just discovered, most XML APIs do not consider the two concepts interchangable.
______________________________________ Joe Kesselman / IBM Research
