On 12.11.2003 11:18, Manuel Mata wrote:

Hi i have a little problem using Views and
SQLTransformer. Maybe its a bug ? .I'm reading the
book 'Cocoon Developers Handbook' and its a sample
from that book at the chapter 10 section
SQLTransformer, so if one of you have the book may can
see it. Here is my code and problem.

I have this view in my sitemap to see raw XML data in
the IExplorer:

<snip what="code"/>


Here is all the code we need.
I use the URI
http://localhost:8080/cocoon/abc/tickets.html and it
all works fine !!!. I get the query in an beautiful
html table.
But note that in the pipeline there is a 'label=xml'
attribute so when i use the URI
http://localhost:8080/cocoon/abc/tickets.html?cocoon-view=xml
to see the raw xml data generated by the
SQLTransformer i get an error.
The error is that the xml formed has a duplicate
attribute in the <rowset> tag. The duplicate attribute
is xmlns="http://apache.org/cocoon/SQL/2.0";.
So i dont understand why it works in the pipeline so
duplicated attributes are not allowed in XML and when
i use the view the IExplorer cant show it.

Anyway it works but I'd like to solve this to debug
viewing the XML data returned from the SQLTransformer.

It seems indeed to be a bug, but I don't know where - the SQLTransformer? And you are not the first one having this problem with the duplicate namespace declaration. This behaviour seems to be fixed through the transformation step. Something that's important for finding the bug: The error cames only in IE when it tries to display the file, i.e. not already on server side? If yes, is the namespace declaration also duplicate in the resulting HTML file?


Joerg


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to