Strange behaviour with OxygenXML 9.1 and RNG schema

In Oxygen 9.1 2007122116 With this RNG Schema <?xml version="1.0" encoding="UTF-8"?> <grammar xmlns="http://relaxng.org/ns/structure/1.0" xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"> <start> <element name="root"> <element name="foo"> <text/> </element> </element> </start> </grammar> It validates this document <?xml version="1.0" encoding="UTF-8"?> <?oxygen RNGSchema="test-1.rng" type="xml"?> <root> </root> Where am I wrong ? Regards, Xmlizer

Hello, What do you mean it validates the document? I get the error: unfinished element "root": "foo" required to finish the element Did you press the Validate Document toolbar button and Oxygen reported no validation error? Does the file test-1.rng that is located in the same folder as the XML file contain the RELAX NG schema that you posted to the list? Regards, Sorin mozer wrote:
In Oxygen 9.1 2007122116
With this RNG Schema
<?xml version="1.0" encoding="UTF-8"?> <grammar xmlns="http://relaxng.org/ns/structure/1.0" xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"> <start> <element name="root"> <element name="foo"> <text/> </element> </element> </start> </grammar>
It validates this document
<?xml version="1.0" encoding="UTF-8"?> <?oxygen RNGSchema="test-1.rng" type="xml"?> <root>
</root>
Where am I wrong ?
Regards,
Xmlizer

Sorin, Yes I do validate and even do empty cache and validate but It says that the document is valid which is stange Do you have any idea from where do I need to start The rng and xml are in the same folder Xmlizer On Mon, Jun 2, 2008 at 11:53 AM, Sorin Ristache <sorin@oxygenxml.com> wrote:
Hello,
What do you mean it validates the document? I get the error:
unfinished element "root": "foo" required to finish the element
Did you press the Validate Document toolbar button and Oxygen reported no validation error? Does the file test-1.rng that is located in the same folder as the XML file contain the RELAX NG schema that you posted to the list?
Regards, Sorin
mozer wrote:
In Oxygen 9.1 2007122116
With this RNG Schema
<?xml version="1.0" encoding="UTF-8"?> <grammar xmlns="http://relaxng.org/ns/structure/1.0" xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"> <start> <element name="root"> <element name="foo"> <text/> </element> </element> </start> </grammar>
It validates this document
<?xml version="1.0" encoding="UTF-8"?> <?oxygen RNGSchema="test-1.rng" type="xml"?> <root> </root>
Where am I wrong ?
Regards,
Xmlizer
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

Please post the two files (the schema and the XML file) that are located in the same folder. Regards, Sorin mozer wrote:
Sorin,
Yes I do validate and even do empty cache and validate but It says that the document is valid which is stange
Do you have any idea from where do I need to start
The rng and xml are in the same folder
Xmlizer
On Mon, Jun 2, 2008 at 11:53 AM, Sorin Ristache <sorin@oxygenxml.com <mailto:sorin@oxygenxml.com>> wrote:
Hello,
What do you mean it validates the document? I get the error:
unfinished element "root": "foo" required to finish the element
Did you press the Validate Document toolbar button and Oxygen reported no validation error? Does the file test-1.rng that is located in the same folder as the XML file contain the RELAX NG schema that you posted to the list?
Regards, Sorin
mozer wrote:
In Oxygen 9.1 2007122116
With this RNG Schema
<?xml version="1.0" encoding="UTF-8"?> <grammar xmlns="http://relaxng.org/ns/structure/1.0" xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"> <start> <element name="root"> <element name="foo"> <text/> </element> </element> </start> </grammar>
It validates this document
<?xml version="1.0" encoding="UTF-8"?> <?oxygen RNGSchema="test-1.rng" type="xml"?> <root> </root>
Where am I wrong ?
Regards,
Xmlizer
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com <mailto:oXygen-user@oxygenxml.com> http://www.oxygenxml.com/mailman/listinfo/oxygen-user
------------------------------------------------------------------------
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

