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 6371 - [FO] Example of fn:index-of() needs clarifying
Summary: [FO] Example of fn:index-of() needs clarifying
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Functions and Operators 1.0 (show other bugs)
Version: Recommendation
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: 2009-01-06 12:44 UTC by Michael Kay
Modified: 2009-01-28 21:20 UTC (History)
0 users

See Also:


Attachments

Description Michael Kay 2009-01-06 12:44:08 UTC
In 15.1.4.1, examples of fn:index-of(), the preamble to the last example runs:

If @a is an attribute of type xs:NMTOKENS whose typed value is " red green blue ", then...

What it means, of course, is that the string value of the attribute is "red green blue", and the typed value is therefore ("red", "green", "blue").
Comment 1 Michael Kay 2009-01-28 21:19:51 UTC
Erratum E41 has been drafted to correct the introduction to this example, and the bug is therefore being marked fixed and closed.