Next in thread → Next in month →

Re: [xml-dev] US-ASCII characters versus XML characters ... why such a huge discrepancy?

From
Andrew Welch <>
To
"Costello, Roger L." <>
Date
2012-10-01T15:29:59Z
ID
<CAEG2duDJsL+MNbMCYDLaj+NpC59XyDc_0dzUeRnAyOc-K7r=>
Thread
Re: [xml-dev] US-ASCII characters versus XML characters ... why such a huge discrepancy?
On 1 October 2012 16:01, Costello, Roger L. <> 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
Next in thread → Next in month →