[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: James Clark <jjc@xxxxxxxxxx>
Date: Fri, 08 Jan 1999 09:34:04 +0700
Re: More entity confusion and my opinion on the right way
David Carlisle wrote:
> 
> Andrew
> > I include &#169; in my source document, I get &copy; in the result document.
> > 'Hooray!' I think to myself, this must mean that if I include an entity
> > reference to an ascii code, it will get translated to the right HTML entity.
> 
> James
> > Right.  That's what XT does when you use the HTML namespace as the
> > result.
> 
> Ah.
> 
> So going back to my `writing entities for mathml' question.
> 
> If MathML had a properly registered namespace set up and if
> there were a few special control characters that it would be nice to
> write out as entity references, such as some of the spacing control
> characters that MathML defines, would it be reasonable for an XSL
> processor to `know' this and just always write a certain character
> as for instance &NegativeThinSpace; rather than &#<some number> if
> writing to the MathML namespace.

If you're just producing a standalone chunk of MathML that's only going
to be processed by MathML processors, this would be quite reasonable.
One problem is how to declare these entities.  If the generated MathML
is only going to be processed by MathML processors, I guess it doesn't
matter.  If it's going to be processed by conforming XML processors,
then a DOCTYPE declaration will need to be added.  Are there canonical
system and public ids for the MathML DTD (one that includes declarations
of all the entities)?

This isn't really a good solution in the long term, because it won't
work when MathML is being embedded in XML documents.  The right
long-term solution is for MathML to allow elements to be used for this. 

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.