- From: <bugzilla@wiggum.w3.org>
- Date: Fri, 05 Jan 2007 16:54:26 +0000
- To: public-qt-comments@w3.org
- CC:
http://www.w3.org/Bugs/Public/show_bug.cgi?id=4149
Summary: [XSLT 2.0] Missing parenthesis in example
Product: XPath / XQuery / XSLT
Version: Proposed Recommendation
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: minor
Priority: P2
Component: XSLT 2.0
AssignedTo: mike@saxonica.com
ReportedBy: mike@saxonica.com
QAContact: public-qt-comments@w3.org
The following comment was raised on the W3C XSL WG list, and is copied here for
the record. It will be fixed editorially.
In 18.1.1 Testing Availability of Functions
Example: Stylesheet portable between XSLT 2.0 and a future version of XSLT
<xsl:value-of select="pad($input, 10)"
use-when="function-available('pad', 2)"/> <xsl:value-of
select="concat($input, string-join(
for $i in 1 to 10 - string-length($input)
return ' ', ''))"
use-when="not(function-available('pad', 2)"/>
a ')' is missing, so should be
<xsl:value-of select="pad($input, 10)"
use-when="function-available('pad', 2)"/> <xsl:value-of
select="concat($input, string-join(
for $i in 1 to 10 - string-length($input)
return ' ', ''))"
use-when="not(function-available('pad', 2))"/>
Mohamed
--
Innovimax SARL
Consulting, Training & XML Development
9, impasse des Orteaux
75020 Paris
Tel : +33 8 72 475787
Fax : +33 1 4356 1746
http://www.innovimax.fr
RCS Paris 488.018.631
SARL au capital de 10.000 €
Received on Friday, 5 January 2007 16:54:46 UTC