[oXygen-user] Strange behaviour with OxygenXML 9.1 and RNG schema
George Cristian Bina
Mon Jun 2 07:24:49 CDT 2008
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 <
> <mailto:>> 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
> < <mailto:>
> <mailto: <mailto:>>> 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
> <mailto:>
> <mailto:
> <mailto:>>
>
> http://www.oxygenxml.com/mailman/listinfo/oxygen-user
>
>
>
> ------------------------------------------------------------------------
>
>
> _______________________________________________
> oXygen-user mailing list
> <mailto:>
> http://www.oxygenxml.com/mailman/listinfo/oxygen-user
>
> _______________________________________________
> oXygen-user mailing list
> <mailto:>
> http://www.oxygenxml.com/mailman/listinfo/oxygen-user
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> oXygen-user mailing list
>
> http://www.oxygenxml.com/mailman/listinfo/oxygen-user
More information about the oXygen-user
mailing list