xsl-list
[Top] [All Lists]

RE: "Text" Representaion of Xml in a variable

2003-06-02 11:02:12
[ David Carlisle]

I have no idea what you mean by "element localname Output &amplt;"
but if you really want to copy all elements with all their attributes,
that should just be  <xsl:copy-of select="$var"/> where your 
fragment is
stored in the variable var.


I think that the OP wants to escape all the angle brackets, etc, in his
xml, then output the escaped text.  Presumably he thinks he needs to do
that for some following process.

OP, if that is what you want to do, it will be hard to find people who
want to help much, because it sounds like an abomination.  Perhaps there
is a way to do what you need to do and still output real XML. not
escaped garbage.  Tell us why you think you need to do such a thing.
Maybe we can help you avoid it.

Cheers,

Tom P.

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>