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 Mon, 05 May 2003 07:53:04 GMT
On Sun, 2003-05-04 at 16:30, David Kavanagh wrote:
> What I have run into is that in passing the un-escaped data through
> the TraxTransformer, I get different results. IN fact I get quite
> unexpected results because the data containing the un-escaped '&'
> seems to stop processing on that part of the XML tree.

Very strange. If you could post a reproduceable (minimal) sample (i.e. a
sitemap snippet, a query document, an XSL, and some sql to create a test
table), then we could help you further (unless someone else has other
ideas...).

>  Escaping in the SQLTransformer is the only way I've found to fix the
> problem.
> I've been on the XML-INTEREST list and JDOM list for a while and
> eharacter escaping has been a topic of discussion on each list. XML is
> not well-formed if you see something like this
> 
> <tag>some data & some more data</tag> 
> 
> That just isn't well-formed XML It should read
> 
> <tag>some data &amp; some more data</tag>
> 
> That is why you have the pre-defined enties like &amp; &lt; &gt;
> &quot; &apos;
> 
> It seems to me that at any point in the pipeline, the XML should be
> well-formed.

Yes, but Cocoon's pipeline is a SAX pipeline, not an XML pipeline.

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