W3C home > Mailing lists > Public > xmlschema-dev@w3.org > September 2006

Re: schema for XHTML 1.0

From: Wolfgang Jeltsch <wolfgang@jeltsch.net>
Date: Fri, 15 Sep 2006 21:56:08 +0200
To: xmlschema-dev@w3.org
Message-Id: <200609152156.08737.wolfgang@jeltsch.net>

Am Freitag, 15. September 2006 21:36 schrieb Wolfgang Jeltsch:
> Hello,
>
> the schema for XHTML 1.0 Strict which is linked to from
> http://www.w3.org/TR/xhtml1-schema/ and whose URL is
> http://www.w3.org/2002/08/xhtml/xhtml1-strict.xsd seems to be incorrect.
> XMLmind's XML editor outputs the following validation errors upon loading
> this schema:
>
> 	[1]
> 	cannot derive simpleType by restriction:
> 	"([-+]?(\d+|\d+(\.\d+)?%)(,\s*[-+]? (\d+|\d+(\.\d+)?%))*)" invalid value
> 	for pattern facet: character "-" must be escaped with "\" in this context
> 	[st-props-correct.1]
>
> 	[2]
> 	cannot derive simpleType by restriction: "([-+]?(\d+|\d+(\.\d+)?%))"
> 	invalid value for pattern facet: character "-" must be escaped with "\" in
> 	this context [st-props-correct.1]
>
> 	[3]
> 	cannot derive simpleType by restriction: "([-+]?(\d+|\d+(\.\d+)?%)|[1-9]
> 	(\d+)?\*)" invalid value for pattern facet: character "-" must be escaped
> 	with "\" in this context [st-props-correct.1]
>
> What's the reason for this?  Is escaping the - characters enough to get a
> correct schema?
>
> Best wishes,
> Wolfgang

Hmm, after reading a bit in the XML Schema spec, I even doubt that the XML 
editor is correct in complaining about unescaped - signs.

Best wishes,
Wolfgang
Received on Friday, 15 September 2006 19:56:16 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:55 GMT