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.
[1]
DEBUG (2005-10-20) 11:05.31:375 [forms.bindings] (/main.do)
http-80-Processor24/ValueJXPathBinding: Done loading ValueJXPathBinding
[widget=KledingstukOmschrijving, xpath=co:treetext] -- value= Fraai rokje!
DEBUG (2005-10-20) 11:05.31:375 [forms.bindings] (/main.do)
http-80-Processor24/ValueJXPathBinding: Done loading ValueJXPathBinding
[widget=KledingstukPrijs, xpath=co:text] -- value= € 23,95
DEBUG (2005-10-20) 11:05.31:437 [forms.bindings] (/main.do)
http-80-Processor24/ValueJXPathBinding: Done loading ValueJXPathBinding
[widget=KledingstukKleur, xpath=co:select/co:obj/@xlink:href] -- value=
../kleuren/kleuren.xml#ROOD
DEBUG (2005-10-20) 11:05.31:437 [forms.bindings] (/main.do)
http-80-Processor24/ValueJXPathBinding: Done loading ValueJXPathBinding
[widget=KledingstukBeschikbaar, xpath=co:boolean] -- value= true
DEBUG (2005-10-20) 11:05.31:468 [forms.bindings] (/main.do)
http-80-Processor24/ValueJXPathBinding: Done loading ValueJXPathBinding
[widget=Maat, xpath=co:text[position()=1]] -- value= 48
DEBUG (2005-10-20) 11:05.31:468 [forms.bindings] (/main.do)
http-80-Processor24/ValueJXPathBinding: Done loading ValueJXPathBinding
[widget=PrijsVan, xpath=co:text[position()=2]] -- value=
DEBUG (2005-10-20) 11:05.31:468 [forms.bindings] (/main.do)
http-80-Processor24/ValueJXPathBinding: Done loading ValueJXPathBinding
[widget=Prijs, xpath=co:text[position()=3]] -- value= € 23,95
DEBUG (2005-10-20) 11:05.31:468 [forms.bindings] (/main.do)
http-80-Processor24/ValueJXPathBinding: Done loading ValueJXPathBinding
[widget=Maat, xpath=co:text[position()=1]] -- value= 50
DEBUG (2005-10-20) 11:05.31:468 [forms.bindings] (/main.do)
http-80-Processor24/ValueJXPathBinding: Done loading ValueJXPathBinding
[widget=PrijsVan, xpath=co:text[position()=2]] -- value=
DEBUG (2005-10-20) 11:05.31:468 [forms.bindings] (/main.do)
http-80-Processor24/ValueJXPathBinding: Done loading ValueJXPathBinding
[widget=Prijs, xpath=co:text[position()=3]] -- value= € 24,95
DEBUG (2005-10-20) 11:05.31:468 [forms.bindings] (/main.do)
http-80-Processor24/RepeaterJXPathBinding: done loading rows
RepeaterJXPathBinding [widget=MaatPrijsTabel, xpath=co:list]
DEBUG (2005-10-20) 11:05.31:468 [forms.bindings] (/main.do)
http-80-Processor24/ContextJXPathBinding: done loading
ContextJXPathBinding [xpath=/co:object]
[2]
DEBUG (2005-10-20) 11:09.33:703 [forms.bindings] (/main.do)
http-80-Processor25/JXPathBindingManager: Creation of new binding
finished. ContextJXPathBinding [xpath=/ab:object]
DEBUG (2005-10-20) 11:09.33:718 [forms.bindings] (/main.do)
http-80-Processor25/ContextJXPathBinding: non-existent path: skipping
ContextJXPathBinding [xpath=/ab:object]
Suzan Foster wrote:
Hi,
I'm having a problem with binding namespaced xml in 2.1.8 which I had
solved in 2.1.7. For the previous version it was suffice to upgrade
JXPath to a nightly build. However that doesn't help with the current
snapshot of Cocoon I'm using. There is no difference in using either a
default namespace or prefixes in both xml file and xpath expressions.
Below is a snippet of log for non-namespaced xml and binding
definition [1] and for namespaced xml and binding definition [2]. Any
help on resolving this issue would be greatly appreciated.
[1]
DEBUG (2005-10-20) 10:19.31:796 [forms.bindings] (/main.do)
http-80-Processor25/ValueJXPathBinding: Done loading
ValueJXPathBinding [widget=KledingstukOmschrijving, xpath=treetext] --
value= Fraai rokje!
DEBUG (2005-10-20) 10:19.31:796 [forms.bindings] (/main.do)
http-80-Processor25/ValueJXPathBinding: Done loading
ValueJXPathBinding [widget=KledingstukPrijs, xpath=text] -- value= €
23,95
DEBUG (2005-10-20) 10:19.31:796 [forms.bindings] (/main.do)
http-80-Processor25/ValueJXPathBinding: Done loading
ValueJXPathBinding [widget=KledingstukKleur,
xpath=select/obj/@xlink:href] -- value= ../kleuren/kleuren.xml#ROOD
DEBUG (2005-10-20) 10:19.31:796 [forms.bindings] (/main.do)
http-80-Processor25/ValueJXPathBinding: Done loading
ValueJXPathBinding [widget=KledingstukBeschikbaar, xpath=boolean] --
value= true
DEBUG (2005-10-20) 10:19.31:796 [forms.bindings] (/main.do)
http-80-Processor25/ValueJXPathBinding: Done loading
ValueJXPathBinding [widget=Maat, xpath=text[position()=1]] -- value= 48
DEBUG (2005-10-20) 10:19.31:796 [forms.bindings] (/main.do)
http-80-Processor25/ValueJXPathBinding: Done loading
ValueJXPathBinding [widget=PrijsVan, xpath=text[position()=2]] -- value=
DEBUG (2005-10-20) 10:19.31:796 [forms.bindings] (/main.do)
http-80-Processor25/ValueJXPathBinding: Done loading
ValueJXPathBinding [widget=Prijs, xpath=text[position()=3]] -- value=
€ 23,95
DEBUG (2005-10-20) 10:19.31:796 [forms.bindings] (/main.do)
http-80-Processor25/ValueJXPathBinding: Done loading
ValueJXPathBinding [widget=Maat, xpath=text[position()=1]] -- value= 50
DEBUG (2005-10-20) 10:19.31:796 [forms.bindings] (/main.do)
http-80-Processor25/ValueJXPathBinding: Done loading
ValueJXPathBinding [widget=PrijsVan, xpath=text[position()=2]] -- value=
DEBUG (2005-10-20) 10:19.31:796 [forms.bindings] (/main.do)
http-80-Processor25/ValueJXPathBinding: Done loading
ValueJXPathBinding [widget=Prijs, xpath=text[position()=3]] -- value=
€ 24,95
[2]
DEBUG (2005-10-20) 10:23.21:796 [forms.bindings] (/main.do)
http-80-Processor25/JXPathBindingManager: Creation of new binding
finished. ContextJXPathBinding [xpath=/object]
DEBUG (2005-10-20) 10:23.21:796 [forms.bindings] (/main.do)
http-80-Processor25/ContextJXPathBinding: non-existent path: skipping
ContextJXPathBinding [xpath=/object]
--
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.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]