I have edited the OpenOffice v 1.2 schema in order to obtain a RelaxNG schema , 
which validates when invoked within XMLEditor 7, 
But any instances identified as calling for  ditto  schema let XMLEditor 7 
idle, with a status of :
« retrait des caractères inutiles […] » 
whereas they open as XML valid, recognized XXE config (but rebuke the semantic 
validation and invocation of the model)  in  XXE 4.x
My xxe config is set to send  control to the relevant relaxng schema and asks 
for perserveSpace for high level elements of the document in OpenOffice NS…

I’m out of ideas about what I’m doing wrong, at the moment…
So, if you can help, I’d be — once again — indebted to you!

Best regards,

A. Pierrot

> Le 1 mars 2017 à 19:55, Hussein Shafie <huss...@xmlmind.com> a écrit :
> 
> On 03/01/2017 06:20 PM, a.pier...@wanadoo.fr wrote:
>> 
>> I’m working with OpenOffice document from odt files, conforming to the
>> RelaxNG schema OpenDocument-v1.2-os-schema.rng
>> http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-schema.rng
>> 
>> The schema seemingly doesn’t validate in XXE 7 against jing, (without
>> the parameter -i — in order to ignore ambiguities in the def of
>> IDs/IDREF(S)
> 
> In my understanding, "jing -i" just disables the checking of ID/IDREF/IDREFS 
> *cross-references* in instance documents:
> 
> Excerpts from http://www.thaiopensource.com/relaxng/jing.html:
> ---
> -i
>    Disables checking of ID/IDREF/IDREFS. By default, Jing enforces the 
> constraints imposed by RELAX NG DTD Compatibility with respect to 
> ID/IDREF/IDREFS.
> ---
> 
> The errors below are about the OpenDocument-v1.2-os-schema.rng *schema* 
> itself not being compatible with "RELAX NG DTD Compatibility".
> 
> 
> 
> 
>> which yield this type of messages:
>>> 
>>>  *           conflicting ID-types for attribute "targetElement" from
>>>    namespace
>>>    "urn:oasis:names:tc:opendocument:xmlns:smil-compatible:1.0" of
>>>    element "command" from namespace
>>>    "urn:oasis:names:tc:opendocument:xmlns:animation:1.0"
>>> 
>>>  *           a "data" or "value" pattern with non-null ID-type must
>>>    occur as the child of an "attribute" pattern
>> Would you know of a workaround, modifying the .rng — or a do I miss a
>> parameter in my preferences within XXE in order to let files be loaded
>> and parsed?
>> 
> 
> There is no option to suppress this kind of validation for a RELAX NG schema. 
> You must modify the RNG schema to get rid of them.
> 
> Note that at first sight, the error messages reported by XXE *seem* to be 
> correct. For example, "RELAX NG DTD Compatibility" says:
> 
> Excerpts from http://relaxng.org/compatibility-20011203.html#id
> ---
> A RELAX NG schema is compatible with this feature if and only if, after 
> schema simplification, for each data or value element that specifies a 
> datatype associated with a non-null ID-type, all of the following hold:
> 
>    *  its parent is an attribute element
>    ...
> ---
> 
> If you think that the error messages reported by XXE are incorrect, that is, 
> are false errors, please be kind enough to file a formal bug report.
> 
> 
> 
>> 
>> PS: the same config/sample/template files seem to work smoothly in
>> previous installs of XXE…
>> 
> 
> May be in a version which is very, very old, that is, several years old like 
> v3. But once again, if you are sure that this is a regression, please be kind 
> enough to file a formal bug report.
> 
> 
> --
> XMLmind XML Editor Support List
> xmleditor-support@xmlmind.com
> http://www.xmlmind.com/mailman/listinfo/xmleditor-support


--
XMLmind XML Editor Support List
xmleditor-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to