Sorin, They are identical to what I copy/paste just before But here they are attached Regards, Xmlizer On Mon, Jun 2, 2008 at 12:02 PM, Sorin Ristache <sorin@oxygenxml.com> wrote:
Please post the two files (the schema and the XML file) that are located in the same folder.
Regards, Sorin
mozer wrote:
Sorin,
Yes I do validate and even do empty cache and validate but It says that the document is valid which is stange
Do you have any idea from where do I need to start
The rng and xml are in the same folder
Xmlizer
On Mon, Jun 2, 2008 at 11:53 AM, Sorin Ristache <sorin@oxygenxml.com<mailto: sorin@oxygenxml.com>> wrote:
Hello,
What do you mean it validates the document? I get the error:
unfinished element "root": "foo" required to finish the element
Did you press the Validate Document toolbar button and Oxygen reported no validation error? Does the file test-1.rng that is located in the same folder as the XML file contain the RELAX NG schema that you posted to the list?
Regards, Sorin
mozer wrote:
In Oxygen 9.1 2007122116
With this RNG Schema
<?xml version="1.0" encoding="UTF-8"?> <grammar xmlns="http://relaxng.org/ns/structure/1.0" xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"> <start> <element name="root"> <element name="foo"> <text/> </element> </element> </start> </grammar>
It validates this document
<?xml version="1.0" encoding="UTF-8"?> <?oxygen RNGSchema="test-1.rng" type="xml"?> <root> </root>
Where am I wrong ?
Regards,
Xmlizer
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com <mailto:oXygen-user@oxygenxml.com> http://www.oxygenxml.com/mailman/listinfo/oxygen-user
------------------------------------------------------------------------
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

I get the same error with your files. I used Oxygen 9.1 build number 2007122116. What is your Oxygen build number displayed in the About dialog? Please send a zip archive with all the user preferences stored in the folder [user-home-folder]/Application Data/com.oxygenxml (Windows) / [user-home-folder]/.com.oxygenxml (Linux) / [user-home-folder]/Library/Preferences/com.oxygenxml (Mac OS X). Regards, Sorin mozer wrote:
Sorin,
They are identical to what I copy/paste just before
But here they are attached
Regards,
Xmlizer
On Mon, Jun 2, 2008 at 12:02 PM, Sorin Ristache <sorin@oxygenxml.com <mailto:sorin@oxygenxml.com>> wrote:
Please post the two files (the schema and the XML file) that are located in the same folder.
Regards, Sorin

Open the Information view from menu Perspective -> Show View -> Information and run the Validate Document action again. Is the RELAX NG schema located in the same folder as the XML file used in the validation operation? You can see the location of the schema in the Information view. Did you set an XML catalog that maps the schema specified in the XML document to other schema file? Regards, Sorin Sorin Ristache wrote:
I get the same error with your files. I used Oxygen 9.1 build number 2007122116. What is your Oxygen build number displayed in the About dialog?
Please send a zip archive with all the user preferences stored in the folder [user-home-folder]/Application Data/com.oxygenxml (Windows) / [user-home-folder]/.com.oxygenxml (Linux) / [user-home-folder]/Library/Preferences/com.oxygenxml (Mac OS X).
Regards, Sorin
mozer wrote:
Sorin,
They are identical to what I copy/paste just before
But here they are attached
Regards,
Xmlizer

