I think the names will be self-explanatory, but just to be thourough:
* data.xml is the namespaced xml data.
* binding.ok.xml is the namespaced binding using the same prefix as in
data.xml.
* binding.fail.xml is the namespaced binding using a different prefix
for the namespace.
Jean-Baptiste Quenot wrote:
* Suzan Foster:
Correction to my previous post: when the prefixes in the xml
file and xpath expressions match it does bind, But when f.i. the
xml file binds the namespace to the prefix co: whilst the
binding definition binds the namespace to the prefix ab: it
fails.
That's interesting. But can you provide a sample XML document and
your form binding? It may be useful to see how you declared the
namespaces.
--
Met vriendelijke groet,
Suzan Foster
Software Engineer
*NEROC'MEDIAWARE *
De Run 1131
5503 LB Veldhoven
T +31 (0)40 258 66 66
F +31 (0)40 258 66 77
E [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
================================================
De informatie opgenomen in dit bericht kan vertrouwelijk zijn en
is uitsluitend bestemd voor de geadresseerde. Indien u dit bericht
onterecht ontvangt, wordt u verzocht de inhoud niet te gebruiken en
de afzender direct te informeren door het bericht te retourneren.
================================================
The information contained in this message may be confidential
and is intended to be exclusively for the addressee. Should you
receive this message unintentionally, please do not use the contents
herein and notify the sender immediately by return e-mail.
<?xml version="1.0" encoding="UTF-8"?>
<co:object ref="B" xmlns:co="http://www.nerocmediaware.nl/NCO/content/1.0" xmlns:xlink="http://www.w3.org/1999/xlink">
<co:treetext ref="B_2">Fraai rokje!</co:treetext>
<co:text ref="B_3">⬠23,95</co:text>
<co:select ref="B_4">
<co:obj xlink:type="simple" xlink:href="/content/kleuren/kleuren.xml#ROOD"/>
</co:select>
<co:boolean ref="B_5">true</co:boolean>
<co:list ref="B_6">
<co:row>
<co:text ref="B_7">48</co:text>
<co:text ref="B_8"/>
<co:text ref="B_9">⬠23,95</co:text>
</co:row>
<co:row>
<co:text ref="B_7">50</co:text>
<co:text ref="B_8"/>
<co:text ref="B_9">⬠24,95</co:text>
</co:row>
</co:list>
</co:object>
<?xml version="1.0"?>
<fb:context
xmlns:ab="http://www.nerocmediaware.nl/NCO/content/1.0"
xmlns:fb="http://apache.org/cocoon/forms/1.0#binding"
xmlns:fd="http://apache.org/cocoon/forms/1.0#definition"
xmlns:xlink="http://www.w3.org/1999/xlink"
path="/ab:object" >
<fb:value id="KledingstukOmschrijving" path="ab:treetext"/>
<fb:value id="KledingstukPrijs" path="ab:text"/>
<fb:value id="KledingstukKleur" path="ab:select/ab:obj/@xlink:href"/>
<fb:value id="KledingstukBeschikbaar" path="ab:boolean"/>
<fb:repeater id="MaatPrijsTabel" parent-path="ab:list" row-path="ab:row">
<fb:on-bind>
<fb:value id="Maat" path="ab:[EMAIL PROTECTED]'B_7']"/>
<fb:value id="PrijsVan" path="ab:[EMAIL PROTECTED]'B_8']"/>
<fb:value id="Prijs" path="ab:[EMAIL PROTECTED]'B_9']"/>
</fb:on-bind>
<fb:on-delete-row>
<fb:delete-node/>
</fb:on-delete-row>
<fb:on-insert-row>
<fb:insert-node>
<ab:row>
<ab:text ref="B_7"/>
<ab:text ref="B_8"/>
<ab:text ref="B_9"/>
</ab:row>
</fb:insert-node>
</fb:on-insert-row>
</fb:repeater>
</fb:context>
<?xml version="1.0"?>
<fb:context
xmlns:co="http://www.nerocmediaware.nl/NCO/content/1.0"
xmlns:fb="http://apache.org/cocoon/forms/1.0#binding"
xmlns:fd="http://apache.org/cocoon/forms/1.0#definition"
xmlns:xlink="http://www.w3.org/1999/xlink"
path="/co:object" >
<fb:value id="KledingstukOmschrijving" path="co:treetext"/>
<fb:value id="KledingstukPrijs" path="co:text"/>
<fb:value id="KledingstukKleur" path="co:select/co:obj/@xlink:href"/>
<fb:value id="KledingstukBeschikbaar" path="co:boolean"/>
<fb:repeater id="MaatPrijsTabel" parent-path="co:list" row-path="co:row">
<fb:on-bind>
<fb:value id="Maat" path="co:[EMAIL PROTECTED]'B_7']"/>
<fb:value id="PrijsVan" path="co:[EMAIL PROTECTED]'B_8']"/>
<fb:value id="Prijs" path="co:[EMAIL PROTECTED]'B_9']"/>
</fb:on-bind>
<fb:on-delete-row>
<fb:delete-node/>
</fb:on-delete-row>
<fb:on-insert-row>
<fb:insert-node>
<co:row>
<co:text ref="B_7"/>
<co:text ref="B_8"/>
<co:text ref="B_9"/>
</co:row>
</fb:insert-node>
</fb:on-insert-row>
</fb:repeater>
</fb:context>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]