Page 1 of 1

Error: 'E [Jing] missing "start" element' with DITA RNG modu

Posted: Wed Jan 21, 2015 1:19 pm
by Frank Ralf
Hi,

I've been looking at the RELAX NG implementation of DITA ({oXygen installation folder}\frameworks\dita\DITA-OT\plugins\org.dita-ng.doctypes) to learn more about the inner workings of RELAX NG. However, oXygen always complains about the missing "start" element when opening one of the module files, e.g. topic.mod.rng.

I've already read RNG validation in oXygen 11 and Valid-pattern-only validation in Relax NG? which suggests using validation scenarios to solve this issue. However, I cannot figure out to teach oXygen to ignore DITA RNG module files in general.

Any pointers welcome.

TIA
Frank

Re: Error: 'E [Jing] missing "start" element' with DITA RNG

Posted: Wed Jan 21, 2015 1:35 pm
by george
Hi Frank,

Validation scenarios are one way of solving this, but we provide something even more powerful, master files support. Basically you need to mark the shell files as master files in your DITA project and then oXygen will automatically validate each module in the context of the master files that include/import that module. The editing support will also take advantage of this, offering in content completion components defined in any of the modules included from the master files.

There are a number of videos that show the master files support, not for Relax NG specifically, but that is similar with master files support for XML Schema, XSLT, Schematron and XML:
http://oxygenxml.com/videos.html
See for example
http://oxygenxml.com/demo/MasterFilesSupport.html

Best Regards,
George

Re: Error: 'E [Jing] missing "start" element' with DITA RNG

Posted: Wed Jan 21, 2015 1:44 pm
by Frank Ralf
Hi George,

Many thanks for your quick reply and this great tip! Of course, Master Files is the way to go ;-)

Frank

Re: Error: 'E [Jing] missing "start" element' with DITA RNG modu

Posted: Wed Sep 02, 2015 1:59 pm
by Frank Ralf
Hi,

I face the same problem now while working on a RNG attribute domain module even when adding all document type files to the Master Files.

I suppose this is because I'm defining only attributes in this file but no elements so there cannot be a <start> tag. How can I circumvent this problem?

Kind regards,
Frank

modelAttDomainMod.rng

Code: Select all


<?xml version="1.0" encoding="UTF-8"?>

<grammar xmlns:ditaarch="http://dita.oasis-open.org/architecture/2005/" xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns="http://relaxng.org/ns/structure/1.0"
datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">

<!-- ######## @model ######## -->

<!-- Domains attribute contribution -->
<define name="domains-atts-value" combine="choice">
<value> a(props model)</value>
</define>

<!-- Attribute extension pattern -->
<define name="props-attribute-extensions" combine="interleave">
<ref name="modelAtt-d-attribute" />
</define>

<!-- Attribute declaration pattern -->
<define name="modelAtt-d-attribute">
<optional>
<attribute name="model" />
</optional>
</define>

</grammar>

Re: Error: 'E [Jing] missing "start" element' with DITA RNG modu

Posted: Wed Sep 02, 2015 4:33 pm
by george
Hi,

Another cause may be that this file is not included in any of the master files, in that case oXygen considers that an independent file and it will validate it directly. Can you please check to see if you include this file from a master file? I think you can use the the "Resource dependencies" action from the contextual menu while you are in the editor for that module to see the reverse include hierarchy and easily identify if the file is referred from a master file.
You can also use Window->Show View->Information and then clear all the messages, invoke a validate action and see what actual validate actions are performed by oXygen.

Best Regards,
George

Re: Error: 'E [Jing] missing "start" element' with DITA RNG modu

Posted: Wed Sep 02, 2015 5:42 pm
by Frank Ralf
Hi George,

Thanks for your quick reply and the pointers. I will try those and report back.

Kind regards,
Frank