You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Gianugo Rabellino <gi...@rabellino.it> on 2001/10/17 23:25:08 UTC

[patch] Minor tweak to Main.java

Ciao,

Main.java crashes on windows when it tries to write to a filename
containg illegal characters. During Cocoon's doc generation on W2K this
happens in at least two cases where the resulting filename contains a
colon (":") character. This one liner fixes this particular problem,
although it might be worth to investigate if there is a way to detect
platform dependant illegal characters in order to make mangle()
consistent on every platform.

Also, this is not enough to make Cocoon docs work. Main mangles
correctly the "src" parameter of the <img> tags, but in the
xml.apache.org skins these tags are actually handled by javascript code
which is unchanged. I'm thinking about cloning the mangle() function in
script.js, but then it would be the case to use that script only in
generated and local docs, not on the site. Any better solution?

Ciao,

--
Gianugo Rabellino

AW: [patch] Minor tweak to Main.java

Posted by Carsten Ziegeler <cz...@sundn.de>.
Thanks Gianugo,

it's applied!

Carsten

> -----Ursprüngliche Nachricht-----
> Von: Gianugo Rabellino [mailto:gianugo@rabellino.it]
> Gesendet: Mittwoch, 17. Oktober 2001 23:25
> An: cocoon-dev@xml.apache.org
> Betreff: [patch] Minor tweak to Main.java
>
>
> Ciao,
>
> Main.java crashes on windows when it tries to write to a filename
> containg illegal characters. During Cocoon's doc generation on W2K this
> happens in at least two cases where the resulting filename contains a
> colon (":") character. This one liner fixes this particular problem,
> although it might be worth to investigate if there is a way to detect
> platform dependant illegal characters in order to make mangle()
> consistent on every platform.
>
> Also, this is not enough to make Cocoon docs work. Main mangles
> correctly the "src" parameter of the <img> tags, but in the
> xml.apache.org skins these tags are actually handled by javascript code
> which is unchanged. I'm thinking about cloning the mangle() function in
> script.js, but then it would be the case to use that script only in
> generated and local docs, not on the site. Any better solution?
>
> Ciao,
>
> --
> Gianugo Rabellino
>


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org