Message:
The following issue has been closed.
Resolver: Brett Porter
Date: Wed, 7 Apr 2004 9:28 PM
I think this is unavoidable. You should wrap the description in the POM with a
<![CDATA[...]]> tag. Tested and confirmed this works.
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/secure/ViewIssue.jspa?key=MPXDOC-66
Here is an overview of the issue:
---------------------------------------------------------------------
Key: MPXDOC-66
Summary: XML entities in project description cause xdoc to complain
Type: Bug
Status: Closed
Priority: Minor
Resolution: WON'T FIX
Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown
Project: maven-xdoc-plugin
Assignee: Brett Porter
Reporter: Daniel Rabe
Created: Mon, 6 Oct 2003 12:52 PM
Updated: Wed, 7 Apr 2004 9:28 PM
Environment: Windows XP
Description:
In my project.xml, I have a description that includes a URL; the URL contains
ampersands, so I encode the & as &, like this:
http://mysite.com/x.jsp?a=1&b=2.
By the time this data makes it to target/generated-xdocs/navigation.xml, it's been
unescaped, so the data in there is simply: http://mysite.com/x.jsp?a=1&b=2. Of course,
this is no longer valid XML, so the xdoc plugin fails:
BUILD FAILED
File...... file:/d:/maven/plugins/maven-xdoc-plugin-1.4/
Element... x:parse
Line...... 328
Column.... 43
Error on line 12 of document file:/D:/maven/target/generated-xdocs/index.xml : The
reference to entity "nodeId" must end
with the ';' delimiter. Nested exception: The reference to entity "nodeId" must end
with the ';' delimiter.
I tried double-escaping, so that the original has &amp; for the original
ampersand. The plugin runs to completion, but the resulting HTML file has spaces
before and after the ampersand.
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]