[Bug 28426] New: [XT30] error-XPTY0020b expects static error even when not executed

https://www.w3.org/Bugs/Public/show_bug.cgi?id=28426

            Bug ID: 28426
           Summary: [XT30] error-XPTY0020b expects static error even when
                    not executed
           Product: XPath / XQuery / XSLT
           Version: Last Call drafts
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSLT 3.0 Test Suite
          Assignee: abel.online@xs4all.nl
          Reporter: abel.braaksma@xs4all.nl
        QA Contact: public-qt-comments@w3.org

The test calls a function that uses an expression that select the root node
from a context item that is not a node:

<xsl:function name="f:doc" xmlns:f="http://f.com/">
  <xsl:analyze-string select="'abcd'" regex="efgh">
    <xsl:matching-substring>
      <xsl:value-of select="//a"/>
    </xsl:matching-substring>
  </xsl:analyze-string>
</xsl:function>
</xsl:stylesheet>

However, the function is never executed. The test is marked with:

    "." used when not a node - static error even though never executed. 

I don't think that is true. If the function is never called, the error does not
need to be raised.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Tuesday, 7 April 2015 06:57:19 UTC