I've figured out that:      
<fb:insert-node>
     <xi:include />
</fb:insert-node>
inserts the node with correct namespace in opposite to:

<fb:context path="ModuleCode/content/xi:include">...
or
<fb:javascript id="ModuleCode" path="ModuleCode/content/xi:include">

As a workaround, is there a way while binding to access the inserted node in
order
to set an attribute?

Best regards,
Wadim



Wadim Kruse wrote:
> 
> 
> Well, there is no error anymore while saving the document, but
> 
> 
> the namespace declaration looks like this:
> 
> xmlns:xi="&lt;&lt;unknown namespace&gt;&gt;"
> 
> In the binding document I have the following declarations:
> xmlns:xi="http://www.w3.org/2001/XInclude";
> xmlns:i18n="http://apache.org/cocoon/i18n/2.1";
> 
> No problems with i18n namespace.
> 
> Someone any ideas? 
> 
> Best regards,
> Wadim
>       
> 
> 
> 
> Wadim Kruse wrote:
>> 
>> Hi Fabian,
>> 
>> thanks a lot, the patch solved the problem! 
>> @BTW: Why is this patch not in the trunk?
>> 
>> Regards,
>> Wadim
>> 
>> 
>> Fabian Linz wrote:
>>> 
>>> Hi Wadmin,
>>> 
>>> some time ago I had the same error message. Maybe the follwing helps 
>>> you. But I am not sure if it is the same issue:
>>> 
>>> http://issues.apache.org/jira/browse/COCOON-1893
>>> 
>>> Fabian
>>> 
>>> Wadim Kruse wrote, On 01.09.2006 11:45:
>>>> Hi folks,
>>>>
>>>> I have a problem in cforms while binding to an element with not default
>>>> namespace:
>>>>
>>>> <fb:context path="ModuleCode/content"
>>>> xmlns:xi="http://www.w3.org/2001/XInclude";>
>>>>     <fb:javascript id="ModuleCode" path="xi:include/@href">
>>>>         <fb:save-form>
>>>>        var formValue =
>>>> "cocoon:/ModuleDescriptors/"+widget.getValue()+".xml";
>>>>       jxpathPointer.setValue(formValue);
>>>>    </fb:save-form>
>>>>     </fb:javascript>
>>>> </fb:context>
>>>>
>>>> Error while saving the form:
>>>> org.w3c.dom.DOMException: NAMESPACE_ERR: An attempt is made to create
>>>> or
>>>> change an object in a way which is incorrect with regard to namespaces.
>>>>
>>>> resource://org/apache/cocoon/forms/flow/javascript/Form.js - 257:-1        
>>>>
>>>> Setting namespace-prefixes to "true" as suggested in:
>>>> http://www.nabble.com/Cocoon-forms-binding-and-XML-namespaces-tf1234379.html#a3281274
>>>> didn't help.
>>>>
>>>> How could one get it working?
>>>> Thanks in advance!
>>>>
>>>> Regards,
>>>> Wadim
>>>>
>>>> (Cocoon 2.1.10-dev, Java 1.5.0_08, Ubuntu Linux 6.06)
>>>>
>>>>
>>>>   
>>> 
>>> 
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>> 
>>> 
>>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/cforms-%2B-binding-%2B-xml-namespaces-tf2201598.html#a6172096
Sent from the Cocoon - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to