Hi, This kind of validation surely works in oXygen. Something strange happens in your case and the validation is either not performed (for instance only a wellformed check in done) or the validation is not against the sample schema (for instance an XML catalog can provide a different schema). Some things to check: 1. Show the Information view (Perspective->Show View->Information) and see what operation is performed when you validate the document. Let us know what is written there. 2. Enable the catalog verbosity from Options->Preferences -- XML -- XML Catalog --- Verbosity. Perform the Validate action and see in the Catalogs View if there is a mapping performed by the catalog from your schema to another schema. 3. If there is no specific reason get the latest 9.2 distribution instead of 9.1. The same license key works with 9.2. 4. Create a new DocBook 5 document (for instance File->New -- From Templates -- DocBook 5 Article). Make some validation errors in the new document and validate that. Do you get an error? Best Regards, George -- George Cristian Bina <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com mozer wrote:
Sorin,
They are identical to what I copy/paste just before
But here they are attached
Regards,
Xmlizer
On Mon, Jun 2, 2008 at 12:02 PM, Sorin Ristache <sorin@oxygenxml.com <mailto:sorin@oxygenxml.com>> wrote:
Please post the two files (the schema and the XML file) that are located in the same folder.
Regards, Sorin
mozer wrote:
Sorin,
Yes I do validate and even do empty cache and validate but It says that the document is valid which is stange
Do you have any idea from where do I need to start
The rng and xml are in the same folder
Xmlizer
On Mon, Jun 2, 2008 at 11:53 AM, Sorin Ristache <sorin@oxygenxml.com <mailto:sorin@oxygenxml.com> <mailto:sorin@oxygenxml.com <mailto:sorin@oxygenxml.com>>> wrote:
Hello,
What do you mean it validates the document? I get the error:
unfinished element "root": "foo" required to finish the element
Did you press the Validate Document toolbar button and Oxygen reported no validation error? Does the file test-1.rng that is located in the same folder as the XML file contain the RELAX NG schema that you posted to the list?
Regards, Sorin
mozer wrote:
In Oxygen 9.1 2007122116
With this RNG Schema
<?xml version="1.0" encoding="UTF-8"?> <grammar xmlns="http://relaxng.org/ns/structure/1.0"
xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"
datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"> <start> <element name="root"> <element name="foo"> <text/> </element> </element> </start> </grammar>
It validates this document
<?xml version="1.0" encoding="UTF-8"?> <?oxygen RNGSchema="test-1.rng" type="xml"?> <root> </root>
Where am I wrong ?
Regards,
Xmlizer
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com <mailto:oXygen-user@oxygenxml.com> <mailto:oXygen-user@oxygenxml.com <mailto:oXygen-user@oxygenxml.com>>
http://www.oxygenxml.com/mailman/listinfo/oxygen-user
------------------------------------------------------------------------
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com <mailto:oXygen-user@oxygenxml.com> http://www.oxygenxml.com/mailman/listinfo/oxygen-user
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com <mailto:oXygen-user@oxygenxml.com> http://www.oxygenxml.com/mailman/listinfo/oxygen-user
------------------------------------------------------------------------
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

