W3C home > Mailing lists > Public > xml-editor@w3.org > January to March 2013

Is there a tool which tells me if my XML is "fully normalized"?

From: Costello, Roger L. <costello@mitre.org>
Date: Sat, 16 Feb 2013 22:56:36 +0000
To: "xml-editor@w3.org" <xml-editor@w3.org>
Message-ID: <B5FEE00B53CF054AA8439027E8FE17751E70278D@IMCMBX04.MITRE.ORG>
Hi Folks,

1. Is there a tool which evaluates an XML document and returns an indication of whether it is fully normalized or not?

2. This element:


is not fully normalized, right? (Since the content of the <comment> element begins with a combining character and "content" is defined to be a "relevant construct.") Note: hex 338 is the combining solidus overlay character.

3. Section 2.13 of the XML 1.1 specification says:

	XML applications that create XML 1.1 output from either XML 1.1 or 
	XML 1.0 input SHOULD ensure that the output is fully normalized

What should an XML application output, given this non-fully-normalized input:


How does an XML application "ensure that the output is fully normalized"?

4. If the combining solidus overlay character follows a greater-than character in element content:

	<comment> &gt;&#x0338; </comment>

then normalizing XML applications will combine them to create the not-greater-than character:

	<comment>  </comment>

However, if the combining solidus overlay character follows a greater-than character that is part of a start-tag:


then normalizing XML applications do not combine them:


There must be some W3C document which says, "The long solidus combining character shall not combine with the '>' in a start tag but it shall combine with the '>' if it is located elsewhere." 

I have searched the W3C documents looking for a statement of this "rule" and have been unsuccessful in finding it. I am hoping that you will point me to the W3C document which states this rule?

Received on Saturday, 16 February 2013 22:57:04 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:37:47 UTC