[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?
- From: Andrew Welch <andrew.j.welch@gmail.com>
- To: "Costello, Roger L." <costello@mitre.org>
- Date: Mon, 1 Oct 2012 16:29:59 +0100
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="[-]*" />
> </xs:restriction>
> </xs:simpleType>
>
> then I get this error:
>
> Character reference  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]