Page 1 of 1

Schematron validation by using multiple documents

Posted: Thu Jul 09, 2020 11:36 am
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,

Re: Schematron validation by using multiple documents

Posted: Thu Jul 09, 2020 11:48 am
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

Re: Schematron validation by using multiple documents

Posted: Thu Jul 09, 2020 7:06 pm
by xephon
Sure, I've forgotten that function. This has helped. Thank you, Radu.