[Bug 29237] [xslt 3.0] Bug in CSV package example

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

--- Comment #2 from Michael Kay <mike@saxonica.com> ---
Unfortunately the solution proposed in comment #1 opens up further questions.
If a using stylesheet wishes to override the variable csv:quote, then it needs
to declare its type as csv:one-char. But this type name is not in scope unless
the using package imports the schema for the csv namespace: and how do you
import a schema that is defined inline in another package?

To solve this, I suggest adding the following rule to xsl:import-schema:

When package P uses package Q, the schema components imported by package Q do
not automatically become available in package P. However, if package P contains
an xsl:import-schema declaration with namespace=N, then any schema components
in namespace N that are imported by package Q also become available in package
P. There is no need in this case to specify a schema-location attribute, and
any such attribute is ignored. This includes the case where the
xsl:import-schema declaration in package Q defines an inline schema, that is,
where it has an xs:schema element as a child.

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

Received on Saturday, 24 October 2015 14:21:18 UTC