XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] US-ASCII characters versus XML characters ... why sucha huge discrepancy?

On 1 October 2012 16:01, Costello, Roger L. <costello@mitre.org> wrote:
> Ken Holman wrote:
>
>> XML Schema does not constrain character sets.
>
> I don't understand this. If I have a pattern facet that specifies any of the 28 characters not supported by XML
>
>     <xs:simpleType name="characters">
>         <xs:restriction base="xs:string">
>             <xs:pattern value="[&#1;-&#127;]*" />
>         </xs:restriction>
>     </xs:simpleType>
>
> then I get this error:
>
>     Character reference &#1; is an invalid XML character

That's an error from the xml parser rather than the schema processor...

If you change the version in the prolog to 1.1 it should work.


-- 
Andrew Welch
http://andrewjwelch.com


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


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS