diff --git a/xdoc/plugin.jelly b/xdoc/plugin.jelly index 3b93b540..7a43697a 100644 --- a/xdoc/plugin.jelly +++ b/xdoc/plugin.jelly @@ -817,9 +817,20 @@ - + + + + + + Using ${dtdFile} for validation + + + + Using ${xsdFile} for validation + + diff --git a/xdoc/project.properties b/xdoc/project.properties index e6baacbc..655e6b6d 100644 --- a/xdoc/project.properties +++ b/xdoc/project.properties @@ -19,4 +19,4 @@ # ------------------------------------------------------------------- maven.junit.fork=yes maven.compile.encoding=UTF-8 -maven.xdoc.validate.exclude=changes.xml,reference/escapeXml.xml +maven.xdoc.validate.exclude=changes.xml diff --git a/xdoc/xdocs/reference/escapeXml.dtd b/xdoc/xdocs/reference/escapeXml.dtd new file mode 100644 index 00000000..cce11151 --- /dev/null +++ b/xdoc/xdocs/reference/escapeXml.dtd @@ -0,0 +1,3 @@ + + + diff --git a/xdoc/xdocs/reference/xdocs.xml b/xdoc/xdocs/reference/xdocs.xml index 2eb4baac..da5596ed 100644 --- a/xdoc/xdocs/reference/xdocs.xml +++ b/xdoc/xdocs/reference/xdocs.xml @@ -109,9 +109,12 @@

&escapeXmlExample;

- Note that currently it is not possible to validate - arbitrary xml files with the xdoc:validate goal. - You can use the maven.xdoc.validate.exclude + Note that it is possible to validate the included + xml file with the xdoc:validate goal even if it is not + a valid xdoc document (like in the example above). You just have to + provide a custom .dtd or .xsd schema file + with the same base name in the same directory. Otherwise, + you should use the maven.xdoc.validate.exclude property to exclude specific files from validation.