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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to