I am using BaseX 6.5. I am trying to transform a given node using an XQuery.
Say, I have an node like so:
<id>1</id>
<title>Link Amazon By ISBN</title>
<updated>2010-09-29T18:37:48.592Z</updated>
<author>
<name>LibX Team</name>
</author>
<content type="html">Content created by LibX Libapp Builder</content>
</entry>
I am trying to send this node to an xquery which is expected to do the following actions:
- create a copy of this node (so that the actual node in the database does not change),
- transform/modify the duplicate copy of the given node
- return the modified duplicate copy of the given node
I would expect the output to be like so:
<id>1</id>
<title>Link Amazon By ISBN</title>
<updated>2010-09-29T18:37:48.592Z</updated>
<author>
<name>Sony</name>
</author>
<content type="html">Copy of: Content created by LibX Libapp Builder</content>
</entry>
I tried to perform the non-updating functions using transform and also tried to use a pending update list (Reference:
http://docs.basex.org/wiki/Update#transform). None of this works as expected. Could you refer me to a more detailed documentation for performing such transform operations on nodes ?
Thanks,
Sony