1. Show the Information view (Perspective->Show View->Information) and see what operation is performed when you validate the document. Let us know what is written there. [15:46:59] - start scanning file:/C:/Users/MoZ/Desktop/test.xml with schema(s): file:/C:/Users/MoZ/Desktop/test.rng [15:46:59] - Found 0 problem(s) 2. Enable the catalog verbosity from Options->Preferences -- XML -- XML Catalog --- Verbosity. Perform the Validate action and see in the Catalogs View if there is a mapping performed by the catalog from your schema to another schema. SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%209.0/frameworks/dita/catalog.xml SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%209.0/frameworks/dita/DITA-OT/catalog-dita.xml SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%209.0/frameworks/docbook/catalog.xml SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%209.0/frameworks/docbook/5.0/catalog.xml SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%209.0/frameworks/docbook/4.4/dtd/catalog.xml SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%209.0/frameworks/docbook/4.3/dtd/catalog.xml SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%209.0/frameworks/docbook/4.2/dtd/catalog.xml SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%209.0/frameworks/docbook/5.0/catalog.xml SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%209.0/frameworks/fo/xsd/catalog.xml SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%209.0/frameworks/svg/dtd/svgcatalog.xml SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%209.0/frameworks/tei/xml/teip4/schema/dtd/catalog.xml SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%209.0/frameworks/tei/xml/teip4/custom/schema/dtd/catalog.xml SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%209.0/frameworks/tei/xml/tei/schema/catalog.xml SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%209.0/frameworks/tei/xml/tei/custom/schema/catalog.xml SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%209.0/frameworks/xhtml/dtd/xhtmlcatalog.xml SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%209.0/frameworks/xhtml11/dtd/xhtmlcatalog.xml SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%209.0/frameworks/xhtml11/schema/xhtmlcatalog.xml SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%209.0/frameworks/xmlspec/catalog.xml SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%209.0/frameworks/catalog.xml SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%209.0/frameworks/jsp/xsd/jspcatalog.xml SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%209.0/frameworks/xml/catalog.xml SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%209.0/frameworks/xs3p/catalog.xml SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/catalog.xml SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/tei/catalog.xml SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/tei/xml/tei/custom/schema/catalog.xml SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/tei/xml/tei/schema/catalog.xml SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/tei/xml/teip4/custom/schema/dtd/catalog.xml SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/tei/xml/teip4/schema/dtd/catalog.xml SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/docbook/catalog.xml SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/docbook/dtd/catalog.xml SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/docbook/4.3/dtd/catalog.xml SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/docbook/4.2/dtd/catalog.xml SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/docbook/5.0/catalog.xml SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/svg/dtd/svgcatalog.xml SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/jsp/xsd/jspcatalog.xml SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/xml/catalog.xml SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/xhtml/dtd/xhtmlcatalog.xml SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/xhtml11/dtd/xhtmlcatalog.xml SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/xhtml11/schema/xhtmlcatalog.xml SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/fo/xsd/catalog.xml SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/xs3p/catalog.xml SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/xmlspec/catalog.xml SystemID: null Description: Public: null System: file:/C:/Users/MoZ/Desktop/test.rng = file:/C:/Users/MoZ/Desktop/test.rng 3. If there is no specific reason get the latest 9.2 distribution instead of 9.1. The same license key works with 9.2. Will do the deploy of 9.2 but wanted to know about this point in perticular 4. Create a new DocBook 5 document (for instance File->New -- From Templates -- DocBook 5 Article). Make some validation errors in the new document and validate that. Do you get an error? I tried but it seems the problem is only for empty content ; When you have nothing it seems to be allowed whathever the schema is More interesting, if I take the test.rng and put in in a NVDL, I have the right behaviour Hope this will help you debug this Regards, Xmlizer On Mon, Jun 2, 2008 at 2:24 PM, George Cristian Bina <george@oxygenxml.com> wrote:
Hi,
This kind of validation surely works in oXygen. Something strange happens in your case and the validation is either not performed (for instance only a wellformed check in done) or the validation is not against the sample schema (for instance an XML catalog can provide a different schema).
Some things to check: 1. Show the Information view (Perspective->Show View->Information) and see what operation is performed when you validate the document. Let us know what is written there.
2. Enable the catalog verbosity from Options->Preferences -- XML -- XML Catalog --- Verbosity. Perform the Validate action and see in the Catalogs View if there is a mapping performed by the catalog from your schema to another schema.
3. If there is no specific reason get the latest 9.2 distribution instead of 9.1. The same license key works with 9.2.
4. Create a new DocBook 5 document (for instance File->New -- From Templates -- DocBook 5 Article). Make some validation errors in the new document and validate that. Do you get an error?
Best Regards, George -- George Cristian Bina <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com
mozer wrote:
Sorin,
They are identical to what I copy/paste just before
But here they are attached
Regards,
Xmlizer
On Mon, Jun 2, 2008 at 12:02 PM, Sorin Ristache <sorin@oxygenxml.com<mailto: sorin@oxygenxml.com>> wrote:
Please post the two files (the schema and the XML file) that are located in the same folder.
Regards, Sorin
mozer wrote:
Sorin,
Yes I do validate and even do empty cache and validate but It says that the document is valid which is stange
Do you have any idea from where do I need to start
The rng and xml are in the same folder
Xmlizer
On Mon, Jun 2, 2008 at 11:53 AM, Sorin Ristache <sorin@oxygenxml.com <mailto:sorin@oxygenxml.com> <mailto:sorin@oxygenxml.com <mailto:sorin@oxygenxml.com>>> wrote:
Hello,
What do you mean it validates the document? I get the error:
unfinished element "root": "foo" required to finish the element
Did you press the Validate Document toolbar button and Oxygen reported no validation error? Does the file test-1.rng that is located in the same folder as the XML file contain the RELAX NG schema that you posted to the list?
Regards, Sorin
mozer wrote:
In Oxygen 9.1 2007122116
With this RNG Schema
<?xml version="1.0" encoding="UTF-8"?> <grammar xmlns="http://relaxng.org/ns/structure/1.0" xmlns:a=" http://relaxng.org/ns/compatibility/annotations/1.0" datatypeLibrary=" http://www.w3.org/2001/XMLSchema-datatypes"> <start> <element name="root"> <element name="foo"> <text/> </element> </element> </start> </grammar>
It validates this document
<?xml version="1.0" encoding="UTF-8"?> <?oxygen RNGSchema="test-1.rng" type="xml"?> <root> </root>
Where am I wrong ?
Regards,
Xmlizer
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com <mailto:oXygen-user@oxygenxml.com> <mailto:oXygen-user@oxygenxml.com <mailto:oXygen-user@oxygenxml.com>>
http://www.oxygenxml.com/mailman/listinfo/oxygen-user
------------------------------------------------------------------------
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com <mailto:oXygen-user@oxygenxml.com> http://www.oxygenxml.com/mailman/listinfo/oxygen-user
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com <mailto:oXygen-user@oxygenxml.com> http://www.oxygenxml.com/mailman/listinfo/oxygen-user
------------------------------------------------------------------------
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

