cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Johannes Becker" <jonnybec...@hotmail.com>
Subject WoodyBinding and form2xml.flow-example question
Date Mon, 27 Oct 2003 18:52:25 GMT
Hi,

I wanted to try out and customize the WoodyBinding 
(http://localhost:8888/samples/woody/form2xml.flow) example.

Because I want to write some xml in an existing xml-file I customized this 
line in the code:
old: <wb:insert-node>
new: <wb:insert-node src="forms/datatry.xml" xpath="/document/tree">

What I understood from the wiki-documentation that src="existing external 
source" and xpath="where to write it in the tree of the external source".

But now I get following error:
____________________________________________________________________________
An Error Occurred
"resource://org/apache/cocoon/woody/flow/javascript/woody2.js", line 199: 
uncaught JavaScript exception: at form2xml 
(file:/C:/Programme/cocoon-2.1.2/build/webapp/samples/woody/flow/binding_example.js, 
Line 73) at (resource://org/apache/cocoon/woody/flow/javascript/woody2.js, 
Line 199): org.apache.commons.jxpath.JXPathException: Exception trying to 
create xpath contact[3]; Factory could not create a child node for path: 
/data[1]/wrapper[1]/context[1]/contacts[1]/contact[3]
org.apache.avalon.framework.CascadingRuntimeException: 
"resource://org/apache/cocoon/woody/flow/javascript/woody2.js", line 199: 
uncaught JavaScript exception: at form2xml 
(file:/C:/Programme/cocoon-2.1.2/build/webapp/samples/woody/flow/binding_example.js, 
Line 73) at (resource://org/apache/cocoon/woody/flow/javascript/woody2.js, 
Line 199): org.apache.commons.jxpath.JXPathException: Exception trying to 
create xpath contact[3]; Factory could not create a child node for path: 
/data[1]/wrapper[1]/context[1]/contacts[1]/contact[3]
cause: org.apache.commons.jxpath.JXPathException: Exception trying to create 
xpath contact[3]; Factory could not create a child node for path: 
/data[1]/wrapper[1]/context[1]/contacts[1]/contact[3]
full exception chain stacktrace[hide]
Original Exception: org.apache.commons.jxpath.JXPathException: Exception 
trying to create xpath contact[3]; Factory could not create a child node for 
path: /data[1]/wrapper[1]/context[1]/contacts[1]/contact[3]

	at 
org.apache.commons.jxpath.ri.JXPathContextReferenceImpl.createPath(JXPathContextReferenceImpl.java:420)
_______________________________________

What did I understand wrong?

Thanks Jonny

_________________________________________________________________
E-Mails sind zu unpersönlich? Mit einer Webcam wird der MSN Messenger zum 
Bildtelefon! http://messenger.msn.de Jetzt kostenlos downloaden und der Spaß 
beginnt!


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


Mime
View raw message