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

Re: interpreting W3C C14N Rec.

  • From: ht@markup.co.uk (Henry S. Thompson)
  • To: Steve Newcomb <srn@coolheads.com>
  • Date: Sun, 25 Oct 2015 22:31:43 +0000

Re: interpreting W3C C14N Rec.
Steve Newcomb <srn@coolheads.com> writes:

> Maybe John Cowan and/or *you*, dear reader, can help me understand the
> following quote from http://www.w3.org/TR/xml-c14n#Example-Chars :

> ----

> *Note:* The last element, |normId|, is well-formed but violates a
> validity constraint for attributes of type ID. For testing canonical
> XML implementations based on validating processors, remove the line
> containing this element from the input and canonical form. In general,
> XML consumers should be discouraged from using this feature of XML.

> ----

> Specifically, I'm wondering what is "this feature" that XML consumers
> should be discouraged from using, and why.

I'll bite.  I think it's that you can get away with invalid values of
ID-declared attributes if you stick with a conservative
well-formed-enforcement only parser.  The doc. is saying it's on
balance a bad idea to take advantage of this.

In part, I presume, because many XML parsers actually fall into the
useful category acknowledged by the spec, i.e. not validating, but do
read the doctype, in which case they _must_ mark the types of
attributes.  This leads to a borderline contradictory situation with,
for example, as simple a case as <a id="3b"/>.

ht
-- 
		    Henry S. Thompson, Markup Systems Ltd.
               Cavers Garden Farm, Denholm; by Hawick; TD9 8LN
                            +44 (0) 7866 471 388
	       Fax: (44) 131 651-1426, e-mail: ht@markup.co.uk
			URL: http://www.markup.co.uk/
[mail really from me _always_ has this .sig -- mail without it is forged spam]


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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.