problem in "CURIE" XML Schema datatype definition

Looking in the RDFa Core 1.1 spec at the (non-normative) "XML Schema
Definition" section:

  http://www.w3.org/TR/rdfa-core/#xml-schema-definition

...I find:

  <xs:simpleType name="CURIE">
      <xs:restriction base="xs:string">
          <xs:pattern value="(([\i-[:]][\c-[:]]*)?:)?.+" />
          <xs:minLength value="1"/>
      </xs:restriction>
  </xs:simpleType> 

It seems that pattern should instead be:

  (([\i-[:]][\c-[:]]*)?:)?[^\s]+

Right?

Because that's the "reference" part of the CURIE, and the spec prose of the
CURIE Syntax Definition section defines that as being irelative-ref:

  http://www.w3.org/TR/rdfa-core/#s_curies

...and irelative-ref can't contain whitespace.

  --Mike

P.S.  Same for "SafeCURIE" datatype definition.

-- 
Michael[tm] Smith
http://people.w3.org/mike/+

Received on Tuesday, 31 January 2012 12:17:53 UTC