You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Bruce Krautbauer <br...@medtronic.com> on 2002/05/23 21:23:30 UTC
Session transformer mergexml issue
I've been looking at the new session transformer and I stumbled onto an issue that may or may not be a bug.
This XML:
<?xml version="1.0" ?>
<test xmlns:session="http://cocoon.apache.org/session/1.0">
<session:createcontext name="sessionTest" />
<session:setxml context="sessionTest" path="/">
<root>foo</root>
</session:setxml>
<session:mergexml context="sessionTest" path="/">
<root>
<stem>bar</stem>
</root>
</session:mergexml>
<session:getxml context="sessionTest" path="/"/>
</test>
generates a Cocoon 2 - Internal server error:
org.apache.cocoon.ProcessingException: Not a valid path for setNode(): /
whereas this version works fine:
<?xml version="1.0" ?>
<test xmlns:session="http://cocoon.apache.org/session/1.0">
<session:createcontext name="sessionTest" />
<session:setxml context="sessionTest" path="/">
<root>foo</root>
</session:setxml>
<session:mergexml context="sessionTest" path="/root">
<stem>bar</stem>
</session:mergexml>
<session:getxml context="sessionTest" path="/"/>
</test>
Is it not allowed to update from the root level?
Best regards,
Bruce
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>