Menu

#148 XSLT20.RNC errors

closed
nobody
None
5
2007-06-11
2007-05-29
No

Hi, i have found some errors in the xslt 2.0 RNC file.
These errors are in the mode attribute:
(
<xs:simpleType name="modes">
<xs:annotation>
<xs:documentation>
The mode attribute of xsl:template:
either a list, each member being either a QName or #default;
or the value #all
</xs:documentation>
</xs:annotation>
</xs:simpleType>

from the not normative W3C xslt schema file
)

and in xsl:namespace/@name attribute:
that is, it could allow also name with brackets
as in this example:
<xsl:namespace name="{$documentclass-prefix}" select="$documentclass-uri"/>

my patch is:

Index: /metatype/illumino/resolver/xmlcatalogs/xslt/rng/xslt20.rnc

--- /metatype/illumino/resolver/xmlcatalogs/xslt/rng/xslt20.rnc (revision 938)
+++ /metatype/illumino/resolver/xmlcatalogs/xslt/rng/xslt20.rnc (working copy)
@@ -182,7 +182,7 @@
extension.atts,
global.atts,
attribute select { expression.datatype }?,
- attribute mode { "#all" | "#default" | qname.datatype }?,
+ attribute mode { "#current" | "#default" | xsd:QName }?,
(sort.element | with-param.element)*
}

@@ -404,7 +404,7 @@
element namespace {
global.atts,
extension.atts,
- attribute name { xsd:NCName },
+ attribute name { xsd:NCName | brace-avt.datatype },
(attribute select { expression.datatype }
| sequence.constructor)
}
@@ -635,7 +635,7 @@
extension.atts,
global.atts,
(attribute match { pattern.datatype }
- & attribute mode { "#all" | "#default" | qname.datatype }?)?,
+ & attribute mode { modes.datatype }?)?,
attribute name { qname.datatype }?,
attribute priority { number.datatype }?,
attribute as { sequence.datatype }?,
@@ -694,6 +694,8 @@
extension.prefixes.datatype = list { xsd:NCName* }
exclude.prefixes.datatype = list { "#all" | (xsd:NCName | "#default")* }

+modes.datatype = list { "#all" | (qname.datatype | "#default")* }
+
prefix.datatype = xsd:NCName | "#default"
wildcards.datatype =
list {

Discussion

  • Vito Piserchia

    Vito Piserchia - 2007-05-29

    Patch file

     
  • Mauritz Jeanson

    Mauritz Jeanson - 2007-06-11
    • status: open --> closed
     
  • Mauritz Jeanson

    Mauritz Jeanson - 2007-06-11

    Logged In: YES
    user_id=582041
    Originator: NO

    The RNC file for XSLT 2.0 has nothing to do with the DocBook project. I suggest that you submit the patch directly to Norman Walsh.

    See http://norman.walsh.name/2006/07/12/xslt20

     

Log in to post a comment.