Dear, I installed 9.2 right now, and I have the exact same behaviour Test.xml is still considered valid Regards, Xmlizer On Mon, Jun 2, 2008 at 4:25 PM, mozer <xmlizer@gmail.com> wrote:
1. Show the Information view (Perspective->Show View->Information) and see what operation is performed when you validate the document. Let us know what is written there.
[15:46:59] - start scanning file:/C:/Users/MoZ/Desktop/test.xml with schema(s): file:/C:/Users/MoZ/Desktop/test.rng [15:46:59] - Found 0 problem(s)
2. Enable the catalog verbosity from Options->Preferences -- XML -- XML Catalog --- Verbosity. Perform the Validate action and see in the Catalogs View if there is a mapping performed by the catalog from your schema to another schema.
SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%209.0/frameworks/dita/catalog.xml
SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%209.0/frameworks/dita/DITA-OT/catalog-dita.xml
SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%209.0/frameworks/docbook/catalog.xml
SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%209.0/frameworks/docbook/5.0/catalog.xml
SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%209.0/frameworks/docbook/4.4/dtd/catalog.xml
SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%209.0/frameworks/docbook/4.3/dtd/catalog.xml
SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%209.0/frameworks/docbook/4.2/dtd/catalog.xml
SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%209.0/frameworks/docbook/5.0/catalog.xml
SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%209.0/frameworks/fo/xsd/catalog.xml
SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%209.0/frameworks/svg/dtd/svgcatalog.xml
SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%209.0/frameworks/tei/xml/teip4/schema/dtd/catalog.xml
SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%209.0/frameworks/tei/xml/teip4/custom/schema/dtd/catalog.xml
SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%209.0/frameworks/tei/xml/tei/schema/catalog.xml
SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%209.0/frameworks/tei/xml/tei/custom/schema/catalog.xml
SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%209.0/frameworks/xhtml/dtd/xhtmlcatalog.xml
SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%209.0/frameworks/xhtml11/dtd/xhtmlcatalog.xml
SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%209.0/frameworks/xhtml11/schema/xhtmlcatalog.xml
SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%209.0/frameworks/xmlspec/catalog.xml
SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%209.0/frameworks/catalog.xml
SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%209.0/frameworks/jsp/xsd/jspcatalog.xml
SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%209.0/frameworks/xml/catalog.xml
SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%209.0/frameworks/xs3p/catalog.xml
SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/catalog.xml
SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/tei/catalog.xml
SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/tei/xml/tei/custom/schema/catalog.xml
SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/tei/xml/tei/schema/catalog.xml
SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/tei/xml/teip4/custom/schema/dtd/catalog.xml
SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/tei/xml/teip4/schema/dtd/catalog.xml
SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/docbook/catalog.xml
SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/docbook/dtd/catalog.xml
SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/docbook/4.3/dtd/catalog.xml
SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/docbook/4.2/dtd/catalog.xml
SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/docbook/5.0/catalog.xml
SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/svg/dtd/svgcatalog.xml
SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/jsp/xsd/jspcatalog.xml
SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/xml/catalog.xml
SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/xhtml/dtd/xhtmlcatalog.xml
SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/xhtml11/dtd/xhtmlcatalog.xml
SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/xhtml11/schema/xhtmlcatalog.xml
SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/fo/xsd/catalog.xml
SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/xs3p/catalog.xml
SystemID: null Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/xmlspec/catalog.xml
SystemID: null Description: Public: null System: file:/C:/Users/MoZ/Desktop/test.rng = file:/C:/Users/MoZ/Desktop/test.rng
3. If there is no specific reason get the latest 9.2 distribution instead of 9.1. The same license key works with 9.2. Will do the deploy of 9.2 but wanted to know about this point in perticular
4. Create a new DocBook 5 document (for instance File->New -- From Templates -- DocBook 5 Article). Make some validation errors in the new document and validate that. Do you get an error? I tried but it seems the problem is only for empty content ; When you have nothing it seems to be allowed whathever the schema is
More interesting, if I take the test.rng and put in in a NVDL, I have the right behaviour
Hope this will help you debug this
Regards,
Xmlizer
On Mon, Jun 2, 2008 at 2:24 PM, George Cristian Bina <george@oxygenxml.com> wrote:
Hi,
This kind of validation surely works in oXygen. Something strange happens in your case and the validation is either not performed (for instance only a wellformed check in done) or the validation is not against the sample schema (for instance an XML catalog can provide a different schema).
Some things to check: 1. Show the Information view (Perspective->Show View->Information) and see what operation is performed when you validate the document. Let us know what is written there.
2. Enable the catalog verbosity from Options->Preferences -- XML -- XML Catalog --- Verbosity. Perform the Validate action and see in the Catalogs View if there is a mapping performed by the catalog from your schema to another schema.
3. If there is no specific reason get the latest 9.2 distribution instead of 9.1. The same license key works with 9.2.
4. Create a new DocBook 5 document (for instance File->New -- From Templates -- DocBook 5 Article). Make some validation errors in the new document and validate that. Do you get an error?
Best Regards, George -- George Cristian Bina <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com
mozer wrote:
Sorin,
They are identical to what I copy/paste just before
But here they are attached
Regards,
Xmlizer
On Mon, Jun 2, 2008 at 12:02 PM, Sorin Ristache <sorin@oxygenxml.com<mailto: sorin@oxygenxml.com>> wrote:
Please post the two files (the schema and the XML file) that are located in the same folder.
Regards, Sorin
mozer wrote:
Sorin,
Yes I do validate and even do empty cache and validate but It says that the document is valid which is stange
Do you have any idea from where do I need to start
The rng and xml are in the same folder
Xmlizer
On Mon, Jun 2, 2008 at 11:53 AM, Sorin Ristache <sorin@oxygenxml.com <mailto:sorin@oxygenxml.com> <mailto:sorin@oxygenxml.com <mailto:sorin@oxygenxml.com>>> wrote:
Hello,
What do you mean it validates the document? I get the error:
unfinished element "root": "foo" required to finish the element
Did you press the Validate Document toolbar button and Oxygen reported no validation error? Does the file test-1.rng that is located in the same folder as the XML file contain the RELAX NG schema that you posted to the list?
Regards, Sorin
mozer wrote:
In Oxygen 9.1 2007122116
With this RNG Schema
<?xml version="1.0" encoding="UTF-8"?> <grammar xmlns="http://relaxng.org/ns/structure/1.0" xmlns:a=" http://relaxng.org/ns/compatibility/annotations/1.0" datatypeLibrary=" http://www.w3.org/2001/XMLSchema-datatypes"> <start> <element name="root"> <element name="foo"> <text/> </element> </element> </start> </grammar>
It validates this document
<?xml version="1.0" encoding="UTF-8"?> <?oxygen RNGSchema="test-1.rng" type="xml"?> <root> </root>
Where am I wrong ?
Regards,
Xmlizer
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com <mailto:oXygen-user@oxygenxml.com> <mailto:oXygen-user@oxygenxml.com <mailto:oXygen-user@oxygenxml.com>>
http://www.oxygenxml.com/mailman/listinfo/oxygen-user
------------------------------------------------------------------------
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com <mailto:oXygen-user@oxygenxml.com> http://www.oxygenxml.com/mailman/listinfo/oxygen-user
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com <mailto:oXygen-user@oxygenxml.com> http://www.oxygenxml.com/mailman/listinfo/oxygen-user
------------------------------------------------------------------------
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

