Re: xmlStandalone, xmlEncoding, xmlVersion (was RE: L3 Core Document comments)

On Sat, 2003-08-30 at 13:09, Curt Arnold wrote:
> Was xmlStandalone also made read-only and strictly based on the value in 
> the XML declaration present when the document was loaded?  However, 
> there should be something in L/S that allows you to specify that you 
> want to document serialized with standalone="yes" which would either 
> place everything in the internal subset or expand entity references and 
> explicitly serialize default attribute values.

It would be dangerous to start doing "magic" based on the value of the
standalone attribute. XML Parsers are required to check the value of
standalone when validating. It is therefore logic to do the same in the
DOM and make the check dependent on the validate and validate-if-schema
parameters. No change is needed in the specifications since this error
type is already controlled by XML.

Philippe

Received on Friday, 10 October 2003 19:00:35 UTC