Schematron / schematron

Schematron "skeleton" - XSLT implementation
MIT License
93 stars 45 forks source link

Issue with iso_svrl_for_xslt2.xsl producing XSL where rules don't fire. #10

Closed GoogleCodeExporter closed 7 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Generate XSL for the following schematron: 
https://github.com/rackspace/wadl-tools/blob/master/xsd/wadl.sch
2.When run against a WADL such as: 
https://github.com/openstack/compute-api/blob/master/openstack-compute-api-2/src
/os-compute-2.wadl  none of the none of the rules fire.

What is the expected output? What do you see instead?

Rules should fire.

What version of the product are you using? On what operating system?

Latest trunk, on OS X with latest Saxon-EE

Please provide any additional information below.

The following customization fixes the issue:

<?xml version="1.0" ?>

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

<xsl:import href="iso_svrl_for_xslt2.xsl"/>

<xsl:namespace-alias stylesheet-prefix="axsl" result-prefix="xsl"/>

<xsl:template name="process-prolog">
    <axsl:template match="@*|node()" mode="#all">
        <axsl:apply-templates select="@*|node()" mode="#current"/>
    </axsl:template>
</xsl:template>

</xsl:stylesheet>

Original issue reported on code.google.com by jorge.lu...@gmail.com on 8 Oct 2012 at 9:19

rjelliffe commented 7 years ago

Unable to replicate. It works for me. They have not run Schematron correctly or something.