Got a little further:
  changing the xdoc plugin so that the doc:jslFile tag
  takes an escapeText argument, and setting that to "false"
  e.g:

      <j:file
        name="${output}"
        encoding="${encoding}"
        omitXmlDeclaration="${omitXmlDeclaration}"
        outputMode="${outputMode}"
        prettyPrint="${prettyPrint}"
        escapeText="${escapeText}">
        <j:include uri="${stylesheetURI.toString()}"/>
      </j:file>

  fixes the CDATA sections, but any &lt; and &gt;
  in the source docs get translated to < and > respectively.


> -----Original Message-----
> From: Tim Anderson [mailto:[EMAIL PROTECTED]
> Sent: Friday, 11 July 2003 4:13 PM
> To: Maven Developers List
> Subject: RE: [changes plugin] Support for html in change description -
> bugs in jelly?
>
>
> That fixes the whitespace issue thanks, but unfortunately
> CDATA sections are still screwed.
>
> Eg:
>   <source><![CDATA[
>     <Connectors>
>       <Connector scheme="rmi"/>
>     </Connectors>]]>
>   </source>
>
> Becomes:
>   <source><![CDATA[
>     &lt;Connectors&gt;
>       &lt;Connector scheme="rmi"&gt;
>     &lt;/Connectors&gt;]]>
>   </source>
>
> And the HTML produced is:
>   <div id="source">
>     <pre>
>        &amp;lt;Connectors&amp;gt;
>   ....
>
>
> > -----Original Message-----
> > From: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
> > Sent: Friday, 11 July 2003 1:22 AM
> > To: Maven Developers List; [EMAIL PROTECTED]
> > Subject: Re: [changes plugin] Support for html in change description -
> > bugs in jelly?
> >
> >
> > The problem is due to prettyPrint in plugin.jelly.
> > I think that if you pass prettyPrint to false, the result will be ok.
> >
> > Emmanuel
> >
> > ----- Original Message -----
> > From: "Tim Anderson" <[EMAIL PROTECTED]>
> > To: "Maven Developers List" <[EMAIL PROTECTED]>
> > Sent: Thursday, July 10, 2003 7:04 AM
> > Subject: [changes plugin] Support for html in change
> description - bugs in
> > jelly?
> >
> >
> > > Problem (short version):
> > >
> > > I'm trying to modify the changes plugin to support
> > > html in the changes description field - but
> > > I'm having issues with jelly:xml.
> > > Its stripping out whitespace, and screwing up elements
> > > embedded in CDATA sections. Has anyone seen this
> > > before and know of a workaround?
> > >
> > > For the exercise (and to make sure I wasn't going nuts), I
> > > rewrote the plugins' changes.jsl in XSLT, and ran
> > > it via Ant's style task. It works beautifully...
> > >
> > > Problem (long version):
> > >
> > > Currently, the changes plugin doesn't support html in
> > > change descriptions, e.g:
> > >       <action type="update">
> > >         Tinkered with foobars.<p/>
> > >         To construct a foobar:
> > >         <source><![CDATA[
> > >           Hashtable properties = new Hashtable();
> > >           ...
> > >         ]]>
> > >         </source>
> > >      </action>
> > >
> > > Gets transformed to:
> > >      ...
> > >      <td>Tinkered with foobars.To construct a foobar:Hastable
> > > properties...</td>
> > >      ...
> > >
> > > This is because it transforms the text using:
> > >      <x:expr select="string(.)"/>
> > >
> > > If the above is changed to:
> > >      <x:copyOf select="node()" trim="false"/>
> > >
> > > ..things improve slightly, but all whitespace is lost.
> > >
> > > Worse still, CDATA sections containing elements aren't processed
> > > properly, e.g:
> > >  <source><![CDATA[
> > >    <Connectors>
> > >      <Connector scheme="rmi"/>
> > >    </Connections>]]>
> > >  </source>
> > >
> > > Becomes:
> > >   <![CDATA[&lt;Connectors&gt; &lt;Connector scheme="rmi"&gt;
> > > &lt;/Connector&gt; ...
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > > _____________________________________________________________________
> > > Envie de discuter en "live" avec vos amis ? T�l�charger MSN Messenger
> > > http://www.ifrance.com/_reloc/m la 1�re messagerie
> instantan�e de France
> >
> > _____________________________________________________________________
> > Envie de discuter en "live" avec vos amis ? T�l�charger MSN Messenger
> > http://www.ifrance.com/_reloc/m la 1�re messagerie instantan�e de France
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to