cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Torsten Curdt" <tcu...@dff.st>
Subject RE: [C2] Extending AbstractTransformer
Date Mon, 02 Jul 2001 13:50:21 GMT
> 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>


Mime
View raw message