- Add support for RELAX NG validation since it is the normative DB 5.0
schema. The DTD validation still does a good job so there is no need to install Java; RNG validation is optional
This commit is contained in:
parent
6fa732ff1a
commit
a4722b0475
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/projects/db5/; revision=42133
3 changed files with 71 additions and 0 deletions
|
@ -69,6 +69,8 @@ HTML2PDBOPTS?= -y -d0 -Idef ${HTML2PDBFLAGS}
|
|||
HTML2TXT?= ${PREFIX}/bin/w3m
|
||||
HTML2TXTOPTS?= -dump ${HTML2TXTFLAGS}
|
||||
|
||||
JING?= ${PREFIX}/bin/jing
|
||||
|
||||
XMLLINT?= ${PREFIX}/bin/xmllint
|
||||
XSLTPROC?= ${PREFIX}/bin/xsltproc
|
||||
|
||||
|
|
|
@ -56,6 +56,8 @@
|
|||
|
||||
MASTERDOC?= ${.CURDIR}/${DOC}.xml
|
||||
|
||||
DB5RNC?= ${DOC_PREFIX}/share/xml/freebsd50.rnc
|
||||
|
||||
XSLPROF?= /usr/local/share/xsl/docbook-ns/profiling/profile.xsl
|
||||
XSLXHTML?= ${DOC_PREFIX}/${LANGCODE}/share/xsl/freebsd-xhtml.xsl
|
||||
XSLXHTMLCHUNK?= ${DOC_PREFIX}/${LANGCODE}/share/xsl/freebsd-xhtml-chunk.xsl
|
||||
|
@ -387,6 +389,10 @@ lint validate: ${SRCS} ${schxslts}
|
|||
false; \
|
||||
fi )
|
||||
.endfor
|
||||
.endif
|
||||
.if exists(${JING})
|
||||
@${ECHO} "==> Validating with RELAX NG"
|
||||
@${JING} -c ${DB5RNC} ${DOC}.parsed.xml
|
||||
.endif
|
||||
@${RM} -rf ${CLEANFILES} ${CLEANDIRS} ${DOC}.parsed.xml
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue