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

Should produce the following triples:

@prefix _5:
@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"""

> 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
Received on Thursday, 1 November 2007 02:54:39 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:50:25 UTC