Schematron validation by using multiple documents

Here should go questions about transforming XML with XSLT and FOP.
xephon
Posts: 140
Joined: Mon Nov 24, 2014 1:49 pm
Location: Greven/Germany

Schematron validation by using multiple documents

Post by xephon »

Hi,

is it possible in a DITA environment to use data from other topics when validating a topic?

map
+- topic-a
+- topic-b

When validating topic-b, I'd like to look in topic-a if a certain element with a certain value exists, if yes, do something.

If this does not work, could you give me a hint how you would implement a validation like this?

Thanks a lot,
stefan-jung.org – Your DITA/DITA-OT XML consultant
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

Re: Schematron validation by using multiple documents

Post by Radu »

Hi Stefan,

Maybe you can take a look at our OXYGEN_INSTALL_DIR/frameworks/dita/resources/dita-1.2-for-xslt2-links-checker.sch Schematron file which uses the document() function to load target documents and search for IDs inside them.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
xephon
Posts: 140
Joined: Mon Nov 24, 2014 1:49 pm
Location: Greven/Germany

Re: Schematron validation by using multiple documents

Post by xephon »

Sure, I've forgotten that function. This has helped. Thank you, Radu.
stefan-jung.org – Your DITA/DITA-OT XML consultant
Post Reply