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

Re: SAX: finalising org.sax.xml.Parser

  • From: Juergen Modre <jmodre@e...>
  • To: xml-dev Mailing List <xml-dev@i...>, David Megginson <ak117@f...>, James Clark <jjc@j...>
  • Date: Wed, 04 Mar 1998 15:31:44 +0000

sax xml standalone
James Clark wrote:
> The following seem the reasonable combinations to me:
> 
1.)
> - Validate and process all external entities (if you're validating
> you've got to process all external entities).
> 
2.)
> - Don't validate and process external DTD and parameter entitities
> depending on the setting of standalone.
> 
3.)
> - Don't validate and process external DTD and parameter entities
> (irrespective of the setting of standalone).
> 
4.)
> - Don't validate and don't process external DTD and parameter entities
> (irrespective of the setting of standalone).

What about to have two methods
- setValidate(boolean validate)
- setStandalone(boolean standalone)
(and the corresponding getValidate, getStandalone methods as well)

Where the setStandalone _overrides_ the setting in the xml-document
itself, _if_ set.
If _not_ set
a.) standalone setting in the xml document itself
    -> use this setting
b.) no standalone setting in the xml document itself
    -> defaults to the default setting of
       the parser (= to 'no' like 2.9 in the XML spec says).

It should be possible to achieve the same combinations as above.


This would give the following combinations for the examples above:
[Default is for an XML processor: validate=false/standalone=no]

      setValidate                        setStandalone
1.)   true                               setting has no effect, will always go into external DTD &
PE
2.)   defaults or set to false           not set -> doesn't change setting of standalone in xml doc
3.)   defaults or set to false           set to false -> overrides to standalone 'no'
4.)   defaults or set to false           set to true  -> overrides to standalone 'yes'

Hope I got the table right :)


All the best
 Juergen

-----------------------------------------------
 JUERGEN MODRE
 Reisdorf 6
 A-9371 Brueckl
 Austria (Europe)

 Phone:   ++43 4214 2320
 Mobile:  ++43 664 233 22 22
 E-mail:  jmodre@e...
 WWW:     http://www.edu.uni-klu.ac.at/~jmodre
-----------------------------------------------

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


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.