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.<br>
<br>[15:46:59] - start scanning file:/C:/Users/MoZ/Desktop/test.xml with schema(s): file:/C:/Users/MoZ/Desktop/test.rng<br>[15:46:59] - Found 0 problem(s)<br><br>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.<br>
<br>SystemID: null<br>Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%209.0/frameworks/dita/catalog.xml<br><br>SystemID: null<br>Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%209.0/frameworks/dita/DITA-OT/catalog-dita.xml<br>
<br>SystemID: null<br>Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%209.0/frameworks/docbook/catalog.xml<br><br>SystemID: null<br>Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%209.0/frameworks/docbook/5.0/catalog.xml<br>
<br>SystemID: null<br>Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%209.0/frameworks/docbook/4.4/dtd/catalog.xml<br><br>SystemID: null<br>Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%209.0/frameworks/docbook/4.3/dtd/catalog.xml<br>
<br>SystemID: null<br>Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%209.0/frameworks/docbook/4.2/dtd/catalog.xml<br><br>SystemID: null<br>Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%209.0/frameworks/docbook/5.0/catalog.xml<br>
<br>SystemID: null<br>Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%209.0/frameworks/fo/xsd/catalog.xml<br><br>SystemID: null<br>Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%209.0/frameworks/svg/dtd/svgcatalog.xml<br>
<br>SystemID: null<br>Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%209.0/frameworks/tei/xml/teip4/schema/dtd/catalog.xml<br><br>SystemID: null<br>Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%209.0/frameworks/tei/xml/teip4/custom/schema/dtd/catalog.xml<br>
<br>SystemID: null<br>Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%209.0/frameworks/tei/xml/tei/schema/catalog.xml<br><br>SystemID: null<br>Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%209.0/frameworks/tei/xml/tei/custom/schema/catalog.xml<br>
<br>SystemID: null<br>Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%209.0/frameworks/xhtml/dtd/xhtmlcatalog.xml<br><br>SystemID: null<br>Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%209.0/frameworks/xhtml11/dtd/xhtmlcatalog.xml<br>
<br>SystemID: null<br>Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%209.0/frameworks/xhtml11/schema/xhtmlcatalog.xml<br><br>SystemID: null<br>Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%209.0/frameworks/xmlspec/catalog.xml<br>
<br>SystemID: null<br>Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%209.0/frameworks/catalog.xml<br><br>SystemID: null<br>Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%209.0/frameworks/jsp/xsd/jspcatalog.xml<br>
<br>SystemID: null<br>Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%209.0/frameworks/xml/catalog.xml<br><br>SystemID: null<br>Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%209.0/frameworks/xs3p/catalog.xml<br>
<br>SystemID: null<br>Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/catalog.xml<br><br>SystemID: null<br>Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/tei/catalog.xml<br>
<br>SystemID: null<br>Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/tei/xml/tei/custom/schema/catalog.xml<br><br>SystemID: null<br>Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/tei/xml/tei/schema/catalog.xml<br>
<br>SystemID: null<br>Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/tei/xml/teip4/custom/schema/dtd/catalog.xml<br><br>SystemID: null<br>Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/tei/xml/teip4/schema/dtd/catalog.xml<br>
<br>SystemID: null<br>Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/docbook/catalog.xml<br><br>SystemID: null<br>Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/docbook/dtd/catalog.xml<br>
<br>SystemID: null<br>Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/docbook/4.3/dtd/catalog.xml<br><br>SystemID: null<br>Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/docbook/4.2/dtd/catalog.xml<br>
<br>SystemID: null<br>Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/docbook/5.0/catalog.xml<br><br>SystemID: null<br>Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/svg/dtd/svgcatalog.xml<br>
<br>SystemID: null<br>Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/jsp/xsd/jspcatalog.xml<br><br>SystemID: null<br>Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/xml/catalog.xml<br>
<br>SystemID: null<br>Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/xhtml/dtd/xhtmlcatalog.xml<br><br>SystemID: null<br>Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/xhtml11/dtd/xhtmlcatalog.xml<br>
<br>SystemID: null<br>Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/xhtml11/schema/xhtmlcatalog.xml<br><br>SystemID: null<br>Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/fo/xsd/catalog.xml<br>
<br>SystemID: null<br>Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/xs3p/catalog.xml<br><br>SystemID: null<br>Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/xmlspec/catalog.xml<br>
<br>SystemID: null<br>Description: Public: null System: file:/C:/Users/MoZ/Desktop/test.rng = file:/C:/Users/MoZ/Desktop/test.rng<br><br>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.<br>
Will do the deploy of 9.2 but wanted to know about this point in perticular<br><br>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?<br>
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 <br><br>More interesting, if I take the test.rng and put in in a NVDL, I have the right behaviour<br>
<br>Hope this will help you debug this<br><br>Regards,<br><br>Xmlizer<br><br><div class="gmail_quote">On Mon, Jun 2, 2008 at 2:24 PM, George Cristian Bina <<a href="mailto:george@oxygenxml.com">george@oxygenxml.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
<br>
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).<br>
<br>
Some things to check:<br>
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.<br>
<br>
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.<br>
<br>
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.<br>
<br>
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?<br>
<br>
Best Regards,<br>
George<br><font color="#888888">
-- <br>
George Cristian Bina<br>
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger<br>
<a href="http://www.oxygenxml.com" target="_blank">http://www.oxygenxml.com</a><br>
<br>
mozer wrote:<br>
</font><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">
Sorin,<br>
<br>
They are identical to what I copy/paste just before<br>
<br>
But here they are attached<br>
<br>
Regards,<br>
<br>
Xmlizer<br>
<br></div><div class="Ih2E3d">
On Mon, Jun 2, 2008 at 12:02 PM, Sorin Ristache <<a href="mailto:sorin@oxygenxml.com" target="_blank">sorin@oxygenxml.com</a> <mailto:<a href="mailto:sorin@oxygenxml.com" target="_blank">sorin@oxygenxml.com</a>>> wrote:<br>
<br>
Please post the two files (the schema and the XML file) that are<br>
located in the same folder.<br>
<br>
<br>
Regards,<br>
Sorin<br>
<br>
<br>
mozer wrote:<br>
<br>
Sorin,<br>
<br>
Yes I do validate and even do empty cache and validate but It<br>
says that the document is valid which is stange<br>
<br>
Do you have any idea from where do I need to start<br>
<br>
The rng and xml are in the same folder<br>
<br>
Xmlizer<br>
<br>
On Mon, Jun 2, 2008 at 11:53 AM, Sorin Ristache<br>
<<a href="mailto:sorin@oxygenxml.com" target="_blank">sorin@oxygenxml.com</a> <mailto:<a href="mailto:sorin@oxygenxml.com" target="_blank">sorin@oxygenxml.com</a>><br></div><div><div></div><div class="Wj3C7c">
<mailto:<a href="mailto:sorin@oxygenxml.com" target="_blank">sorin@oxygenxml.com</a> <mailto:<a href="mailto:sorin@oxygenxml.com" target="_blank">sorin@oxygenxml.com</a>>>> wrote:<br>
<br>
Hello,<br>
<br>
What do you mean it validates the document? I get the error:<br>
<br>
unfinished element "root": "foo" required to finish the element<br>
<br>
Did you press the Validate Document toolbar button and Oxygen<br>
reported no validation error? Does the file test-1.rng that is<br>
located in the same folder as the XML file contain the RELAX NG<br>
schema that you posted to the list?<br>
<br>
<br>
Regards,<br>
Sorin<br>
<br>
<br>
<br>
mozer wrote:<br>
<br>
In Oxygen 9.1 2007122116<br>
<br>
With this RNG Schema<br>
<br>
<?xml version="1.0" encoding="UTF-8"?><br>
<grammar<br>
xmlns="<a href="http://relaxng.org/ns/structure/1.0" target="_blank">http://relaxng.org/ns/structure/1.0</a>"<br>
xmlns:a="<a href="http://relaxng.org/ns/compatibility/annotations/1.0" target="_blank">http://relaxng.org/ns/compatibility/annotations/1.0</a>"<br>
datatypeLibrary="<a href="http://www.w3.org/2001/XMLSchema-datatypes" target="_blank">http://www.w3.org/2001/XMLSchema-datatypes</a>"><br>
<start><br>
<element name="root"><br>
<element name="foo"><br>
<text/><br>
</element><br>
</element><br>
</start><br>
</grammar><br>
<br>
<br>
It validates this document<br>
<br>
<?xml version="1.0" encoding="UTF-8"?><br>
<?oxygen RNGSchema="test-1.rng" type="xml"?><br>
<root><br>
</root><br>
<br>
Where am I wrong ?<br>
<br>
Regards,<br>
<br>
Xmlizer<br>
<br>
_______________________________________________<br>
oXygen-user mailing list<br>
<a href="mailto:oXygen-user@oxygenxml.com" target="_blank">oXygen-user@oxygenxml.com</a> <mailto:<a href="mailto:oXygen-user@oxygenxml.com" target="_blank">oXygen-user@oxygenxml.com</a>><br>
<mailto:<a href="mailto:oXygen-user@oxygenxml.com" target="_blank">oXygen-user@oxygenxml.com</a><br>
<mailto:<a href="mailto:oXygen-user@oxygenxml.com" target="_blank">oXygen-user@oxygenxml.com</a>>><br>
<br>
<a href="http://www.oxygenxml.com/mailman/listinfo/oxygen-user" target="_blank">http://www.oxygenxml.com/mailman/listinfo/oxygen-user</a><br>
<br>
<br>
<br>
------------------------------------------------------------------------<br>
<br>
<br>
_______________________________________________<br>
oXygen-user mailing list<br>
<a href="mailto:oXygen-user@oxygenxml.com" target="_blank">oXygen-user@oxygenxml.com</a> <mailto:<a href="mailto:oXygen-user@oxygenxml.com" target="_blank">oXygen-user@oxygenxml.com</a>><br>
<a href="http://www.oxygenxml.com/mailman/listinfo/oxygen-user" target="_blank">http://www.oxygenxml.com/mailman/listinfo/oxygen-user</a><br>
<br>
_______________________________________________<br>
oXygen-user mailing list<br>
<a href="mailto:oXygen-user@oxygenxml.com" target="_blank">oXygen-user@oxygenxml.com</a> <mailto:<a href="mailto:oXygen-user@oxygenxml.com" target="_blank">oXygen-user@oxygenxml.com</a>><br>
<a href="http://www.oxygenxml.com/mailman/listinfo/oxygen-user" target="_blank">http://www.oxygenxml.com/mailman/listinfo/oxygen-user</a><br>
<br>
<br>
<br>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
oXygen-user mailing list<br>
<a href="mailto:oXygen-user@oxygenxml.com" target="_blank">oXygen-user@oxygenxml.com</a><br>
<a href="http://www.oxygenxml.com/mailman/listinfo/oxygen-user" target="_blank">http://www.oxygenxml.com/mailman/listinfo/oxygen-user</a><br>
</div></div></blockquote>
</blockquote></div><br>