W3C home > Mailing lists > Public > public-rdf-in-xhtml-tf@w3.org > November 2007

Re: References to CSS rules in RDFa syntax document

From: Manu Sporny <msporny@digitalbazaar.com>
Date: Wed, 31 Oct 2007 22:54:22 -0400
Message-ID: <47293FDE.1050404@digitalbazaar.com>
To: W3C RDFa task force <public-rdf-in-xhtml-tf@w3.org>

Mark Birbeck wrote:
> On the space normalisation, XPath defines the normalize-space()
> function as follows:
> 
>   Function: string normalize-space(string?)
> 
>   The normalize-space function returns the argument string with
>   whitespace normalized by stripping leading and trailing whitespace
>   and replacing sequences of whitespace characters by a single space.
>   Whitespace characters are the same as those allowed by the S
>   production in XML. If the argument is omitted, it defaults to the context
>   node converted to a string, in other words the string-value of the
>   context node.

+1, this certainly seems like a very clear way to say what we want. This
processing would be performed for both strings and XMLLiterals, correct?

In other words, the following XHTML (Test Case #11):

<div about="">
   Author: <span property="dc:creator">Albert Einstein</span>
   <h2 property="dc:title">
        E = mc<sup>2</sup>: The Most Urgent Problem of Our Time
   </h2>
</div>

Should produce the following triples:

@prefix _5:
<http://www.w3.org/2006/07/SWD/RDFa/testsuite/xhtml1-testcases/0011.>.
@prefix dc: <http://purl.org/dc/elements/1.1/>.

_5:xhtml dc:creator "Albert Einstein";
  dc:title """E = mc<sup>2</sup>: The Most Urgent Problem of Our Time"""
          ^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral>.

> So I believe we should either refer to these two ideas, or even import
> the prose as is, if we have to.

I think we should import the prose as is... it might be annoying for
implementors to have to refer to other large documents when implementing
their parser. You had also mentioned that we might not want to refer to
external documents that could change their processing rules (don't know
if XPath would ever do this, but we might as well be consistent).

-- manu

-- 
Manu Sporny
President/CEO - Digital Bazaar, Inc.
blog: Bitmunk Launches World's First Open Music Recommendation Service
http://blog.digitalbazaar.com/2007/09/09/bitmunk-music-recommendation/
Received on Thursday, 1 November 2007 02:54:39 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:15:17 GMT