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

Re: SAX and XML Version


about sax with xml
/ "Jeff Rafter" <lists@j...> was heard to say:
| Another issue that has been covered, though not fully, is changes necessary
| in getXMLVersion. Currently the wording is:
|
| "Returns the version of XML used for the entity. This will normally be the
| identifier from the current entity's <?xml version='...' ...?> declaration,
| or be defaulted by the parser.
|
| At this writing, only one version ("1.0") is defined, but it seems likely
| that a new version will be defined which has slightly different rules about
| which characters are legal in XML names."
|
| Clearly, this needs to change-- but beyond the obvious adding of "1.1" as
| allowable I wonder if the semantics of getXMLVersion (which is still
| technically in beta) need to change. According to XML 1.1 if docuemnt is an
| XML 1.1 document then ALL entities within the document must be treated as
| though they are XML 1.1. Should getXMLVersion return the label, the
| inference, or base it on the primary document version indicator? Basically
| the question is whether or not the getXMLVersion should return the effective
| version or the label. [1]

I think it should return the label. I propose:

    /**
     * Returns the version of XML used for the entity.  This will
     * normally be the identifier from the current entity's
     * <em>&lt;?xml&nbsp;version='...'&nbsp;...?&gt;</em> declaration,
     * or be defaulted by the parser.
     *
     * <p>At this writing, the versions "1.0" and "1.1" are defined, but
     * other versions may appear in the future.
     *
     * @return Identifier for the XML version being used to interpret
     *	the entity's text.
     */


| [1]
| http://www.w3.org/TR/2004/REC-xml11-20040204/REC-xml11-20040204-review.html#sec-version-info

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@n...> | Endurance is frequently a form of
http://nwalsh.com/            | indecision.--Elizabeth Bibesco

PGP signature


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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.