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 5064 - On which component(s) are SML reference constraints specified?
Summary: On which component(s) are SML reference constraints specified?
Status: RESOLVED FIXED
Alias: None
Product: SML
Classification: Unclassified
Component: Core (show other bugs)
Version: FPWD
Hardware: PC Windows XP
: P2 normal
Target Milestone: LC
Assignee: Kumar Pandit
QA Contact: SML Working Group discussion list
URL:
Whiteboard:
Keywords: resolved
Depends on: 5063
Blocks:
  Show dependency treegraph
 
Reported: 2007-09-20 20:29 UTC by Sandy Gao
Modified: 2008-02-20 02:56 UTC (History)
0 users

See Also:


Attachments

Description Sandy Gao 2007-09-20 20:29:25 UTC
This involves sml:target* and SML identity constraints.

There are 3 kinds of <xs:element> elements in schema documents:
1 For global element declaration
2 For local element declaration
3 For reference to global element declaration

On which of the above cases are sml:target* and sml:key/keyref/unique allowed to be specified? And to which schema component(s) (element declaration or particle) are these constraints attached to?

If these constraints are attached to element declarations, then they should not be allowed on case #3; if they are attached to particles, then they should not be allowed on case #1. So if we want to allow them being specified in all 3 cases, then the constraints need to be attached to both element declarations and particles, and we need to explain what happens if the same kind of constraint is specified both on a global element declaration G and on a reference to G.

For example,

<xs:schema>
  <xs:element name="global" targetType="type1">
  <xs:complexType name="someType">
    <xs:sequence>
      <xs:element ref="global" targetType="type2"/>
    </xs:sequence>
  </xs:complextype>
</xs:schema>
Comment 1 Pratul Dublish 2007-09-20 21:43:24 UTC
a. These constraints are supported on global and local element declarations (1 and 2 in the bug's description)
b. These should be attached to the element declaration schema component
Comment 2 Pratul Dublish 2007-10-25 18:46:39 UTC
Please fix as per Pratul's comment - decision taken on 10/25 call
Comment 3 Virginia Smith 2007-11-10 00:58:47 UTC
Can't resolve this independent of bug 5063. Moving back to needsAgreement and setting it dependent on bug 5063.
Comment 4 Kumar Pandit 2007-12-05 07:02:00 UTC
The proposal added to bug# 5063 comment# 6 also addresses this bug.
Comment 5 Virginia Smith 2007-12-10 22:15:21 UTC
Reassigning this bug back to default since it might be easier to fix along with 5063.
Comment 6 Kumar Pandit 2008-01-10 20:32:31 UTC
resolution in conf call on 1/10: proposal accepted as stated in comment# 9 of bug# 5063
Comment 7 Kumar Pandit 2008-02-06 07:48:19 UTC
The fix applied for bug# 5063 also includes the fix for this bug. Please take a look at sml-diff.html attached to bug# 5063.
Comment 8 Virginia Smith 2008-02-14 19:52:10 UTC
Fix per comment #17 in Bug #5063
Comment 9 Kumar Pandit 2008-02-20 02:56:23 UTC
This issue is addressed as a part of the fix to bug# 5063.