[Yanel-dev] Sitetree has problems with special characters (patch included)

Michael Wechner michael.wechner at wyona.com
Tue Feb 8 10:44:27 CET 2011


On 2/8/11 9:37 AM, Michael Wechner wrote:
> Hi Cedric
>
> Thanks very much for this great patch. I have committed it now:
>
> Sending        
> src/contributions/resources/data-repo-sitetree/src/java/org/wyona/yanel/impl/resources/navigation/DataRepoSitetreeResource.java
> Transmitting file data .
> Committed revision 56610.
>
> whereas I have noticed another minor bug re display of the HTML, but 
> which is not
> related to your changes above (during review I first thought this 
> might be the case).
>
> I will try to fix it shortly.

just noticed that this is an issue of a customized sitetree.xsl and not 
of the generic one at

src/contributions/resources/data-repo-sitetree/htdocs/sitetree.xsl

whereas I need to check if a similar problem exists for the generic one
(the resources on the very first level do not get displayed).

Cheers

Michael
>
> Cheers
>
> Michael
>
> On 1/25/11 1:35 PM, Cedric Staub wrote:
>> Hello
>>
>> As it turns out the data-repo-sitetree resource shipped with Yanel has
>> problems with special characters. The reason for this is very simple:
>> the resource uses a StringBuffer to construct the XML output. That means
>> special characters never get escaped.
>>
>> So I cleaned the whole thing up and migrated the resource to the W3C DOM
>> API (org.w3c.dom). All special characters are automatically escaped now.
>> As a result, the resource is much more robust than before and i18n-safe.
>>
>> See patch below.
>>
>> Cheers
>> Cedric
>



More information about the Yanel-development mailing list