From 7b4fdb65671cfe33b06ac99f6e35260fb3a2fb37 Mon Sep 17 00:00:00 2001 From: ltheussl Date: Thu, 4 May 2006 20:01:02 +0000 Subject: [PATCH] PR: MPXDOC-17 Revert last commit as it was breaking lots of other stuff. Implemented and documented workaround solution using tags. git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@399845 13f79535-47bb-0310-9956-ffa450edef68 --- xdoc/src/plugin-resources/site.jsl | 9 +++--- .../test01/xdocs-replacement/test.xml | 24 +++++++------- xdoc/xdocs/reference/xdocs.xml | 31 +++++++++++++++++++ 3 files changed, 48 insertions(+), 16 deletions(-) diff --git a/xdoc/src/plugin-resources/site.jsl b/xdoc/src/plugin-resources/site.jsl index 61a49c80..e7f96104 100644 --- a/xdoc/src/plugin-resources/site.jsl +++ b/xdoc/src/plugin-resources/site.jsl @@ -976,10 +976,11 @@ - - - - + + + + + diff --git a/xdoc/src/plugin-test/test01/xdocs-replacement/test.xml b/xdoc/src/plugin-test/test01/xdocs-replacement/test.xml index f0b81aea..f3fbe029 100644 --- a/xdoc/src/plugin-test/test01/xdocs-replacement/test.xml +++ b/xdoc/src/plugin-test/test01/xdocs-replacement/test.xml @@ -40,44 +40,44 @@ _module <module> - &_module; + &_module; module - module - &module; + <module> + &module; apache.a Apache - &apache.a; + &apache.a; apache.b <Apache> - &apache.b; + &apache.b; apache.c [Apache] - &apache.c; + &apache.c; apache.d - <a href="http://www.apache.org/">&apache.b;</a> + <a href="http://www.apache.org/"><Apache></a> - &apache.d; + &apache.d; apache.e - &apache.b; - &apache.e; + <Apache> + &apache.e; apache.f - &apache.a; - &apache.f; + Apache + &apache.f; diff --git a/xdoc/xdocs/reference/xdocs.xml b/xdoc/xdocs/reference/xdocs.xml index ad3a6b82..21369f4b 100644 --- a/xdoc/xdocs/reference/xdocs.xml +++ b/xdoc/xdocs/reference/xdocs.xml @@ -134,6 +134,37 @@

+ +

+ Due to a bug in Jelly, it is not possible to use custom entities directly in xdoc documents. + A workaround has been implemented such that you need to embed your entities + in <entity> tags. First you should declare the resource file + for your entities: +

+ + + %my-entities; +]> + +...]]> +

+ where the file entities.ent contains, eg: +

+ ]]> +

+ which can then be used in your xdoc like: +

+ + This information only applies to version &version;. +

]]> +

+ Note that xdoc files using entities in this way + cannot be validated with the xdoc:validate goal + (see below). +

+
+