[Bug 29233] [xslt30ts] package-017: duplicate function declaration

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

--- Comment #4 from Michael Kay <mike@saxonica.com> ---
I think it definitely IS allowed to have two use-package elements identifying
the same package provided that it doesn't result in any duplicate declarations.
Unless the package exposes nothing, the only way you can avoid duplicate
declarations is by selectively accepting the components it exposes. So it's
legal to do:

<xsl:use-package name="math">
  <xsl:accept component="function" name="*" visibility="hidden"/>
  <xsl:accept component="function" name="sine" visibility="public"/>
</xsl:use-package>

<xsl:use-package name="math">
  <xsl:accept component="function" name="*" visibility="hidden"/>
  <xsl:accept component="function" name="cosine" visibility="public"/>
</xsl:use-package>

I can certainly see the utility in saying that if there is at least one
xsl:accept element, then everything that is not accepted is hidden. But that's
not the way it is currently defined.

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

Received on Monday, 26 October 2015 17:30:59 UTC