Error transforming ODD spec to rnc or rng
Posted: Wed Jan 18, 2017 8:58 pm
I have a ODD specification for our schema and have been using Oxygen's built in schema transformation scenerios TEI ODD to RelaxNG XML and to RelaxNG Compact to generate our schema files.
I tried to run the scenario on our ODD file and I am getting an error and there are errors in the generated schema files. The ODD file has not changed since I last successfully generated the schema files.
The error is
this is what that looks like in the last time I generated the rnc with no error.
it just doesn't make sense that I'm having errors now with a source ODD file that has not changed?
Scott
I tried to run the scenario on our ODD file and I am getting an error and there are errors in the generated schema files. The ODD file has not changed since I last successfully generated the schema files.
The error is
The error in the rnc file isSystem ID: /home/scott/Oxygen XML Editor 18-1/frameworks/tei/xml/tei/stylesheet/odds/teiodds.xsl
Scenario: TEI ODD XHTML
XML file: /home/scott/workspace/mbel-work/schemas/mbel.odd
XSL file: /home/scott/Oxygen XML Editor 18-1/frameworks/tei/xml/tei/stylesheet/odds/odd2odd.xsl
Document type: TEI ODD
Engine name: Saxon-PE 9.6.0.7
Severity: fatal
Description: XTTE0570: An empty sequence is not allowed as the value of variable $max
Start location: 2265:0
URL: http://www.w3.org/TR/xslt20/#err-XTTE0570
and this is indicated as where the error is in the rnc fileconflicting ID-types for attribute "id" from namespace "http://www.w3.org/XML/1998/namespace" of element "benediction" from namespace "http://mbelibrary.org/ns1"
Code: Select all
mbel_macro.anyXML =
element * - (tei:* | teix:egXML) {
attribute * { text }*,
(text | mbel_macro.anyXML)*
}
Code: Select all
mbel_macro.anyXML =
element * - (ns3:* | egXML) {
attribute * { text }*,
(text | mbel_macro.anyXML)*
}
Scott