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

Re: More entity confusion and my opinion on the right way

Subject: Re: More entity confusion and my opinion on the right way
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 7 Jan 1999 17:31:56 GMT
msxml unregistered class
> since the & can appear in the literal form, shouldn't it remain in the
> literal form when it is written back out from the result tree?

but it is not in a CDATA section there.

If the XSL stylesheet has <![CDATA[&foo;]]> then that, since this is
 CDATA,  is the 5 characters. & f o o ;.

So how is that to be written to the result tree?
xt currently does
&amp;foo;
which correctly represents those characters.
It could I suppose do <![CDATA[&foo;]]> again, but it would be hard
for it to know good places to start and stop CDATA sections.

It can't write out &foo; as that is not the five characters that
it is trying to output as specified in the original CDATA section,
it is something else, or an error, depending on whatever foo is defined
to be in the DTD for the output tree.

DSSSL (or rather jade) has
(declare-flow-object-class formatting-instruction
  "UNREGISTERED::James Clark//Flow Object Class::formatting-instruction")

to allow markup to be output. I would guess that what the XSL folks want
to avoid is making it easy to output non well formed XML from XSL (which
seems reasonable).

David


 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.