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 30008 - [XSLT 3.0 ]Missing closing parenthesis in 'f:complex-number()' call in package example
Summary: [XSLT 3.0 ]Missing closing parenthesis in 'f:complex-number()' call in packag...
Status: RESOLVED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XSLT 3.0 (show other bugs)
Version: Candidate Recommendation
Hardware: PC All
: P2 editorial
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: 2016-11-17 12:09 UTC by Phil Fearon
Modified: 2016-11-18 09:50 UTC (History)
0 users

See Also:


Attachments

Description Phil Fearon 2016-11-17 12:09:04 UTC
In first example in section 3.5 (Packages):

Missing closing parenthesis in call to 'f:complex-number()'

In this snippet:

  <xsl:function name="f:add" 
                as="map(xs:integer, xs:double)" visibility="public">
    <xsl:param name="x" as="map(xs:integer, xs:double)"/>
    <xsl:param name="y" as="map(xs:integer, xs:double)"/>
    <xsl:sequence select="
         f:complex-number(
           f:real($x) + f:real($y), 
           f:imag($x) + f:imag($y)"/>
  </xsl:function>
----------------------------------^----------
                             missing ')' here
Comment 1 Michael Kay 2016-11-18 09:50:57 UTC
Thanks, now fixed.

This bug report reminded me that it was time I reran my syntax-checker stylesheet to check all the examples, and I'm pleased to say it found this one and a couple of others in the same vein. 

Syntax checking isn't completely integrated into the build because it needs careful manual checking of the output, as there are many spurious failures caused by dangling references to resources (packages, stylesheets, source documents) that aren't resolvable.