- From: <bugzilla@farnsworth.w3.org>
- Date: Thu, 22 May 2008 01:06:30 +0000
- To: public-sml@w3.org
- CC:
http://www.w3.org/Bugs/Public/show_bug.cgi?id=5707
Summary: clarify SML reference resolution when sml:uri value is
an empty string
Product: SML
Version: LC
Platform: PC
OS/Version: Windows NT
Status: NEW
Keywords: hasProposal
Severity: normal
Priority: P2
Component: Core+Interchange Format
AssignedTo: cmsmcq@w3.org
ReportedBy: kumarp@microsoft.com
QAContact: public-sml@w3.org
Our spec says that an SML ref with only a fragment in its URI, targets an
element (pointed to by the fragment) within the document that contains the
reference. The spec is silent about the case where the value of sml:uri is an
empty string. I think, this points to the root element of the document that
contains the reference. This would be consistent with RFC 3986 (section 4.4
Same-document Reference).
In other words, all of the refs below point to the same target.
a.xml
-----
<x:root xmlns:sml="http://www.w3.org/2008/03/sml" xmlns:x="urn:x">
<x:ref sml:ref="true">
<sml:uri>a.xml</sml:uri>
</x:ref>
<x:ref sml:ref="true">
<sml:uri>a.xml#smlxpath1(/x:root)</sml:uri>
</x:ref>
<x:ref sml:ref="true">
<sml:uri>#smlxpath1(/x:root)</sml:uri>
</x:ref>
<x:ref sml:ref="true">
<sml:uri></sml:uri>
</x:ref>
</x:root>
Proposal:
Update section 4.3.1 SML URI Reference Scheme in the SML spec and section 5.3.4
URI Reference Processing bullet 1.a appropriately to clarify the case mentioned
above.
Received on Thursday, 22 May 2008 01:07:05 UTC