RE: action-226 domain in HTML5

> ...We probably could resolve the issue by adding 
> your text to the spec and mention the single quoting?

Actually we probably do not need to single quote values with spaces in the result because we don't have pairs there, so spaces are not separators.

Just to be sure we are talking about the same output, here are a few examples:

a) --- The rule:

<its:domainRule selector="/db:article/db:para"
 domainPointer="/db:article/db:info//db:subjectterm"/>

with:

<subjectset scheme="libraryofcongress">
 <subject>
  <subjectterm>Electronic Publishing</subjectterm>
 </subject>
 <subject>
  <subjectterm>SGML (Computer program language)</subjectterm>
 </subject>
</subjectset>

Would give:

"Electronic Publishing, SGML (Computer program language)"


b) --- The rule:

<its:domainRule selector="/db:article/db:para"
 domainPointer="/db:article/db:info//db:subjectterm"
 domainMapping="'Electronic Publishing' pub"/>

with:

<subjectset scheme="libraryofcongress">
 <subject>
  <subjectterm>Electronic Publishing</subjectterm>
 </subject>
 <subject>
  <subjectterm>SGML (Computer program language)</subjectterm>
 </subject>
</subjectset>

Would give:

"pub, SGML (Computer program language)"


c) --- the rule:

<its:domainRule selector="/h:html/h:body"
 domainPointer="//h:meta[@name='keywords']/@content"
 domainMapping="politics 'boring stuff'"/>
 
with:

<meta name="keywords" content="news, sports, politics, nature and weather">

Would give:

"news, sports, boring stuff, nature and weather"


Looking at the tests commitment document -- (that Dom made available here: https://docs.google.com/spreadsheet/ccc?key=0AgIk0-aoSKOadG5HQmJDT2EybWVvVC1VbnF5alN2S3c#gid=0) -- it looks like Domain is the data category that has the most implementers. It would be good to get those implementers feedback on this.

Cheers,
-yves

Received on Thursday, 4 October 2012 21:22:56 UTC