I don't know. One possible workaround I could think of now (I don't remember if I tried at the time) is to use the second approach mentioned in my posting, and filter the output file in a post-goal to replace the escaped html entities, something like:

      <ant:replace file="${file}" token="&amp;amp;gt;" value="&gt;"/>
      <ant:replace file="${file}" token="&amp;amp;lt;" value="&lt;"/>

An ugly hack, but it might work (if you don't have too many files to process...)

HTH,
-Lukas


Benoitx wrote:
Yes... this is exactly my situation!
Quite bad that you did not find a solution...

Would there be any workaround if the JS was hosted somewhere and that could
contain the comment?

Benoit


ltheussl wrote:

This reminds me of the same problem I had a long time ago:

http://marc.info/?l=turbine-maven-user&m=108984870613874&w=2

I never figured out a solution...

-Lukas



Benoitx wrote:

Hi Lance & co,

Sorry to relaunch this thread.  Your workaround is fine but how would you
get xdoc to generate a <!-- INSIDE a script itself.

I need to add this **AS-IS** in a footer... any suggestion? Many thanks

<script type="text/javascript"><!--
google_ad_client = "pub-XXXXXXXXXX";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text";
//2007-03-22: XXXXXXXXXXX Demo
google_ad_channel = "XXXXXXXXX";
//-->
</script>

Benoit


Lance Bader wrote:


Thanks Lukas.

Here is my solution.  It's not pretty but it does the job.

<script type="text/javascript">document.write('\xA9')</script>

Just place this where you want the copyright symbol to appear.  I'm
already
using a customized copy of site.jsl, so I just replaced each of the 4
occurrences of the &#169; entity with a copy of the above Javascript
segment.  I can publish with WebDAV and the symbol appears correctly.

- Lance

On 12/9/05, Lukas Theussl <[EMAIL PROTECTED]> wrote:


Hi Lance,

I tried a few things but I couldn't get it work like you want, so I'm
afraid the preliminary answer to your question is no. Unfortunately,
jelly is not very consistent with the treatment of entities, we've had
several related problems in the past.

-Lukas


Lance Bader wrote:


By default, the jelly style language file, site.jsl, used by the xDoc
plug-in to convert the xDoc XML source into XHTML, supplies a footer

that


includes a copyright symbol.  The site.jsl file specifies the symbol

using


the &#169; entity notation, but the XHTML file generated contains the

real


copyright character.

If you deploy your web site using WebDAV protocols, this character is
mangled into a question mark.

Is there a way to modify the site.jsl file so that the &#169; entity
notation appears in the XHTML output instead of the copyright symbol?


---------------------------------------------------------------------
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