You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by ji...@codehaus.org on 2004/08/04 05:39:15 UTC

[jira] Updated: (MPXDOC-118) [PATCH] Allow xdoc templates to escape XML

The following issue has been updated:

    Updater: Felipe Leme (mailto:jira@felipeal.net)
       Date: Tue, 3 Aug 2004 11:39 PM
    Comment:
Proposed patch.
    Changes:
             Attachment changed to mpxdoc-118.patch
    ---------------------------------------------------------------------
For a full history of the issue, see:

  http://jira.codehaus.org/browse/MPXDOC-118?page=history

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/browse/MPXDOC-118

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MPXDOC-118
    Summary: [PATCH] Allow xdoc templates to escape XML
       Type: Improvement

     Status: Open
   Priority: Trivial

 Original Estimate: 10 minutes
 Time Spent: Unknown
  Remaining: 10 minutes

    Project: maven-xdoc-plugin
   Versions:
             1.9

   Assignee: Jason van Zyl
   Reporter: Felipe Leme

    Created: Tue, 3 Aug 2004 11:31 PM
    Updated: Tue, 3 Aug 2004 11:39 PM

Description:
It would be very useful if site.jsl offered a tag we could use to escape XML text. This is particularly useful when you need to include the contents of another XML file into your xdoc, as described below:

1.The way it is now, the code included inside the <source> tags won't be escaped and hence won't be rendered (as the browser will ignore the unknown XML tags)
<source>
&xmlBeingIncluded;
</source>

2.With the patch I'm including, we would use:
<source>
<escapeXml>
&xmlBeingIncluded;
</escapeXml>
</source>

Besides the patch, I'm providing a simple test case ilustrating the issue.




in the test case provided with the patch.



---------------------------------------------------------------------
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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org