Schematron validation by using multiple documents

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

Schematron validation by using multiple documents

Post by xephon » Thu Jul 09, 2020 11:36 am

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,
Join the DOCTALES DITA development team :arrow: https://doctales.atlassian.net/wiki

Radu
Posts: 7028
Joined: Fri Jul 09, 2004 5:18 pm

Re: Schematron validation by using multiple documents

Post by Radu » Thu Jul 09, 2020 11:48 am

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: 100
Joined: Mon Nov 24, 2014 1:49 pm
Location: Münster/Germany

Re: Schematron validation by using multiple documents

Post by xephon » Thu Jul 09, 2020 7:06 pm

Sure, I've forgotten that function. This has helped. Thank you, Radu.
Join the DOCTALES DITA development team :arrow: https://doctales.atlassian.net/wiki

Post Reply