cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew MacDonald <>
Subject CForms: inserting unique node on save
Date Fri, 14 Jan 2005 23:17:22 GMT
I'm using CForms to edit an XML file, but can't figure
out how to insert a unique node when saving the

Here is what the default doc looks like:
<?xml version="1.0"?>
    <param id="1">
        <listItem id="1">
        <listItem id="2">
Basically I want to insert a new <param> node (and
increase the id value for it).  Currently when use the method it overwrites the first <param>.
 I've been trying to specify the last <param> node in
my binding file but get a "JXPath can only create a
path if it uses exclusively the child:: and
attribute:: axes and has no context-dependent
predicates" error, so I'm assuming something like
"<fb:value id="label" path="param[last()]/label"/>"
will not work.

Oh, and although I'm using a repeater for <listItems>
I can't use that for <params> due to the way the forms
are set up.

Any help would be greatly appreciated!

Andrew MacDonald

Do you Yahoo!? 
Yahoo! Mail - You care about security. So do we.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message