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 4685 - Prefix should be allowed in front of deref() in identity constraint xpaths
Summary: Prefix should be allowed in front of deref() in identity constraint xpaths
Status: RESOLVED FIXED
Alias: None
Product: SML
Classification: Unclassified
Component: Core (show other bugs)
Version: unspecified
Hardware: PC Windows XP
: P2 normal
Target Milestone: FPWD
Assignee: Kumar Pandit
QA Contact: SML Working Group discussion list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-21 17:31 UTC by Sandy Gao
Modified: 2007-07-25 07:24 UTC (History)
0 users

See Also:


Attachments

Description Sandy Gao 2007-06-21 17:31:49 UTC
The current BNF that describes the XPath subset used for SML identity constraints allows the deref() function. But it doesn't allow the form prefix:deref(). (The prefix is needed, given that deref() belongs to the SML functions namespace.)

Suggest to replace occurrences of

'deref('

with

(NCName ':')? 'deref('
Comment 1 Virginia Smith 2007-07-05 18:45:49 UTC
Decision is to fix in FPWD and Michael will open another issue to discuss whether to remove this BNF in favor of referencing the XPath spec and using prose.
Comment 2 Kumar Pandit 2007-07-25 07:24:19 UTC
changed the BNF to:

Selector ::= Path ( '|' Path)*
Path ::= ('.//')? Step ( '/' Step)* | DerefExpr
DerefExpr ::= (NCName ':')? 'deref(' Step (/Step)* ')'  ('/'Step)* |
              (NCName ':')? 'deref(' DerefExpr ')' (/Step)*
Step::= '.' | NameTest
NameTest ::= QName |'*' | NCName ':' '*'