Patrick, get off my Codemirror turf ;)
On Wed, Sep 15, 2010 at 11:30 PM, Patrick Wied wrote:
> I'm going to attempt the xquery support for Codemirror and Syntax
> Highlighter.
> --
> Patrick Wied
>
> ___
> General mailing list
> General@developer.mark
You can XPath up from your results to the document node:
cts:search(//INFO-OBJ/TITLE, $query)/ancestor::document-node()
This might give you duplicates though, if there is more than one match in a
document, so you might have to filter those out.
Another idea is to use the nested element-query yo
> You can change the searchable expression (the first arg to cts:search or the
> option in search:search).
Yeah, i thought of those, but neither gives me relevance ranked documents, each
will return relevance-ranked titles, which isn't what I'm looking for in this
case.
Sam
Date: Fri, 17 Sep
Nice one, Mike!
On Sep 17, 2010, at 8:26 AM, Michael Blakeley wrote:
> It's great to see people stepping up to this challenge. You might want
> to try the test I sent to Patrick.
>
> let $let := "test"
> return element element {
> attribute attribute { 1 },
> element test { 'a' },
> attr
Hi Rob,
I think you're getting burned by the namespaces (which is easy enough to do) on
those Report elements. Try this:
declare namespace msp = "urn:us:gov:ic:msp:v3.1";
fn:doc('/path/to/my/xml/thefile.xml')/msp:Report
--Mark
From: general-boun...@developer.marklogic.com
[mailto:general-bo
Hello,
I have been trying to research this problem, but am coming up empty. I am
working on an application in which we are loading XML with a webDav server (I
am not sure how important this is). When accessing a document using fn:doc, I
am given a root node, but none of the children nodes are
You can change the searchable expression (the first arg to cts:search or the
option in search:search).
for example:
cts:search(//INFO-OBJ/TITLE, $query)
-Danny
-Original Message-
From: general-boun...@developer.marklogic.com
[mailto:general-boun...@developer.marklogic.com] On Behalf
I have a need to retrieve relevance-ranked documents containing text matching
in tags that are direct children of tags. I'm using
cts:search to get matching documents in relevance order. Using
cts:element-query I can match in TITLE tags that are descendants of INFO-OBJ
tags, but I see no wa
It's great to see people stepping up to this challenge. You might want
to try the test I sent to Patrick.
let $let := "test"
return element element {
attribute attribute { 1 },
element test { 'a' },
attribute foo { "bar" },
fn:doc()[ foo/@bar eq $let ],
//x }
-- Mike
On 2010-09-1
That's fast work, but I don't think it's safe to take a keyword-based or
regex-based approach to highlighting XQuery. Try this:
let $let := "test"
return element element {
attribute attribute { 1 },
element test { 'a' },
attribute foo { "bar" },
fn:doc()[ foo/@bar eq $let ],
/
I've written an XQuery brush for Syntax Highlighter that I'd like to
enter into the running...
http://www.xqueryhacker.com/2009/11/syntaxhighlighter-xquery-brush/
Thanks
Rob
From: general-boun...@developer.marklogic.com
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Patrick
Wied
S
11 matches
Mail list logo