[XML-SIG] Re: Issues with Unicode type
Henry S. Thompson
ht@cogsci.ed.ac.uk
28 Sep 2002 14:03:26 +0100
"Thomas B. Passin" <tpassin@comcast.net> writes:
> [Henry S. Thompson]
>
> Wow, Henry, this is a real contribution - who would want to compile that RE
> by hand? Is there not a typo in the last bit, though?
>
> > <simpleType name="NCName">
> > <restriction base="Name">
> > <pattern value="[^:][^:]*"/>
> > </restriction>
> > </simpleType>
> >
>
> The XML Namespaces Rec says that an NCName is
>
> NCName ::= (Letter | '_') (NCNameChar)*
>
> but you have it equivalent to
>
> NCName ::= (NCNameChar) (NCNameChar)*
I _think_ I have that right -- Name is defined as
<simpleType name="Name">
<restriction base="token">
<pattern value="u'[_:A-Za-z . . .
and the above effectively _subtracts_ the : from that, leaving the _
and all the Letters.
ht
--
Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
W3C Fellow 1999--2002, part-time member of W3C Team
2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
Fax: (44) 131 650-4587, e-mail: ht@cogsci.ed.ac.uk
URL: http://www.ltg.ed.ac.uk/~ht/
[mail really from me _always_ has this .sig -- mail without it is forged spam]