cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mariano Kamp <mk...@codamax.com>
Subject Re: [C2] Extending AbstractTransformer
Date Mon, 02 Jul 2001 14:30:49 GMT
Unfortunately this doesn't make any difference. The namespace is still 
omitted in the output.

Mariano

On Monday 02 July 2001 03:50 pm, Torsten Curdt wrote:
> > Hi there,
> >
> >   I extended AbstractTransformer and tried to user
> > super.startElement/endElement etc, to produce nodes (events). This is
> > working fine besides that the name spaces I pass into startElement is
> > ignored. Any thoughts?
> >
> >   Below is a sample to demonstrate what I mean: excecute-query (needed by
> > SQL Transformer) shows up in the resulting stream, but without
> > namespaces?!
> >
> > 	String sqlUri = "http://apache.org/cocoon/SQL/2.0";
> > 	try {
> > 	    char[] data = query.getSQL().toCharArray();
> > 	    super.startElement(sqlUri, "execute-query", "execute-query", new
> > AttributesImpl() );
>
> One is the local tagname and one is the raw tagname including the ns
> prefix. I guess it should be something like:
>
>   super.startElement(sqlUri, "execute-query", "sql:execute-query", ...
>
> --
> Torsten
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail: <cocoon-users-help@xml.apache.org>

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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