Skip to content

Validating DITA input without generating output? #3916

Answered by chrispy-snps
chrispy-snps asked this question in Q&A
Discussion options

You must be logged in to vote

I ended up writing a Perl script that uses jing (the RelaxNG validation engine) to do this. Here's a link to the script:

ditaot_validate.pl

Because jing performs only parsing and validation, it is very fast even for large numbers of files:

Note that ditaot_validate.pl performs validation of files and directories of files; it does not follow map hierarchy or validate just the files used by a map. For that, the plugin approach described earlier would be better.

Another limitation is that jing crashes when validating DITA grammars that include the svg-d domain. I am not sure how to resolve this yet.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by chrispy-snps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants