XSD-DITA validation...

Post here questions and problems related to editing and publishing DITA content.
Patrik
Posts: 280
Joined: Thu Nov 28, 2013 9:32 am
Location: Hamburg/Germany
Contact:

XSD-DITA validation...

Post by Patrik »

Hi,

I have an xsd-based DITA map and a schematron file with rules evaluating the class attribute. So, obviously, the default attributes need to be expanded before validation.

To validate a single topic I have to enable the option "Use Saxon EE (schema aware) ...". Otherwise my rules don't hit anything.

When validating the whole DITA map (using the "Validate and Check for Completeness" from the Map Manager) using the same schematron file and with the same options I get errors for invalid content within my topics - probably because Saxon uses the map schema instead of the schema assigned to the topic.

When validating the map after disabling the option "Use Saxon EE (schema aware) ..." it works fine - probably in this case the attribute defaults are already expanded by the xml reader.

Is there any way to do both validations without having to change the options?

I have this problem with oXygen 18.1. (Didn't install 19.0, yet)

BTW: Expanding the attribute defaults by the xml reader for single file validation would possibly be a good solution. This might also solve another issue that the automatic validation sometimes reports schema errors after switching files due to using thw wrong schema from chache.

Thanks and regards,
Patrik
Radu
Posts: 9445
Joined: Fri Jul 09, 2004 5:18 pm

Re: XSD-DITA validation...

Post by Radu »

Hi Patrik,

Can you attach to an email (support@oxygenxml.com) some samples to work with? Meaning DITA Map + topic, DITA XML Schemas (if you changed them from the defaults), small Schematron...

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Radu
Posts: 9445
Joined: Fri Jul 09, 2004 5:18 pm

Re: XSD-DITA validation...

Post by Radu »

Hi,

Just to update this forum thread, when using a Schematron schema in the "Validate and check for completeness" action with the checkbox Use Saxon EE for xslt2/xslt3 query language binding checked in the Oxygen Preferences, if the DITA maps and topics referred to XML Schemas, the first encountered XML Schema was cached in the Schematron error reporter and it triggered invalid errors to be reported for the other topics referenced in the DITA Map.
This will probably be fixed in Oxygen 19.1 (Autumn 2017).

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Radu
Posts: 9445
Joined: Fri Jul 09, 2004 5:18 pm

Re: XSD-DITA validation...

Post by Radu »

Hi,

As reported in my previous post, we released Oxygen 19.1 and it should contain a fix for this problem.

Regards,
Raadu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply