Logical Model View -- save as Relax NG

This should cover W3C XML Schema, Relax NG and DTD related problems.
adrian
Posts: 2867
Joined: Tue May 17, 2005 4:01 pm

Re: Logical Model View -- save as Relax NG

Post by adrian »

Hello,

Like George said, you can use cmd:
cmd /C java -jar "C:\MyPath\OxygenXMLEditor\external_tools\jing-20090818\bin\jing.jar" -cs ${cfne} > ${cfn}_flatten.rng

Make sure the working directory is correct or use the current file directory editor variable: ${cfd}

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
tara_athan
Posts: 5
Joined: Wed Mar 23, 2011 1:01 am

Re: Logical Model View -- save as Relax NG

Post by tara_athan »

Thanks, I got this working. For the benefit of other command-line challenged folks out there, this is the way the command line field should look

cmd.exe /c java -jar "C:\MyPath\jing-20091111\bin\jing.jar" -s ${cfne} > ${cfne}_flatten.rng

OR, for schema in compact syntax

cmd.exe /c java -jar "C:\MyPath\jing-20091111\bin\jing.jar" -sc ${cfne} > ${cfne}_flatten.rng
tara_athan
Posts: 5
Joined: Wed Mar 23, 2011 1:01 am

Re: Logical Model View -- save as Relax NG

Post by tara_athan »

One more twist on this: can I configure the external tool to add this file to the current project?
adrian
Posts: 2867
Joined: Tue May 17, 2005 4:01 pm

Re: Logical Model View -- save as Relax NG

Post by adrian »

I'm afraid you can't configure the external tool to add the output file to the project.

An alternative is to manually add the parent directory(or another ancestor) of the output file to the project. In the project tree right click on a logical resource or the tree root and from the contextual menu choose Add Folder.

After generating the file, refresh the parent directory and the file will appear in the tree.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Post Reply