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

Re: Proposed requirements on solutions that convertXML-illegal

  • From: Amelia A Lewis <amyzing@talsever.com>
  • To: "xml-dev@lists.xml.org" <xml-dev@lists.xml.org>
  • Date: Fri, 28 Apr 2017 14:36:40 -0400

Re:  Proposed requirements on solutions that convertXML-illegal
It's possibly worth adding production 66 and the Well-formedness 
constraint that bounds it:

Character Reference
[66]   CharRef ::= '&#' [0-9]+ ';'
                   | '&#x' [0-9a-fA-F]+ ';' [WFC: Legal Character]

Well-formedness constraint: Legal Character
Characters referred to using character references must match the 
production for Char.

So although the production permits &#0; , the well-formedness 
constraint points back to production [2], Char, which John supplies, 
and which disallows all values below 32 except 9, 10, 13, and 32 itself.

On Fri, 28 Apr 2017 12:31:34 -0400, John Cowan wrote:
> On Fri, Apr 28, 2017 at 3:18 AM, Mukul Gandhi <gandhi.mukul@gmail.com>
> wrote:
> I've just checked the Char production of XML, and it allows the existence
>> of Unicode code point for NUL character (i.e "\u0000").
> Actually, the production says:
> Char   ::=   #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] |
> [#x10000-#x10FFFF] /* any Unicode character, excluding the surrogate
> blocks, FFFE, and FFFF. */
> The comment is inaccurate:  #x0 is definitely not included.  Note that
> "\u0000" works in XML content because "\" has no special meaning in XML, so
> that is just six legal characters.  XML 1.1 allows a larger range of
> characters than XML 1.0, but still definitely excludes #0.
> -- 
> John Cowan          http://vrici.lojban.org/~cowan        cowan@ccil.org
> Where the wombat has walked, it will inevitably walk again.
>    (even through brick walls!)

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


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.
First Name
Last Name
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.