nvdl + schematron + xslt prefix
Post here issues about NVDL, not specifically linked to the oNVDL implementation.
nvdl + schematron + xslt prefix
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.
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Post by sorin_ristache »
Hello,
The error is reported on the internal stylesheet obtained from the Schematron schema and used to validate the XML document. It happens only when the Shematron schema uses elements from the XSLT namespace. We will fix the problem.
Thank you,
Sorin
The error is reported on the internal stylesheet obtained from the Schematron schema and used to validate the XML document. It happens only when the Shematron schema uses elements from the XSLT namespace. We will fix the problem.
Thank you,
Sorin
Return to “General NVDL Issues”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service