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 26997 - [XSLT30] Package version ranges - EBNF error
Summary: [XSLT30] Package version ranges - EBNF error
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XSLT 3.0 (show other bugs)
Version: Working drafts
Hardware: PC Windows NT
: P2 minor
Target Milestone: ---
Assignee: Michael Kay
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-08 08:20 UTC by johnlumley
Modified: 2014-10-24 10:38 UTC (History)
0 users

See Also:


Attachments

Description johnlumley 2014-10-08 08:20:38 UTC
The EBNF for the production

 VersionRanges          ::=  VersionRange S? "," S? VersionRange

within the 2nd October Last Call Working draft (http://www.w3.org/TR/xslt-30/#package-versions) appears to require a pair of Version Ranges. I suspect the intent was:

 VersionRanges          ::=  VersionRange (S? "," S? VersionRange)*

which was that suggested in https://www.w3.org/Bugs/Public/show_bug.cgi?id=26649 . There appears to be no other discussion of such a change in Bugzilla that I can find.

The current form cannot of course express a single package version requirement, save that it is 'doubled' ;-).
Comment 1 johnlumley 2014-10-09 10:01:37 UTC
In addition, the production:

  VersionFromTo  ::=  PackageVersion S "to" S VersionPrefix   

does not correspond with the detailed examples in the subsequent bullet point:

  The range VersionFromTo matches any version that is greater than or equal
  to the starting PackageVersion, and less than or equal to some version that
  matches the VersionPrefix. For example, 1 to 5 matches 1.1,  2.1,  3.1,
  or 5.0 (but not 5.1), while 1 to 5.* matches all of these, plus versions
  such as 5.7.2 (but not 6.0 or 6.0-beta).

The first example uses PackageVersion as the 'to' operand. I suspect the production should be:

  VersionFromTo  ::=  PackageVersion S "to" S (PackageVersion | VersionPrefix)
Comment 2 Michael Kay 2014-10-16 16:51:10 UTC
Agreed, we should fix both these errors.