W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > January to March 2013

[Bug 20784] A top-level xs:annotation in a schema that's being overridden causes override.xsl to fail

From: <bugzilla@jessica.w3.org>
Date: Sun, 27 Jan 2013 18:54:43 +0000
To: www-xml-schema-comments@w3.org
Message-ID: <bug-20784-703-5uTCdAW6js@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=20784

Michael Kay <mike@saxonica.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED

--- Comment #2 from Michael Kay <mike@saxonica.com> ---
I fixed this for Saxon by changing the f:componentName function to:

<xsl:function name="f:componentName" as="xs:QName?">
    <xsl:param name="component" as="element()"/>
    <xsl:sequence select="if ($component/@name) then
QName($component/ancestor::xs:schema/@targetNamespace, $component/@name) else
()"/>
  </xsl:function>

And I also had to add an xs:import for the XML namespace to the overriding
schema document.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Sunday, 27 January 2013 18:54:44 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 27 January 2013 18:54:45 GMT