- From: Shane McCarron <shane@aptest.com>
- Date: Thu, 01 May 2008 14:02:44 -0500
- To: Micah Dubinko <mdubinko@yahoo-inc.com>
- CC: RDFa <public-rdf-in-xhtml-tf@w3.org>, Peter Mika <pmika@yahoo-inc.com>
Speaking for myself..... First, the mantra. Say it over and over until you believe it. A CURIE prefix is NOT a namespace. A CURIE prefix is NOT a namespace. A CURIE prefix is NOT a namespace. Now that you believe.... The correct CURIE prefix definition for an XML Schema vocabulary should be http://www.w3.org/2001/XMLSchema# The example in the draft is wrong. Thanks for pointing it out! Micah Dubinko wrote: > > Here is an example from the latest editors' draft > <http://www.w3.org/MarkUp/2008/ED-rdfa-syntax-20080501/> > > In it, I see what seems to be 2 minor errors, and one possibly larger > one. > > <html > xmlns="http://www.w3.org/1999/xhtml" > xmlns:cal="http://www.w3.org/2002/12/cal/ical#" > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > > > <head><title>Jo's Friends and Family Blog</title></head> > <body> > <p> > I'm holding > <span property="cal:summary"> > one last summer Barbecue > </span>, > on > <span property="cal:dtstart" content="20070916T1600-0500" > datatype="xsd:datetime"> > September 16th at 4pm > </span>. > </p> > </body> > </html> > > > Minor: The datatype should be called xsd:dateTime (capital T) > Minor: The value should be "2007-09-16T16:00-05:00", not > "20070916T1600-0500" > (ISO8601 seems to allow skipping the delimiters, but XML Schema doesn't) > > Here's the possibly significant error: > > 1. The properly declared namespace for XML Schema is > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > > 2. The value of the datatype CURIE on line 15 is xsd:dateTime > > 3. Applying the CURIE algorithm--simple concatenation--yields > http://www.w3.org/2001/XMLSchemadateTime > --Which is not recognized as a XML Schema datatype! There's no source > for the intervening # character to originate from. > > Is it necessary to write xsd:#dateTime? Or is the XML Schema (and > possibly other?) namespces grandfathered in somehow? > > In Section 2 you define the xsd namespace differently (and not per XML > Schema spec, AFAICT) > xsd: http://www.w3.org/2001/XMLSchema# > > Apologies if this has been mentioned or discussed before, but as far > as I can see, this looks like an error in the specification. We > noticed this during implementation. Other parts of the specification > have similar markup, this one example is just to keep the discussion > crisp. > > Thanks for looking, > > .micah > -- Shane P. McCarron Phone: +1 763 786-8160 x120 Managing Director Fax: +1 763 786-8180 ApTest Minnesota Inet: shane@aptest.com
Received on Thursday, 1 May 2008 19:03:33 UTC