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

Full Disclosure: What The XML Processor Must Tell The XML Application

  • From: John Cowan <cowan@l...>
  • To: XML Dev <xml-dev@i...>
  • Date: Thu, 05 Nov 1998 14:30:44 -0500

how to tell processor
(Draft 0.1)

This is a report gleaned from the XML recommendation, showing what
an XML processor (validating or non-validating) must report to the
application that invokes it in order to claim conformance to the
XML recommendation.  Numbers in parentheses refer to clauses.

1.  An XML processor must always provide all characters in a
document that are not part of markup to the application.  (2.10)

2.  A validating XML processor must inform the application which
non-markup characters are whitespace appearing within element
content.  (2.10)

3.  An XML processor must pass the single character &#A; in place
of &#D; or &#D;&#A; appearing in its input.

4.  An XML processor must normalize the value of attributes according
to the rules in clause 3.3 before passing them to the application.
This implies that the value of attributes after normalization
are passed to the application.  (3.3)

5.  An XML processor must pass the identifiers of declared unparsed
entities and their associated identifiers to the application.  (4, 4.7)

6.  When the name of an unparsed entity appears as the explicit
or default value of an ENTITY or ENTITIES attribute, an XML
processor must provide the names, system identifiers, and (if present)
public identifiers of both the entity and its notation to the
application (4.6, 4.7)

7.  An XML processor must report well-formedness errors in the
document entity and in any other entities that it reads.  (5.1)

8.  A validating XML processor must report violations of the
constraints expressed in the DTD, and failures to fulfill validity
constraints.  All entities included directly or indirectly by
the document entity must be examined.  (5.1) [The recommendation
is self-contradictory on whether this behavior is required always
or only at user option: see 5.1 vs. the definition of "validity
constraint".]

9.  An XML processor must pass processing instructions to the
application.  (2.6)

10. An XML processor (necessarily a non-validating one) that does
not include the replacement text of an external parsed entity
in place of an entity reference must notify the application that
it recognized but did not read the entity (4.4.3)  [SAX does not
provide for this]

11. A validating XML processor must include the replacement text
of an entity in place of an entity reference.  (5.2)

12.  A validating XML processor must supply the default value
of attributes declared in the DTD for a given element type but
not appearing in the element's start tag.  (5.2)

Have I overlooked anything?

-- 
John Cowan	http://www.ccil.org/~cowan		cowan@c...
	You tollerday donsk?  N.  You tolkatiff scowegian?  Nn.
	You spigotty anglease?  Nnn.  You phonio saxo?  Nnnn.
		Clear all so!  'Tis a Jute.... (Finnegans Wake 16.5)

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.