I'm very happy to see a XMLDBTrasformer in the scratchpad of Cocoon2!!!

... but I have some problems with the update ...it doesn't seem to work
...is it possible or it's my fault ?



the result of a simple query  [ xindice xpath_query -c /db/beta -q / ]
---------------------

<?xml version="1.0"?>
<users xmlns:src="http://xml.apache.org/xindice/Query";
src:col="/db/beta" src:key="users">

        <user id="1">
                <name>Christian</name>
                <surname>Zoffoli</surname>
                <email />
                <address />
                <login>czoffoli</login>
                <password>chr!s</password>

        </user>

        <user id="2">
                <name>Pippo</name>
                <surname>Pluto</surname>
                <email />
                <address />
                <login>pippo</login>
                <password>p!ppo</password>

        </user>

</users>

---------------------

the xupdate query
---------------------
<?xml version="1.0"?>

<page xmlns:xindice="http://apache.org/cocoon/xmldb/1.0";>

   <xindice:query type="update" oid="users">
        <xu:modifications version="1.0"
xmlns:xu="http://www.xmldb.org/xupdate";>
                <xu:update select="/users/user[@id =
'2']/surname">paperino</xu:update>
        </xu:modifications>
   </xindice:query>

</page>

---------------------

the result
----------------
<?xml version="1.0" encoding="UTF-8"?>
<page xmlns:xindice="http://apache.org/cocoon/xmldb/1.0";>

<xindice:query oid="users" type="update" result="failure">Failed to
update resource users: 1</xindice:query>

</page>

----------------


Thanks, Christian

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to