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 4177 - Disambiguate notational convention for choice syntax
Summary: Disambiguate notational convention for choice syntax
Status: RESOLVED FIXED
Alias: None
Product: WS-Policy
Classification: Unclassified
Component: Framework+Attachment (show other bugs)
Version: LC
Hardware: Macintosh All
: P2 normal
Target Milestone: ---
Assignee: Fabian Ritzmann
QA Contact: Web Services Policy WG QA List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-10 10:04 UTC by Fabian Ritzmann
Modified: 2007-01-16 21:58 UTC (History)
1 user (show)

See Also:


Attachments

Description Fabian Ritzmann 2007-01-10 10:04:24 UTC
Title

Disambiguate notational convention for choice syntax

Description

Framework and Attachment, section 2.1 each, state:

The character "|" is used to indicate a choice between alternatives.

The character is used exactly twice. The first occurrence is in the framework, section 4.2:

/wsp:Policy/(@wsu:Id | @xml:id)

The other occurrence is in attachment, section 3.4:

(05)   ( <wsp:Policy> </wsp:Policy> |
(06)     <wsp:PolicyReference> </wsp:PolicyReference> ) +

In both cases, the choice is exclusive. Note the + character which allows multiple occurrences of Policy and PolicyReference in the second case. Inclusive choice can always be solved as in the second case.
Justification

We should define the | syntax as exclusive right from the beginning to ease reading and understanding.

Target

Framework and Attachment

Proposal

In Framework section 2.1 and Attachment section 2.1 replace this:

The character "|" is used to indicate a choice between alternatives.

with this:

The character "|" is used to indicate an exclusive choice between alternatives.
Comment 1 Christopher Ferris 2007-01-16 21:58:25 UTC
RESOLUTION: 4177 resolved by adding exclusive as proposed in http://lists.w3.org/Archives/Public/public-ws-policy/2007Jan/0056.html
See http://www.w3.org/2007/01/16-ws-policy-irc#T21-57-25