The following comment has been added to this issue:

     Author: Felipe Leme
    Created: Wed, 4 Aug 2004 12:22 AM
       Body:
It doesn't work with included XML (at least I couldn't get it to :-), as shown in the 
test case. It work with  code like this:

<[CDATA[
<bla-bla-bla>
</bla-bla-bla>
]]>

In fact, that's what we were using in the document that originated this patch. But 
that contenct came from a dinamic XML, so we rather included that file than copy and 
paste its content again everytime it changes.

But if you try:
<[CDATA[
&myIncludedXml;
]]>

the result would be only:

&myIncludedXml;




---------------------------------------------------------------------
View this comment:
  http://jira.codehaus.org/browse/MPXDOC-118?page=comments#action_22706

---------------------------------------------------------------------
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: Wed, 4 Aug 2004 12:22 AM

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to