- From: <bugzilla@jessica.w3.org>
- Date: Wed, 17 Jul 2013 11:46:26 +0000
- To: public-qt-comments@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=22713 Bug ID: 22713 Summary: Minor error in example in both XSLT 2.0 and 3.0 Classification: Unclassified Product: XPath / XQuery / XSLT Version: Member-only Editors Drafts Hardware: PC OS: Windows NT Status: NEW Severity: normal Priority: P2 Component: XSLT 3.0 Assignee: mike@saxonica.com Reporter: abel.braaksma@xs4all.nl QA Contact: public-qt-comments@w3.org Under 18.1.1 in XSLT 2.0 and 23.1.1 in XSLT 3.0, a minor error appears in the following example: <out xsl:version="2.0"> <xsl:choose> <xsl:when test="function-available('matches')"> <xsl:value-of select="matches($input, '[a-z]*')"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="string-length( translate($in, 'abcdefghijklmnopqrstuvwxyz', '')) = 0"/> </xsl:otherwise> </xsl:choose> </out> The example assumes a variable $input, but under <xsl:otherwise> the variable is called $in. In addition, instead of using an undeclared variable, the example is perhaps clearer and more correct if an XPath axis step were used, like title or username. This also applies to the second example using use-when. -- You are receiving this mail because: You are the QA Contact for the bug.
Received on Wednesday, 17 July 2013 11:46:27 UTC