W3C home > Mailing lists > Public > www-html-editor@w3.org > April to June 2008

Comment on example

From: Philip TAYLOR (Ret'd) <P.Taylor@Rhul.Ac.Uk>
Date: Thu, 08 May 2008 18:48:58 +0100
Message-ID: <48233D0A.6050603@Rhul.Ac.Uk>
To: www-html-editor@w3.org

At

> 2.2. Ambiguities Between CURIEs and URIs
> 
> In some cases language designers will want to use both URIs and CURIEs as the value of an attribute. For example, in XHTML+RDFa [XHTMLRDFa] the about attribute allows a URI to be specified that some metadata is "about", but it is also be useful to abbreviate this URI, using the compact syntax. However, the problem is that it is not possible for the language parser to be completely sure whether it has located a CURIE or a URI. For example, a resource could be specified as follows:
> 
> <p rel="foaf:homePage" about="http://www.example.org/home.html">home</p>
> 
> There is no way to be sure that this is a normal URI, or a CURIE. Therefore the syntax for carrying a CURIE when there is any possibility of ambiguity is to enclose the CURIE in square brackets, as in the following example:
> 
> <html xmlns:ex="http://www.example.org/">
>     <head>...</head>
>     <body>
>         <p rel="foaf:homePage" about="[ex:home.html]">home</p>
>     </body>
> </html>

the second example fails to explain how the first /should/
have been cast in order to avoid the ambiguity referred to.
The two examples should use exactly the same code fragment,
modulo the addition of square brackets, in order to clarify
the point being made.

Philip TAYLOR
Received on Thursday, 8 May 2008 17:49:48 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:17:57 GMT