This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 4658 - How should deref() treat multiple child elements that use the same reference scheme
Summary: How should deref() treat multiple child elements that use the same reference ...
Status: RESOLVED FIXED
Alias: None
Product: SML
Classification: Unclassified
Component: Core (show other bugs)
Version: unspecified
Hardware: All All
: P1 normal
Target Milestone: LC
Assignee: Kumar Pandit
QA Contact: SML Working Group discussion list
URL:
Whiteboard: SML references
Keywords:
: 4825 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-06-17 18:21 UTC by Pratul Dublish
Modified: 2007-10-20 03:35 UTC (History)
1 user (show)

See Also:


Attachments

Description Pratul Dublish 2007-06-17 18:21:32 UTC
What should be the semantics of the smlfn:deref() function if a reference element has multiple child elements that represent the reference using the same scheme? E.g.,

<EnrolledCourse xmlns="http://www.university.example.org/ns"  sml:ref="true">
        <sml:uri>SomeValidUri</sml:uri>
        <sml:uri>AnotherValidUri</sml:uri>
</EnrolledCourse>
Comment 1 Virginia Smith 2007-07-18 23:36:53 UTC
*** Bug 4825 has been marked as a duplicate of this bug. ***
Comment 2 Pratul Dublish 2007-08-28 03:27:54 UTC
A simple solution is to say that a reference scheme can be used at most once in a reference element, so this example will result in error

EnrolledCourse xmlns="http://www.university.example.org/ns"  sml:ref="true">
        <sml:uri>SomeValidUri</sml:uri>
        <sml:uri>AnotherValidUri</sml:uri>
</EnrolledCourse>
Comment 3 Valentina Popescu 2007-08-28 13:26:59 UTC
adding 'SML references' whiteboard to group all related defects
Comment 4 Kumar Pandit 2007-09-27 03:10:58 UTC
I like the solution in section 3 "How are schemes defined?" from the Reference proposal.

	How is a scheme recognized. That is, there is a set of rules that, when satisfied, identify elements with sml:ref="true" as instances of this scheme. (e.g. for the "uri/iri" scheme, the rule can include: there is one and only one sub-element named <sml:uri>, whose value is xs:anyURI.)  That is, either a reference element is an instance of (or an example of, or uses) a scheme, or it is not. How many instances of a reference scheme does an SML reference R use/include is an ill-formed question.

Comment 5 Virginia Smith 2007-10-16 21:37:56 UTC
 Resolution is to fix as per Sandy's sml reference proposal.