cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruno Dumon <br...@outerthought.org>
Subject Re: SQL transformer character escaping
Date Sun, 04 May 2003 10:12:26 GMT
On Sat, 2003-05-03 at 19:04, David Kavanagh wrote:
> I hate to bug... I could generate a patch for this issue, but I'd like 
> to know from other people if they see this as an issue. If not, how do 
> you work around it. (BTW, now, I've looked at the code and know where to 
> do the character substitution).
> .
> .
> I'm using the SQLTransformer to grab data from a database (no surprise 
> there). The data contains the "&" character. It seems like that isn't 
> being escaped in the XML being generated. When I've written 
> transformers, I make sure the XML generated escapes characters like <, 
>  >, &, etc.

Huh? Transformers should not escape those characters themselves, they
are escaped by the serializer. All text passing in the characters()
events over the pipeline is unescaped (or in xml speak: all entities are
resolved).

So the serializer is not escaping those characters for you?

-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno@outerthought.org                          bruno@apache.org


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


Mime
View raw message