[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: getting Not well formed xslt output

Subject: RE: getting Not well formed xslt output
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Tue, 10 Jul 2001 23:46:49 +0100
xslt output markup
> 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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.