[Home] [By Thread] [By Date] [Recent Entries]

  • From: Andrew Welch <andrew.j.welch@g...>
  • To: "Costello, Roger L." <costello@m...>
  • Date: Mon, 1 Oct 2012 16:29:59 +0100

On 1 October 2012 16:01, Costello, Roger L. <costello@m...> 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]


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member