cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mariano Kamp <mk...@codamax.com>
Subject [C2] Extending AbstractTransformer
Date Mon, 02 Jul 2001 13:40:50 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() );
	    super.characters(data, 0, data.length); 
	    super.endElement(sqlUri, "execute-query", "execute-query");
	    
System.out.println("------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

endDocument() mark1.");
	}catch (Throwable t) {
	    t.printStackTrace();
	}


<cvis:report name="pf" xmlns:cvis="http://www.codamax.com/vis">
    <cvis:head>
   [...]
    </cvis:head>
  <execute-query>SELECT
FROM
    facts,
WHERE
ORDER BY
;</execute-query>
</cvis:report>

mariano

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