The following comment has been added to this issue:
Author: Jerome Lacoste
Created: Fri, 4 Jun 2004 6:11 PM
Body:
I would like to give a go at this issue, if someone can give some pointers as to where
to look for.
I had a look at the code for the xdoc plugin, but apart from the site.jsl file,
there's not much. The code in the jsl file handling the links doesn't do much neither
appart something like
<x:set var="_link" select="string(@href)"/>
I tried to programmatically use the DOM to access a modified navigation.xml,
introducing a link with an ampersand in it, and the result was ok. I did something
like:
added in the navigation.xml
<item name="artifact"
href="http://maven.apache.org/files.php?id=12345&name=foobar"/>
in the unit test
DefaultElement node = nb.getFirstNodeByName("artifact");
Document d = node.getDocument();
System.out.println("href " + node.attribute("href").getValue());
The printed value is correct (i.e.
"http://maven.apache.org/files.php?id=12345&name=foobar")
Could the bug be in one dependencies?
---------------------------------------------------------------------
View this comment:
http://jira.codehaus.org/browse/MPXDOC-92?page=comments#action_20359
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/browse/MPXDOC-92
Here is an overview of the issue:
---------------------------------------------------------------------
Key: MPXDOC-92
Summary: Processing of ampersand
Type: Bug
Status: In Progress
Priority: Blocker
Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown
Project: maven-xdoc-plugin
Assignee: Brett Porter
Reporter: Andy Jefferson
Created: Mon, 29 Mar 2004 7:56 AM
Updated: Fri, 4 Jun 2004 6:11 PM
Environment: Maven 1.0-rc2
Description:
This worked in Maven-1.0-rc1 and now doesn't. I have an xdoc document that has lines
like
"http://sourceforge.net/project/showfiles.php?group_id=86139&package_id=95353"
That is, it includes an ampersand in the URL (&), and xdoc previously processed
this by removing the & and putting & in the end-result page.
I run this in rc2 (with whichever version of the xdoc plugin) and I now don't get the
ampersand processed like this ... it just leaves it all in there, and hence when I
look at the resultant HTML, a browser just ignores the trailing &.... part !!!
Fine, I thought, I'll just put a URL as normal. Well if I do that, xdoc now just
aborts in the processing step with
Error on line 13 of document file:/home/andy/work/JPOX/xdocs/download.xml :
The reference to entity "package_id" must end with the ';' delimiter. Nested
exception: The reference to entity "package_id" must end with the ';'
delimiter.
This is pretty basic stuff and was working. It has no known workaround (none that I
know anyway). Any chance of restoring the previous (correct) xdoc behaviour ?
---------------------------------------------------------------------
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]