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-&gt;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>
&nbsp;&nbsp;
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-&gt;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 &lt;<a href="mailto:george@oxygenxml.com">george@oxygenxml.com</a>&gt; 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-&gt;Show View-&gt;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-&gt;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-&gt;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>
&lt;oXygen/&gt; 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 &lt;<a href="mailto:sorin@oxygenxml.com" target="_blank">sorin@oxygenxml.com</a> &lt;mailto:<a href="mailto:sorin@oxygenxml.com" target="_blank">sorin@oxygenxml.com</a>&gt;&gt; wrote:<br>

<br>
 &nbsp; &nbsp;Please post the two files (the schema and the XML file) that are<br>
 &nbsp; &nbsp;located &nbsp;in the same folder.<br>
<br>
<br>
 &nbsp; &nbsp;Regards,<br>
 &nbsp; &nbsp;Sorin<br>
<br>
<br>
 &nbsp; &nbsp;mozer wrote:<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Sorin,<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Yes I do validate and even do empty cache and validate but It<br>
 &nbsp; &nbsp; &nbsp; &nbsp;says that the document is valid which is stange<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Do you have any idea from where do I need to start<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;The rng and xml are in the same folder<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Xmlizer<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;On Mon, Jun 2, 2008 at 11:53 AM, Sorin Ristache<br>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;<a href="mailto:sorin@oxygenxml.com" target="_blank">sorin@oxygenxml.com</a> &lt;mailto:<a href="mailto:sorin@oxygenxml.com" target="_blank">sorin@oxygenxml.com</a>&gt;<br></div><div><div></div><div class="Wj3C7c">

 &nbsp; &nbsp; &nbsp; &nbsp;&lt;mailto:<a href="mailto:sorin@oxygenxml.com" target="_blank">sorin@oxygenxml.com</a> &lt;mailto:<a href="mailto:sorin@oxygenxml.com" target="_blank">sorin@oxygenxml.com</a>&gt;&gt;&gt; wrote:<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Hello,<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; What do you mean it validates the document? I get the error:<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; unfinished element &quot;root&quot;: &quot;foo&quot; required to finish the element<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Did you press the Validate Document toolbar button and Oxygen<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; reported no validation error? Does the file test-1.rng that is<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; located in the same folder as the XML file contain the RELAX NG<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; schema that you posted to the list?<br>
<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Regards,<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Sorin<br>
<br>
<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mozer wrote:<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; In Oxygen 9.1 2007122116<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; With this RNG Schema<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;grammar<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;xmlns=&quot;<a href="http://relaxng.org/ns/structure/1.0" target="_blank">http://relaxng.org/ns/structure/1.0</a>&quot;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &nbsp; &nbsp; &nbsp; &nbsp;xmlns:a=&quot;<a href="http://relaxng.org/ns/compatibility/annotations/1.0" target="_blank">http://relaxng.org/ns/compatibility/annotations/1.0</a>&quot;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &nbsp; &nbsp; &nbsp; &nbsp;datatypeLibrary=&quot;<a href="http://www.w3.org/2001/XMLSchema-datatypes" target="_blank">http://www.w3.org/2001/XMLSchema-datatypes</a>&quot;&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;start&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;element name=&quot;root&quot;&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;element name=&quot;foo&quot;&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;text/&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/element&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/element&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/start&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/grammar&gt;<br>
<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; It validates this document<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;?oxygen RNGSchema=&quot;test-1.rng&quot; type=&quot;xml&quot;?&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;root&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/root&gt;<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Where am I wrong ?<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Regards,<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Xmlizer<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _______________________________________________<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oXygen-user mailing list<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="mailto:oXygen-user@oxygenxml.com" target="_blank">oXygen-user@oxygenxml.com</a> &lt;mailto:<a href="mailto:oXygen-user@oxygenxml.com" target="_blank">oXygen-user@oxygenxml.com</a>&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;mailto:<a href="mailto:oXygen-user@oxygenxml.com" target="_blank">oXygen-user@oxygenxml.com</a><br>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;mailto:<a href="mailto:oXygen-user@oxygenxml.com" target="_blank">oXygen-user@oxygenxml.com</a>&gt;&gt;<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <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>
 &nbsp; &nbsp; &nbsp; &nbsp;------------------------------------------------------------------------<br>
<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;_______________________________________________<br>
 &nbsp; &nbsp; &nbsp; &nbsp;oXygen-user mailing list<br>
 &nbsp; &nbsp; &nbsp; &nbsp;<a href="mailto:oXygen-user@oxygenxml.com" target="_blank">oXygen-user@oxygenxml.com</a> &lt;mailto:<a href="mailto:oXygen-user@oxygenxml.com" target="_blank">oXygen-user@oxygenxml.com</a>&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;<a href="http://www.oxygenxml.com/mailman/listinfo/oxygen-user" target="_blank">http://www.oxygenxml.com/mailman/listinfo/oxygen-user</a><br>
<br>
 &nbsp; &nbsp;_______________________________________________<br>
 &nbsp; &nbsp;oXygen-user mailing list<br>
 &nbsp; &nbsp;<a href="mailto:oXygen-user@oxygenxml.com" target="_blank">oXygen-user@oxygenxml.com</a> &lt;mailto:<a href="mailto:oXygen-user@oxygenxml.com" target="_blank">oXygen-user@oxygenxml.com</a>&gt;<br>
 &nbsp; &nbsp;<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>