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 30044 - xsl:evaluate access to private functions
Summary: xsl:evaluate access to private functions
Status: RESOLVED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XSLT 3.0 Test Suite (show other bugs)
Version: Candidate Recommendation
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Abel Braaksma
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-11 21:34 UTC by Michael Kay
Modified: 2017-01-14 21:21 UTC (History)
0 users

See Also:


Attachments

Description Michael Kay 2017-01-11 21:34:08 UTC
Test evaluate-006 uses xsl:evaluate to evaluate an expression containing a reference to f:square, which is a function declared in the containing stylesheet. But it has no visibility attribute, which means it is implicitly private, and xsl:evaluate says that the static context for the dynamic expression includes:

all user-defined functions present in the containing package provided their visibility is not hidden or private;
Comment 1 Michael Kay 2017-01-14 21:21:00 UTC
I have changed tests (including evaluate-006 and others) that call stylesheet functions from within xsl:evaluate to make the functions public, and have added a new test evaluate-045 testing that such a call fails if the function is private.