Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Trivial
-
Resolution: Fixed
-
Affects Version/s: 2.0-beta-5
-
Fix Version/s: 2.1
-
Component/s: None
-
Labels:None
-
Environment:Maven 2.0.7, Maven Site Plugin 2.0-beta-5
Description
When a simple script is included in xdoc source, the double characters get rendered as the html entity " and the script does not execute.
For example, this in xdoc
alert("Hello!");
produces this in the rendered html:
alert("Hello!");
Sample project attached. Execute 'mvn site:run', visit http://localhost:8080/index.html, and view the source of the page.
(Brian Fox discovered this while adding the Google search box to the Maven site.)
That's excactly the problem that made me get involved in maven development [1]
We never solved it in m1, so I just gave it a whirl this afternoon and got it working. However, Doxia's xml parser needs to support CDATA sections and comments, which it currently doesn't, so I'm afraid you'll have to wait for the beta-1 release of doxia. If that's done, you will be able to do what you want with the following snippet:
[1] http://www.mail-archive.com/users@maven.apache.org/msg11561.html