[Bug 22061] [XSLT 3.0] Omissions in the schema for XSLT 3.0

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

C. M. Sperberg-McQueen <cmsmcq@blackmesatech.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |cmsmcq@blackmesatech.com

--- Comment #1 from C. M. Sperberg-McQueen <cmsmcq@blackmesatech.com> ---
Created attachment 1417
  --> https://www.w3.org/Bugs/Public/attachment.cgi?id=1417&action=edit
revised XSD 1.1 schema for XSLT 3.0

A revised schema document is attached.  I believe that the attached schema
document fixes all the problems noted (with one possible exception).  I have
not tested it independently.  Notes on details:

a) it misses all the bits about attribute expand-text

The attribute expand-text has been added to the complex type
generic-element-type and to the attribute group
literal-result-element-attributes.

b) it says that the select attribute on xsl:try is required

Made optional, to agree with syntax diagram in spec.

c) it says that the errors attribute on xsl:catch is required

Made optional, to agree with syntax diagram in spec.

d) I have a failed assertion with Saxon about the expression
<xs:assert test="if (exists(@value)) then empty((@select, @level,
@count, @from)) else true()">

Could not reproduce (and don't see a problem with the test), so no change made.

e) it allows only 0 or 1 xsl:merge-action as direct child of xsl:merge

I think this must be a typo:  the schema allows exactly one merge-action as a
child of merge, not 0 or 1.  This is also what the syntax diagram says.  On the
other hand the schema document allows 0 or 1 merge-source, where the syntax
diagram has a plus.  Changed to minOccurs="1" maxOccurs="unbounded".

f) it misses xsl:map

Added.

g)it misses xsl:map-entry

Added.

h) it misses the static attribute

Added to the types of param and variable, with assertions constraining the use
of static='yes' to cases with visibliity="private" or "final", and also an
assertion on xsl:transform to check that 'static' is used only on top-level
param and variable elements.

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

Received on Thursday, 28 November 2013 03:08:09 UTC