[MarkLogic Dev General] Sequences in XCC
Paul Preuveneers
paul.preuveneers at gmail.com
Sat Mar 24 03:25:11 PST 2007
Hi all,
I'm trying to use the transactional context character ';' as per the
developer guide, however I don't seem to be getting it right
I appear to be able to do this in cq:
doc('/a.xml'),
xdmp:node-replace(doc('/a.xml')/node(), <b>goodbye</b>);
doc('/a.xml')
and results in
<b>hello</b>
<b>goodbye</b>
however if put this in any other context, ie a function, it stops being able
to understand the semi colon:
*
XDMP-UNEXPECTED: Unexpected token syntax error, unexpected SemiColon_,
expecting Comma_ or Rbrace_*
Am I missing something obvious? the developers guide doensn't have much on
this
Cheers
Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://xqzone.marklogic.com/pipermail/general/attachments/20070324/be457974/attachment.html
More information about the General
mailing list