This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: getting Not well formed xslt output


> I have one problem like this:
> my node is like this:
> <ACTION TYPE="accept" LABEL="Next" task="go" DEST="#password" >

This isn't a node, it's a tag. Nodes are things in a tree, tags are things
in a serialized file.
>
> For SAXparsing in JAVA I make it well-formed like this:
> <ACTION TYPE="accept" LABEL="Next" task="go" DEST="#password"
> imtask="20"></ACTION>
>
> On This code if I apply XSLT I want output like this:
> <ACTION TYPE="accept" LABEL="Next" task="go" DEST="20" >(20
> is value of
> imtask)

XSLT produces a tree as output, and when the tree is serialized, it produces
well-formed XML. If you want to produce ill-formed XML (if there is such a
thing!) you will either have to write your own serializer, or try to cheat
by using disable-output-escaping="yes", writing the "markup" as &lt; and
&gt; characters.

Mike Kay
Software AG


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]