[Bug 8987] Processing requirements for attributes starting with xmlns: are undefined

http://www.w3.org/Bugs/Public/show_bug.cgi?id=8987


Manu Sporny <msporny@digitalbazaar.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED




--- Comment #2 from Manu Sporny <msporny@digitalbazaar.com>  2010-05-05 02:07:07 ---
EDITOR'S RESPONSE: This is an Editor's Response to your comment. If you are
satisfied with this response, please change the state of this bug to CLOSED. If
you have additional information and would like the editor to reconsider, please
reopen this bug. If you would like to escalate the issue to the full HTML
Working Group, please add the TrackerRequest keyword to this bug, and suggest
title and text for the tracker issue; or you may create a tracker issue
yourself, if you are able to do so. For more details, see this document:

http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Fixed

Change Description: 

Changed the reference to the RDFa Core specification and outlined the algorithm
in the HTML+RDFa specification:

http://dev.w3.org/cvsweb/html5/rdfa/drafts/ED-rdfa-in-html-20100504/Overview.html.diff?r1=1.3&r2=1.4&f=h

"""
CURIE prefix mappings specified using attributes prepended with xmlns: must be
processed using the algorithm defined in section 4.4.1: Extracting URI Mappings
from Infosets for Infoset-based processors, or section 4.5.1: Extracting URI
Mappings from DOMs for DOM Level 2-based processors. For CURIE prefix mappings
using the prefix attribute, Section 7.5: Sequence, step #4 should be used to
process namespace values.
"""

Rationale:

Processing step #2 (in rdfa-syntax) outlines how to process xmlns: values:

http://www.w3.org/TR/rdfa-syntax/#sec_5.5.

"""
Mappings are provided by @xmlns. The value to be mapped is set by the XML
namespace prefix, and the value to map is the value of the attribute—a URI.
Note that the URI is not processed in any way; in particular if it is a
relative path it is not resolved against the current [base]. Authors are
advised to follow best practice for using namespaces, which includes not using
relative paths.
"""

Processing step #4 (in rdfa-core) outlines how to process xmlns: values:

http://www.w3.org/TR/rdfa-core/#sequence

"""
Mappings are defined via @prefix. For backward compatibility, some Host
Languages may also permit the definition of mappings via @xmlns. In this case,
the value to be mapped is set by the XML namespace prefix, and the value to map
is the value of the attribute — a URI. Regardless of how the mapping is
declared, the value to be mapped must be converted to lower case, and the URI
is not processed in any way; in particular if it is a relative path it is not
resolved against the current base. Authors should not use relative paths as the
URI.
"""

It has been clarified that the algorithm defined in HTML+RDFa MUST be used for
extracting values from xmlns: and the algorithm defined in RDFa Core can be
used to extract prefix values from @prefix.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Wednesday, 5 May 2010 02:07:11 UTC