cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wadim Kruse <z-c...@web.de>
Subject Re: cforms + binding + xml namespaces
Date Wed, 06 Sep 2006 18:47:23 GMT

Hi Fabian,

thanks for your reply!

another namespace with the same prefix doesn't work, 
the same namespace with another prefix doesn't work,
in both cases: xmlns:xi="&lt;&lt;unknown namespace&gt;&gt;"

The (simplest) binding document:

<?xml version="1.0"?>

<fb:context xmlns:fb="http://apache.org/cocoon/forms/1.0#binding"
	xmlns:fd="http://apache.org/cocoon/forms/1.0#definition"
	path="/ProgrammeDescription"
	xmlns:i18n="http://apache.org/cocoon/i18n/2.1"
	xmlns:xi="http://www.w3.org/2001/XInclude">

	<fb:value id="ProgrammeCode" path="ProgrammeCode"></fb:value>
	<fb:value id="ProgrammeCodeAttr" path="ProgrammeCode/@id"></fb:value>
	<fb:context path="xi:include">
		<fb:javascript id="ProgrammeCode" path="@href">
			<fb:save-form>
				var formValue = "cocoon:/"+widget.getValue()+".xml";
				jxpathPointer.setValue(formValue);
			</fb:save-form>
		</fb:javascript>
	</fb:context>
	<fb:insert-node>
		<test>
			<xi:include />
		</test>
	</fb:insert-node>
</fb:context>

The result document:

<?xml version="1.0" encoding="UTF-8"?>
<ProgrammeDescription>
    <ProgrammeCode id="code">PROG1</ProgrammeCode>
    <xi:include xmlns:xi="&lt;&lt;unknown namespace&gt;&gt;"
href="cocoon:/PROG1.xml"/>
    <test>
        <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"/>
    </test>
</ProgrammeDescription>

-----------------------------------------------------------
The fb:insert-node works...

Best regards,
Wadim



Fabian Linz wrote:
> 
> Hi!
> 
> Have you already tried the following:
> Is another namespace working with the same prefix?
> Is the same namespace working with another prefix?
> 
> Can you provide the whole binding document?
> 
> Fabian
> 
> Wadim Kruse wrote, On 06.09.2006 14:06:
>> 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
>> 	
>>
>>   
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 
> 
> 

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


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message