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

Re: writing entity references.

Subject: Re: writing entity references.
From: James Clark <jjc@xxxxxxxxxx>
Date: Tue, 05 Jan 1999 19:18:24 +0700
write xml with entity reference
David Carlisle wrote:
> 
> James Clark writes
> 
> > I would say it was an abuse of XML to attach semantic significance to
> > the entity names
> 
> Yes, I suspected that that would be the official answer, and really
> I do agree with that point of view.

That wasn't an official answer. Everything I say on this list is just my
personal point of view (unless I say otherwise).

> While this is something of a special situation, I would have thought
> that if XSL is being used as a transformation language (only) to
> write out XML instances, it would be quite a common request to write
> out the instances in a `natural' manner (using entities defined in some
> dtd) rather than necessarily writing all characters as numeric character
> entities, or directly` as unicode characters.

I agree that there is a practical problem here, but it's not clear how
to me how solve it cleanly without either introducing huge complexity,
or without opening loopholes that invite abuse.

Maybe a result-dtd-system-id and result-dtd-public-id attributes on
xsl:stylesheet would be a potential solution.  An XSL engine could
output the appropriate DOCTYPE declaration, but could also read the DTD
so as to find an appropriate entity corresponding to a particular
Unicode code point.

James



 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.