ndw / xslt-relax-ng

RELAX NG grammars for XSLT 1.0, 2.0, ...
http://norman.walsh.name/2006/07/12/xslt20
MIT License
36 stars 4 forks source link

xsl:result-document #5

Closed raghnysh closed 4 years ago

raghnysh commented 5 years ago

According to the XSLT 3.0 spec, the method attribute of xsl:result-document accepts an attribute value template as a value, but the schema here does not allow it. For example, the stylesheet

<xsl:stylesheet version="3.0"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

  <xsl:param name="method" select="'html'"/>

  <xsl:template name="result-document">
    <xsl:result-document method="{$method}"/>
  </xsl:template>
</xsl:stylesheet>

validates with the XSLT 3.0 schema from W3C, but does not validate with the XSLT 3.0 schema here.