Hi ,
I want to identify the uris which does not have the particular
element.Say, i want to get uris which does not have id' element.
xml in db :
employee
nametest/name
id123/id
/employee
cts:uris('',
(),
HI.
This is the general sample people see for which you can build on:
cts:element-query(xs:QName('id'),cts:and-query( () ))
This does into take into count position within the structure - just if the
element exists or not .
An earlier thread with all of the history and example :
Hi Priya,
You can use this query,,
cts:uris(,(),cts:not-query(cts:element-query(xs:QName('id'),cts:and-query(()
Thanks,
Abhinav
From: general-boun...@developer.marklogic.com
[mailto:general-boun...@developer.marklogic.com] On Behalf Of priya dharshni
Sent: Wednesday, September 10, 2014
Hello,
Please remove me from this mailing list. I am just starting to learn
Marklogic. These emails go way above my head, and currently, they are flooding
my inbox. At this time, they don’t do much good.
Thanks.
kpmg
Sainath Thoppil
Senior Associate | Advisory | Credit Risk
303
/publication looks like an xpath. You're looking for root elements of
'publication'?
If you are doing /publication[1 to 3] you are applying a position
predicate (first or second or third) to all the publication nodes.
Try (/publication)[1 to 3] and you'll be just selecting the first 3
from the
Bloomin' brackets again! Gets me every time :)
Thanks for your lightning fast help, as ever.
-Original Message-
From: Christopher Hamlin cbham...@gmail.com
Reply-To: MarkLogic Developer Discussion general@developer.marklogic.com
Date: Wednesday, 10 September 2014 16:39
To: MarkLogic
Hi Folks,
I am importing content from an ASCII text file into an XML record to manage
updates in MarkLogic, but upon request I need to export an updated ASCII text
file. The ASCII text file can include a variety of ISO encodings and upon
export it is required that some ASCII characters
FYI – I know that I ca use the full repair option upon import – the real
challenge is adding the character encodings upon export.
From: general-boun...@developer.marklogic.com
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Tim
Sent: Wednesday, September 10, 2014 12:28 PM
To:
Hi Tim,
There's a serialization option to control which entities are output:
output-sgml-character-entities (see http://docs.marklogic.com/xdmp:quote).
xdmp:quote(xdmp:unquote(xuuml;/x))
=
xü/x
xdmp:quote(xdmp:unquote(xuuml;/x),
options xmlns=xdmp:quote
These are also available via the xdmp:output option in the XQuery prolog:
http://docs.marklogic.com/guide/xquery/langoverview#id_71572
Note that you will not see the effect of these when running in Query Console
because the output options only affect the outer query, and underneath the
covers
Hi Tim,
Maybe simplistic, but you could do it with a map:map and
analyze-string. Search for entities on the way in and look up the
names. Search for unicode char ranges that you want to convert on the
way out, and look them up in the inversion of the map:map. Something
like
xquery version
11 matches
Mail list logo