From 0f800ed999352c290a430f01696fe5d3ea12a838 Mon Sep 17 00:00:00 2001
From: ltheussl
Date: Sun, 2 Oct 2005 23:24:30 +0000
Subject: [PATCH] Allow validation of arbitrary xml files
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@293181 13f79535-47bb-0310-9956-ffa450edef68
---
xdoc/plugin.jelly | 17 ++++++++++++++---
xdoc/project.properties | 2 +-
xdoc/xdocs/reference/escapeXml.dtd | 3 +++
xdoc/xdocs/reference/xdocs.xml | 9 ++++++---
4 files changed, 24 insertions(+), 7 deletions(-)
create mode 100644 xdoc/xdocs/reference/escapeXml.dtd
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.