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 @@
_module
- <module>&_module;
+
module
- module
- &module;
+
+ <module>
apache.a
Apache
- &apache.a;
+
apache.b
<Apache>
- &apache.b;
+
apache.c
[Apache]
- &apache.c;
+
apache.d
- <a href="http://www.apache.org/">&apache.b;</a>
+ <a href="http://www.apache.org/"><Apache></a>
- &apache.d;
+
apache.e
- &apache.b;
- &apache.e;
+ <Apache>
+
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 @@
apache.f
- &apache.a;
- &apache.f;
+ Apache
+
+ 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:
+
+ where the file entities.ent contains, eg:
+
+ which can then be used in your xdoc like: +
+
+ Note that xdoc files using entities in this way
+ cannot be validated with the xdoc:validate goal
+ (see below).
+