[ 
http://jira.codehaus.org/browse/MSITE-257?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_108602
 ] 

Lukas Theussl commented on MSITE-257:
-------------------------------------

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:
 {code:xml} 
      <script type="text/javascript">
        <![CDATA[alert("Hello!");]]>
      </script>
 {code} 
[1] http://www.mail-archive.com/[EMAIL PROTECTED]/msg11561.html

> Double quote character rendered as entity, which breaks JavaScript
> ------------------------------------------------------------------
>
>                 Key: MSITE-257
>                 URL: http://jira.codehaus.org/browse/MSITE-257
>             Project: Maven 2.x Site Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0-beta-5
>         Environment: Maven 2.0.7, Maven Site Plugin 2.0-beta-5
>            Reporter: Wendy Smoak
>            Priority: Trivial
>         Attachments: mysite.zip
>
>
> When a simple script is included in xdoc source, the double characters get 
> rendered as the html entity &quot; and the script does not execute.
> For example, this in xdoc
>    alert("Hello!");
> produces this in the rendered html:
>    alert(&quot;Hello!&quot;);
> 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.)

-- 
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
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to