<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>30008</bug_id>
          
          <creation_ts>2016-11-17 12:09:04 +0000</creation_ts>
          <short_desc>[XSLT 3.0 ]Missing closing parenthesis in &apos;f:complex-number()&apos; call in package example</short_desc>
          <delta_ts>2016-11-18 09:50:57 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XPath / XQuery / XSLT</product>
          <component>XSLT 3.0</component>
          <version>Candidate Recommendation</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>editorial</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Phil Fearon">pgfearo</reporter>
          <assigned_to name="Michael Kay">mike</assigned_to>
          
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>128197</commentid>
    <comment_count>0</comment_count>
    <who name="Phil Fearon">pgfearo</who>
    <bug_when>2016-11-17 12:09:04 +0000</bug_when>
    <thetext>In first example in section 3.5 (Packages):

Missing closing parenthesis in call to &apos;f:complex-number()&apos;

In this snippet:

  &lt;xsl:function name=&quot;f:add&quot; 
                as=&quot;map(xs:integer, xs:double)&quot; visibility=&quot;public&quot;&gt;
    &lt;xsl:param name=&quot;x&quot; as=&quot;map(xs:integer, xs:double)&quot;/&gt;
    &lt;xsl:param name=&quot;y&quot; as=&quot;map(xs:integer, xs:double)&quot;/&gt;
    &lt;xsl:sequence select=&quot;
         f:complex-number(
           f:real($x) + f:real($y), 
           f:imag($x) + f:imag($y)&quot;/&gt;
  &lt;/xsl:function&gt;
----------------------------------^----------
                             missing &apos;)&apos; here</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128214</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2016-11-18 09:50:57 +0000</bug_when>
    <thetext>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&apos;m pleased to say it found this one and a couple of others in the same vein. 

Syntax checking isn&apos;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&apos;t resolvable.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>