nvdl + schematron + xslt prefix
Posted: Mon Aug 20, 2007 9:30 pm
Oxygen complains that the attribute dummy-for-xmlns is not allowed on some element when I assign a prefix to the XSLT namespace in schematron, e.g.:
test.nvdl:
<rules xmlns="http://purl.oclc.org/dsdl/nvdl/ns/structure/1.0">
<anyNamespace>
<validate schema="test.sch" schemaType="application/x-schematron"/>
</anyNamespace>
</rules>
test.sch:
<schema xmlns="http://www.ascc.net/xml/schematron">
<ns prefix="test" uri="http://www.w3.org/1999/XSL/Transform"/>
<pattern name="a">
<rule context="doc">
<assert test="test:transform">Blah.</assert>
</rule>
</pattern>
</schema>
The 1.5 schematron skeleton that I have would have created an attribute with the prefix 'test' named 'dummy-for-xmlns'. Using the above schematron as the schema works, but using the NVDL results in an error message saying attribute test:dummy-for-xmlns is not allowed somewhere.
test.nvdl:
<rules xmlns="http://purl.oclc.org/dsdl/nvdl/ns/structure/1.0">
<anyNamespace>
<validate schema="test.sch" schemaType="application/x-schematron"/>
</anyNamespace>
</rules>
test.sch:
<schema xmlns="http://www.ascc.net/xml/schematron">
<ns prefix="test" uri="http://www.w3.org/1999/XSL/Transform"/>
<pattern name="a">
<rule context="doc">
<assert test="test:transform">Blah.</assert>
</rule>
</pattern>
</schema>
The 1.5 schematron skeleton that I have would have created an attribute with the prefix 'test' named 'dummy-for-xmlns'. Using the above schematron as the schema works, but using the NVDL results in an error message saying attribute test:dummy-for-xmlns is not allowed somewhere.