Please send a zip archive with all the Oxygen user preferences as I asked you in a previous message. The user preferences are stored in the folder [user-home-folder]/Application Data/com.oxygenxml (Windows) / [user-home-folder]/.com.oxygenxml (Linux) / [user-home-folder]/Library/Preferences/com.oxygenxml (Mac OS X). Regards, Sorin mozer wrote:
Dear,
I installed 9.2 right now, and I have the exact same behaviour
Test.xml is still considered valid
Regards,
Xmlizer

Sorry, I saw the email, but see that I needed to fight with Vista for that Here it is On Thu, Jun 5, 2008 at 4:05 PM, Sorin Ristache <sorin@oxygenxml.com> wrote:
Please send a zip archive with all the Oxygen user preferences as I asked you in a previous message. The user preferences are stored in the folder [user-home-folder]/Application Data/com.oxygenxml (Windows) / [user-home-folder]/.com.oxygenxml (Linux) / [user-home-folder]/Library/Preferences/com.oxygenxml (Mac OS X).
Regards, Sorin
mozer wrote:
Dear,
I installed 9.2 right now, and I have the exact same behaviour
Test.xml is still considered valid
Regards,
Xmlizer
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

Dear, Did you get the time to take a look at this one ? Regards, Xmlizer On Thu, Jun 5, 2008 at 7:12 PM, mozer <xmlizer@gmail.com> wrote:
Sorry,
I saw the email, but see that I needed to fight with Vista for that
Here it is
On Thu, Jun 5, 2008 at 4:05 PM, Sorin Ristache <sorin@oxygenxml.com> wrote:
Please send a zip archive with all the Oxygen user preferences as I asked you in a previous message. The user preferences are stored in the folder [user-home-folder]/Application Data/com.oxygenxml (Windows) / [user-home-folder]/.com.oxygenxml (Linux) / [user-home-folder]/Library/Preferences/com.oxygenxml (Mac OS X).
Regards, Sorin
mozer wrote:
Dear,
I installed 9.2 right now, and I have the exact same behaviour
Test.xml is still considered valid
Regards,
Xmlizer
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

Hello, There is a problem with the option Check feasibly valid for Relax NG validation (Options -> Preferences -> XML -> XML Parser). The value of the option when Oxygen starts is used for all Relax NG validations. Any change of this option is ignored. You start with the option enabled so your XML document is always reported as valid because it is feasibly valid. We will correct the behavior of the option Check feasibly valid. As workaround for disabling the feasible valid validation in Relax NG you have to restart Oxygen after you disable the option Check feasibly valid (Vérifier la validité in your French preferences) from Options -> Preferences -> XML -> XML Parser. Regards, Sorin mozer wrote:
Dear,
Did you get the time to take a look at this one ?
Regards,
Xmlizer
participants (3)
-
George Cristian Bina
-
mozer
-
Sorin Ristache