ralax ng compact + schematron validation issues
This should cover W3C XML Schema, Relax NG and DTD related problems.
ralax ng compact + schematron validation issues
Im working on a schema in relax ng with embedded schematron rules but none of the schematron rules seems to be operating. Whats odd is that if I use trang to convert the compact (rnc) to xml (rng) it works just fine.
take for example the following simple xml
with the compact schema
which then translated to rng in trang gives me
I do realize this isnt the best example, as the test could be done using "attribute format { "0.5" }". This is simply for the purpose of testing basic schematron.
Using the external validation option, if i select the rng, XML syntax, and embedded schematron rules, i get the appropriate response: "format isnt 0.5 (@format = 0.5)"
If i try the same but with the rnc and compact options, it validates and does not give me the schematron assert.
Using oXygen Editor 9.3 on OSX 10.5.5
take for example the following simple xml
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<test format="0.6">
<blank/>
</test>
Code: Select all
namespace rng = "http://relaxng.org/ns/structure/1.0"
datatypes xsd = "http://www.w3.org/2001/XMLSchema-datatypes"
namespace sch = "http://purl.oclc.org/dsdl/schematron"
start =
element test {
attribute format {
[
sch:pattern [
sch:rule [
context = "/test"
sch:assert [
test = "@format = 0.5"
' format isnt 0.5 '
]
]
]
]
xsd:decimal },
element blank {empty }
}
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<grammar xmlns:sch="http://purl.oclc.org/dsdl/schematron" xmlns:rng="http://relaxng.org/ns/structure/1.0" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
<start>
<element name="test">
<attribute name="format">
<data type="decimal">
<sch:pattern>
<sch:rule context="/test">
<sch:assert test="@format = 0.5"> format isnt 0.5 </sch:assert>
</sch:rule>
</sch:pattern>
</data>
</attribute>
<element name="blank">
<empty/>
</element>
</element>
</start>
</grammar>
Using the external validation option, if i select the rng, XML syntax, and embedded schematron rules, i get the appropriate response: "format isnt 0.5 (@format = 0.5)"
If i try the same but with the rnc and compact options, it validates and does not give me the schematron assert.
Using oXygen Editor 9.3 on OSX 10.5.5
Re: ralax ng compact + schematron validation issues
This is not logged as an issue on our issue tracking system. As you mentioned in your message you can convert from compact to XML format and use that instead.
I will log this as an enhancement and if we receive also other requests then it will probably be implemented.
Best Regards,
George
I will log this as an enhancement and if we receive also other requests then it will probably be implemented.
Best Regards,
George
George Cristian Bina
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