Hello all,

    Does anybody know how to use writeDOMsession transformer for XML
containing specific namespaces without excluding them, for example:

 <?xml version="1.0" encoding="iso-8859-1" ?>
 <collection:results
xmlns:collection="http://apache.org/cocoon/xmldb/1.0"; resources="13">
   <collection:result docid="bebe.xml">
     <bebe id="ID_bebe"
xsi:noNamespaceSchemaLocation="../../../schemas/bebe.xsd"
                        src:col="/db/data/bebes"
                        src:key="bebe.xml"

xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance";
                        xmlns:src="http://xml.apache.org/xindice/Query";>

      <elem>some info</elem>
    </bebe>
   </collection:result>
 </collection:results>

    It doesn't wont to be wrote. What I have to do? I use Cocoon 2.0.1
and tryed following ways:

 <map:transform type="writeDOMsession">
   <map:parameter name="dom-name" value="session_attr_name"/>
   <map:parameter name="dom-root-element" value="collection:results"/>
 </map:transform>

and

 <map:transform type="writeDOMsession"
xmlns:collection="http://apache.org/cocoon/xmldb/1.0";>
   <map:parameter name="dom-name" value="session_attr_name"/>
   <map:parameter name="dom-root-element"
xmlns:collection="http://apache.org/cocoon/xmldb/1.0";
value="collection:results"/>
 </map:transform>

    After both ways there is no such session attribute as I can see from
core.log.

    Thank you for any advice.
        Roman



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