I want to validate some conditions in the declaration part of the XML using XSLT.
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD with MathML3 v1.1d1 20130915//EN" "JATS-archivearticle1-mathml3.dtd">
and
<?xml version="1.0" encoding="UTF-8"?>
The validations are
- To ensure "<!DOCTYPE" and "<?xml " declaration are exactly present or not
- To ensure DTD version "JATS-archivearticle1-mathml3.dtd" mentioned in it
Is there any code in XSLT?