Re: [MarkLogic Dev General] Querying DateTime values

2017-09-26 Thread Kari Cowan
n:current-dateTime () - xs:dayTimeDuration('P10D')) > ) > > That still worked for me. > > Then add in the other stuff gradually. When something doesn't work, > you'll know what it is. > > /ch > > On Tue, Sep 26, 2017 at 10:30 AM, Kari Cowan wrote:

Re: [MarkLogic Dev General] Querying DateTime values

2017-09-26 Thread Kari Cowan
@chris put another way - how would I test your example using a cts:search rather than displaying in the return option? On Mon, Sep 25, 2017 at 8:45 AM, Kari Cowan wrote: > Chris, Gert - Thanks - I tried your test and I see that it does return > uri's from the last 10 days, so that

Re: [MarkLogic Dev General] Querying DateTime values

2017-09-25 Thread Kari Cowan
BLICATION-DATE”), but like Chris is suggesting, you better write > xs:QName("PUBLICATION-DATE”) as fn:QName(“http://www. > incisivemedia.com/summary”, “PUBLICATION-DATE”), or you should declare a > namespace prefix in your code, and use that in xs:QName: > > declare namespace s

Re: [MarkLogic Dev General] Querying DateTime values

2017-09-22 Thread Kari Cowan
y";> 2017-09-21T17:47:00Z On Fri, Sep 22, 2017 at 1:05 PM, Kari Cowan wrote: > Ahh, once i fixed the misplaced paren, I can get back a proper error that > tells me something more useful -- No dateTime element-attribute range index > for fn:QName("", "PUBLICATI

Re: [MarkLogic Dev General] Querying DateTime values

2017-09-22 Thread Kari Cowan
gt; wrote: > > Hi Kari, > > > > Looks like you misplaced one of the parentheses. Make sure to wrap the > > string "2017-09-22T08:00:00Z” in xs:dateTime(..) before you try to > substract > > the duration. In provided query you have the xs dateTime cast wrapping &g

[MarkLogic Dev General] Querying DateTime values

2017-09-22 Thread Kari Cowan
I need some expert tips on this bug. cts:element-attribute-range-query(xs:QName("PUBLICATION-DATE"),xs:QName("datetime"), ">=", xs:dateTime(fn:current-date() - xs:dayTimeDuration("P30D"))) The above query works fine when the publication-date is in this format: 2017-09-28 00:00:00:000 But it fail

Re: [MarkLogic Dev General] Convert output to PDF or Excel

2017-07-12 Thread Kari Cowan
y formats. > > Justin > > -- > Justin Makeig > Director, Product Management > MarkLogic > jmak...@marklogic.com > > > On Jul 12, 2017, at 3:16 PM, Kari Cowan wrote: > > > > Do you have an example with a bit more detail Would you do it in xQuery > or would it

Re: [MarkLogic Dev General] Convert output to PDF or Excel

2017-07-12 Thread Kari Cowan
GH wrote: > We can use xdmp function as below:- > xdmp:set-response-content-type("application/vnd.ms-excel") > > On 24 June 2017 at 01:42, Kari Cowan wrote: > >> >> Is there any function to convert an xqy query response to a PDF or Excel >> file? &

Re: [MarkLogic Dev General] Convert output to PDF or Excel

2017-07-05 Thread Kari Cowan
Ta. I will give that a try - didn't realize that was an option. On Mon, Jun 26, 2017 at 10:14 PM, VISHNU SINGH wrote: > We can use xdmp function as below:- > xdmp:set-response-content-type("application/vnd.ms-excel") > > On 24 June 2017 at 01:42, Kari Cowan

[MarkLogic Dev General] Convert output to PDF or Excel

2017-06-23 Thread Kari Cowan
Is there any function to convert an xqy query response to a PDF or Excel file? ___ General mailing list General@developer.marklogic.com Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general

Re: [MarkLogic Dev General] Using RegEx in xQuery

2017-03-22 Thread Kari Cowan
I don’t like to admit it but I had some test mode get all…. $doc/i:HTML returned just what it should, $doc//i:HTML returned the extras…. ☺ From: on behalf of Kari Cowan Reply-To: MarkLogic Date: Wednesday, March 22, 2017 at 8:12 AM To: MarkLogic Subject: Re: [MarkLogic Dev General] Using

Re: [MarkLogic Dev General] Using RegEx in xQuery

2017-03-22 Thread Kari Cowan
Righto – I’ll look to add such a function – thanks. From: on behalf of Christopher Hamlin Reply-To: MarkLogic Date: Wednesday, March 22, 2017 at 7:48 AM To: MarkLogic Subject: Re: [MarkLogic Dev General] Using RegEx in xQuery My guess is that it's a big doc and hard to find the HTML tags? O

Re: [MarkLogic Dev General] Using RegEx in xQuery

2017-03-22 Thread Kari Cowan
Thanks – these are good ideas and make sense, but as I dig into the data a little deeper I see something odd that doesn’t seem be working the way I would expect it. Assume I inspected a document via: doc("/data-sources/lawcom-contrib/sites/almstaff/2017/03/21/no-womans-land-cybersecurity-industr

Re: [MarkLogic Dev General] Using RegEx in xQuery

2017-03-19 Thread Kari Cowan
Thanks. I’ll look into that. Do you have any links/examples particular to ML 7? From: on behalf of Christopher Hamlin Reply-To: MarkLogic Date: Saturday, March 18, 2017 at 6:03 PM To: MarkLogic Subject: Re: [MarkLogic Dev General] Using RegEx in xQuery Note that regex works on strings, not

Re: [MarkLogic Dev General] Using RegEx in xQuery

2017-03-17 Thread Kari Cowan
hub.com/jmakeig/7273340b3065f442030451d04587c466#file-identity-transform-xqy>. I can't quite tell from your description what your transformation needs to do, though. "Strip out everything in between" what? Can you give a more fleshed out example of the input and yo

[MarkLogic Dev General] Using RegEx in xQuery

2017-03-17 Thread Kari Cowan
Inside my return for a query, I have an HTML node that I don’t need that includes a bunch of child elements -- I want to strip out everything in between; alternately I could be happy to remove the node entirely from the returned data. Is there a function for that I don’t know about or is th is

Re: [MarkLogic Dev General] Is xdml:unquote appropriate for handling accent characters?

2017-02-09 Thread Kari Cowan
Well sure. To be clear, we started with é on cms our editors use – and then we exported that to ML having changed it to é (which I presume we did so the our content loader wouldn’t choke on it). That’s perfect for most re-use scenarios. I am then taking that however, and pulling it back to us

Re: [MarkLogic Dev General] Is xdml:unquote appropriate for handling accent characters?

2017-02-09 Thread Kari Cowan
2017 at 2:05 PM, Kari Cowan mailto:kco...@alm.com>> wrote: I guess I could do a function with a series of replacements >> fn:replace($Str,"é","é") I was hoping there was a better way. From: mailto:general-boun...@developer.marklogic.com>>

Re: [MarkLogic Dev General] Is xdml:unquote appropriate for handling accent characters?

2017-02-09 Thread Kari Cowan
I guess I could do a function with a series of replacements >> fn:replace($Str,"é","é") I was hoping there was a better way. From: on behalf of Kari Cowan Reply-To: MarkLogic Date: Thursday, February 9, 2017 at 10:53 AM To: MarkLogic Subject:

Re: [MarkLogic Dev General] Is xdml:unquote appropriate for handling accent characters?

2017-02-09 Thread Kari Cowan
We stored in the doc as: Pokémon In xQuery I retrieve with let $theTitle:=$doc//ir:HEADLINE/text() That returns as: Pokémon How can I return it as Pokémon instead of Pokémon? From: on behalf of Christopher Hamlin Reply-To: MarkLogic Date: Thursday, February 9, 2017 at 9:44 AM To: MarkLo

Re: [MarkLogic Dev General] Is xdml:unquote appropriate for handling accent characters?

2017-02-09 Thread Kari Cowan
; declare function do:makeXMLsafe( $Str as xs:string ) { let $xhtml-node:=xdmp:tidy($Str, yes )[2]/xhtml:html/xhtml:body/node() return $xhtml-node }; On Thu, Feb 9, 2017 at 3:55 AM, Kari Cowan mailto:kco...@alm.com>> wrote: Thanks Indy – how is that meant to flow, som

Re: [MarkLogic Dev General] Is xdml:unquote appropriate for handling accent characters?

2017-02-08 Thread Kari Cowan
ml = "http://www.w3.org/1999/xhtml";; xdmp:tidy($Str, yes )[2]/xhtml:html/xhtml:body/node() Regards, Indy On Wed, Feb 8, 2017 at 11:40 PM, Kari Cowan mailto:kco...@alm.com>> wrote: I guess I can make it palatable with the function I added below – then have them

Re: [MarkLogic Dev General] Is xdml:unquote appropriate for handling accent characters?

2017-02-08 Thread Kari Cowan
-html-uri($Str) return $Str }; >> changes ‘Pokémon’ to ‘Pok%C3%A9mon’ Is there any better way to deal with it? From: on behalf of Kari Cowan Reply-To: MarkLogic Date: Tuesday, February 7, 2017 at 2:34 PM To: MarkLogic Subject: Re: [MarkLogic Dev General] Is xdml:unquote appropria

Re: [MarkLogic Dev General] Is xdml:unquote appropriate for handling accent characters?

2017-02-07 Thread Kari Cowan
(note outlook stripped out the unknown character below, in the node it was “Pok?mon” From: Kari Cowan Date: Tuesday, February 7, 2017 at 2:31 PM To: MarkLogic Subject: Is xdml:unquote appropriate for handling accent characters? The doc contains a node with text including an accent grave

[MarkLogic Dev General] Is xdml:unquote appropriate for handling accent characters?

2017-02-07 Thread Kari Cowan
The doc contains a node with text including an accent grave, example: VOIR DIRE: Pokémon Drive? I tried to handle it with: let $theTitle:=xdmp:unquote($theTitle, "", ("repair-full")) But I still get an output with an unknown character in xml VOIR DIRE: Pokmon Drive? >> XML Parsing Error: not w

[MarkLogic Dev General] Sublime Plugin

2017-02-03 Thread Kari Cowan
I’ve been converting my dev environment to Mac and recently installed Sublime 3 Then I found this nifty thing: https://developer.marklogic.com/code/sublime Is it actively supported and is there an appropriate place to get tips for use or read other people’s discussions? ___

Re: [MarkLogic Dev General] Any easy way to set xml version and encoding?

2017-02-02 Thread Kari Cowan
stopher Hamlin mailto:cbham...@gmail.com>> wrote: There's some info on controlling serialization here: https://help.marklogic.com/knowledgebase/article/View/328/0/xml-serialization-and-output-options /ch On Thu, Feb 2, 2017 at 1:45 PM, Kari Cowan mailto:kco...@alm.com>> wrot

[MarkLogic Dev General] Any easy way to set xml version and encoding?

2017-02-02 Thread Kari Cowan
I have a query the returns an RSS output implementation with some custom nodes. I need to insert ahead of the declaration. I found this article from 2009 but wanted to check if there was another way or newer simpler approach I could do directly in the xQuery. Any ideas? http://markmail.org/me

Re: [MarkLogic Dev General] How to handle very large xml file to prevent com.marklogic.xcc.exceptions.XQueryException: Time limit exceeded

2016-05-24 Thread Kari Cowan
ay 24, 2016, at 2:53 AM, Kari Cowan mailto:kco...@alm.com>> wrote: The file is used in a different application that I don’t have control over, so I am just adjusting the data that’s in the file – to fix the firmname (correcting some typo’s and inconsistencies they had and continue to ha

Re: [MarkLogic Dev General] How to handle very large xml file to prevent com.marklogic.xcc.exceptions.XQueryException: Time limit exceeded

2016-05-23 Thread Kari Cowan
ge file into record-like files (each containing just one firm for instance). You can then make much more use of the search capabilities of MarkLogic. Cheers, Geert From: mailto:general-boun...@developer.marklogic.com>> on behalf of Kari Cowan mailto:kco...@alm.com>> Rep

[MarkLogic Dev General] How to handle very large xml file to prevent com.marklogic.xcc.exceptions.XQueryException: Time limit exceeded

2016-05-23 Thread Kari Cowan
There must be a better way to do this. My script works fine when it's loading a document that is not very large, but occassionally one of the docs is massive (13Mb on one of my error issues), and when that happens, in my application I get an error like: com.marklogic.xcc.exceptions.XQueryExcept

Re: [MarkLogic Dev General] Need a suggestion for grouped search

2016-03-05 Thread Kari Cowan
lto:rob.szku...@marklogic.com> www.marklogic.com<http://www.marklogic.com> From: general-boun...@developer.marklogic.com<mailto:general-boun...@developer.marklogic.com> [general-boun...@developer.marklogic.com] on behalf of Kari Cowan [kco...@alm.com] Sent: Friday, March 04, 201

Re: [MarkLogic Dev General] Need a suggestion for grouped search

2016-03-04 Thread Kari Cowan
t;http://www.marklogic.com> From: general-boun...@developer.marklogic.com<mailto:general-boun...@developer.marklogic.com> [general-boun...@developer.marklogic.com<mailto:general-boun...@developer.marklogic.com>] on behalf of Kari Cowan [kco...@alm.com&

[MarkLogic Dev General] Need a suggestion for grouped search

2016-03-04 Thread Kari Cowan
I am using ML 7, and trying to do a grouped search. In my test below, this_partner is 2 partners, split by the / character. In the search, it would then search one, then the other. I was hoping in the return, using fn:distinct-values(), I would only return the record if it had not already re

Re: [MarkLogic Dev General] xdmp:node-replace

2016-02-09 Thread Kari Cowan
neral-boun...@developer.marklogic.com] On Behalf Of Kari Cowan Sent: Tuesday, February 09, 2016 5:29 AM To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] xdmp:node-replace Thanks Geert. I did not do that. Will I still be able to follow that recommendation or should I d

Re: [MarkLogic Dev General] xdmp:node-replace

2016-02-09 Thread Kari Cowan
741.xml")/ec:calendar/ec:approval_status, http://www.alm.com/event-calendar";>true); Cheers, Geert From: mailto:general-boun...@developer.marklogic.com>> on behalf of Kari Cowan mailto:kco...@alm.com>> Reply-To: MarkLogic Developer Discussion mailto:general@developer.marklo

Re: [MarkLogic Dev General] xdmp:node-replace

2016-02-08 Thread Kari Cowan
c(...)/calendar/approval_status It looks like you are missing the namespace on the element steps. On Mon, Feb 8, 2016 at 8:37 PM, Kari Cowan mailto:kco...@alm.com>> wrote: I have used this node-replace statement on other types of records and it works fine, but it doesn’t work for these, and it do

[MarkLogic Dev General] xdmp:node-replace

2016-02-08 Thread Kari Cowan
I have used this node-replace statement on other types of records and it works fine, but it doesn't work for these, and it doesn't return an error. Any idea what silly error have I made? xquery version "1.0-ml"; declare namespace ec = "http://www.alm.com/event-calendar";; xdmp:node-replace(do

Re: [MarkLogic Dev General] declare XML namespace

2016-01-28 Thread Kari Cowan
t;. If you need to change the default serialization options (for example, to change character encoding, or to indent output), see http://docs.marklogic.com/guide/xquery/langoverview#id_71572 David S. On Thu, 28 Jan 2016, Kari Cowan wrote: > I may be going about this wrong, but I was trying to

Re: [MarkLogic Dev General] declare XML namespace

2016-01-28 Thread Kari Cowan
Right, this is just for a RSS option. It just makes it feed out prettier – I don’t think machines care – it was more for me when inspecting in the browser. I notice in QConsole that if I explore – ML inserts it for its own purposes, but if I try to insert it on my own custom return layer, it ca

[MarkLogic Dev General] declare XML namespace

2016-01-28 Thread Kari Cowan
I may be going about this wrong, but I was trying to insert the xml marker above an RSS feed return: Returns error> [1.0-ml] XDMP-UNEXPECTED: (err:XPST0003) Unexpected token syntax error, unexpected Version_, expecting Comma_ or Rpar_ or SemiColon_ Seems like a common thing that would be desi

Re: [MarkLogic Dev General] Custom JSON objects

2016-01-19 Thread Kari Cowan
ier, in your variable bindings: let $theEvent:= $doc/EventTitle/fn:string() let $theStartDate:=$doc/EventStartDate/fn:string() Thanks. -jb From: mailto:general-boun...@developer.marklogic.com>> on behalf of Kari Cowan mailto:kco...@alm.com>> Reply-To: MarkLogic Developer Discussi

Re: [MarkLogic Dev General] Custom JSON objects

2016-01-19 Thread Kari Cowan
ajamani.marimu...@cognizant.com> Sent: Tuesday, January 19, 2016 5:00 AM To: general@developer.marklogic.com<mailto:general@developer.marklogic.com> Subject: Re: [MarkLogic Dev General] Custom JSON objects Hi, Your code is working fine and getting expected result . Could you please tell m

Re: [MarkLogic Dev General] Custom JSON objects

2016-01-19 Thread Kari Cowan
per.marklogic.com> [mailto:general-boun...@developer.marklogic.com] On Behalf Of Kari Cowan Sent: Tuesday, January 19, 2016 5:37 AM To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] Custom JSON objects Just returning to this, I wanted to try constructing the map, but instead

Re: [MarkLogic Dev General] Custom JSON objects

2016-01-18 Thread Kari Cowan
map to json: let $map := map:new(( map:entry("key", "value"), map:entry("anotherKey", "a different value") )) return xdmp:to-json($map) Thanks. -jb From: mailto:general-boun...@developer.marklogic.com>> on behalf of Kari Cowan mailto:kco...@alm

Re: [MarkLogic Dev General] Custom JSON objects

2015-12-14 Thread Kari Cowan
rKey", "a different value") )) return xdmp:to-json($map) Thanks. -jb From: mailto:general-boun...@developer.marklogic.com>> on behalf of Kari Cowan mailto:kco...@alm.com>> Reply-To: MarkLogic Developer Discussion mailto:general@developer.marklogic.com>&

[MarkLogic Dev General] Custom JSON objects

2015-12-14 Thread Kari Cowan
I had a question from someone on my team if it's possible to return a more simplified version JSON without child and attributes. For example, compare Events JSON object: http://data.smartlitigator.com/EventTools/GetEventsTable?display=New+York+Law+Journal|returnType=JSON To this: http://data.s

Re: [MarkLogic Dev General] Thesaurus

2015-12-04 Thread Kari Cowan
/03/2015 07:07 AM, Kari Cowan wrote: I am starting to look at the Thesaurus API. Is there any difference between ML 7 and 8.x in these regards? https://docs.marklogic.com/7.0/thsr Only that there is now a JSON format for some of the functions as well for convenience when you use the APIs via

[MarkLogic Dev General] Thesaurus

2015-12-03 Thread Kari Cowan
I am starting to look at the Thesaurus API. Is there any difference between ML 7 and 8.x in these regards? https://docs.marklogic.com/7.0/thsr ___ General mailing list General@developer.marklogic.com Manage your subscription at: http://developer.m

Re: [MarkLogic Dev General] $counter < i -- I might be overthinking this

2015-11-18 Thread Kari Cowan
son:config("full"), $cx := map:put( $config, "whitespace", "ignore" ) return fn:string-join( for $doc at $counter in $docs return xdmp:quote(json:transform-to-json($doc, $config)),","), "]}") return $outputJSON Thanks. -jb F

Re: [MarkLogic Dev General] $counter < i -- I might be overthinking this

2015-11-17 Thread Kari Cowan
sequence, not "loose" like for fn:concat. /ch On Tue, Nov 17, 2015 at 12:30 PM, Kari Cowan mailto:kco...@alm.com>> wrote: fn:string-join - I thought about that – tried it but it didn’t join each with the comma – it also didn’t give me any error. That would have been the sim

Re: [MarkLogic Dev General] $counter < i -- I might be overthinking this

2015-11-17 Thread Kari Cowan
gic Developer Discussion Subject: Re: [MarkLogic Dev General] $counter < i -- I might be overthinking this Can fn:string-join help? Join with ',', and glue on whatever you like before or after? On Mon, Nov 16, 2015 at 11:30 PM, Kari Cowan mailto:kco...@alm.com>> wrote: Is

[MarkLogic Dev General] $counter < i -- I might be overthinking this

2015-11-16 Thread Kari Cowan
Is there any built-in component I can reference that would indicate in the loop below where $counter is less than the last item in the loop? This would print the json for the return only when $counter=1, is simple way to know when $counter < LastItem? let $outputJSON:=("{"events":[", let $confi

Re: [MarkLogic Dev General] Return Order - what returns first

2015-08-03 Thread Kari Cowan
m<http://www.marklogic.com/> From: general-boun...@developer.marklogic.com<mailto:general-boun...@developer.marklogic.com> [mailto:general-boun...@developer.marklogic.com] On Behalf Of Kari Cowan Sent: Monday, August 03, 2015 4:56 PM To: general@developer.marklogic.com<mailto

[MarkLogic Dev General] Return Order - what returns first

2015-08-03 Thread Kari Cowan
This is odd. I have a return that should first return some markup for 3 lists, then it writes a table. But it seems to alternate intermittently as to what writes first - sometimes it writes the table first. Any obvious reasons that would happen? Here's a snippet to put it in context... (prett

Re: [MarkLogic Dev General] Sorting and De-duping

2015-07-31 Thread Kari Cowan
etty much cover the subject: http://docs.marklogic.com/guide/app-dev/hashtable https://developer.marklogic.com/blog/im-a-map On Fri, Jul 31, 2015 at 12:32 PM, Kari Cowan wrote: > If you're curious, this was the final working version of the snippet. The > distinct-values function was giving me a

Re: [MarkLogic Dev General] Sorting and De-duping

2015-07-31 Thread Kari Cowan
y $audience return xs:string($audience) -Original Message- From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Kari Cowan Sent: Thursday, July 30, 2015 1:59 PM To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] Sorting

Re: [MarkLogic Dev General] Sorting and De-duping

2015-07-30 Thread Kari Cowan
Thanks. I haven't worked with the map function yet. I was trying to use distinct-values in the for loop, but get an error that my value isn't a node (which is true) for $audience in xs:string(fn:distinct-values($these-docs//ec:audience)) order by $audience return $audience/fn:string() >> [1.0

Re: [MarkLogic Dev General] Sorting and De-duping

2015-07-30 Thread Kari Cowan
where... I'll come back with a question about that if I run into one. Thanks again! From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Kari Cowan Sent: Thursday, July 30, 2015 12:32 PM To: MarkLogic Developer Discussion Subject: Re: [Mar

Re: [MarkLogic Dev General] Sorting and De-duping

2015-07-30 Thread Kari Cowan
ogic.com> [mailto:general-boun...@developer.marklogic.com] On Behalf Of Kari Cowan Sent: Thursday, July 30, 2015 11:44 AM To: general@developer.marklogic.com<mailto:general@developer.marklogic.com> Subject: [MarkLogic Dev General] Sorting and De-duping I have a query that returns a group of

[MarkLogic Dev General] Sorting and De-duping

2015-07-30 Thread Kari Cowan
I have a query that returns a group of records. I want to display a sorted list of results of a node called 'audience' - there can be multiple audience nodes in a document. Here's a snippet and result list, to put it in context. Am I missing something obvious? xquery version "1.0-ml"; declare

Re: [MarkLogic Dev General] Generating Reports in ML

2015-06-19 Thread Kari Cowan
poration d...@marklogic.com Phone: +1 812-482-5224 Cell: +1 812-630-7622 www.marklogic.com -Original Message- From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Christopher Hamlin Sent: Thursday, June 18, 2015 8:42 PM To: MarkLogic Developer Discus

Re: [MarkLogic Dev General] Generating Reports in ML

2015-06-18 Thread Kari Cowan
To be clear, I can take a single result and return it into a xdmp:document-insert statement - is there a method available to iteratively append to that document? From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Kari Cowan Sent

[MarkLogic Dev General] Generating Reports in ML

2015-06-18 Thread Kari Cowan
I have a query that returns a set of results for a single record. I want to loop through all records (under 1000 records), and create a spreadsheet or document. Assume I could do a search on cts:search(xdmp:directory("/olympus/scope-xml/"), and then a value query on a node called "Coporate_Pro

Re: [MarkLogic Dev General] XDMP-PATTERNVALUEMISMATCH: xdmp:parse-dateTime

2015-05-29 Thread Kari Cowan
artdateTime, "en") => 2015-05-28T00:00:00-07:00 -Danny From: general-boun...@developer.marklogic.com<mailto:general-boun...@developer.marklogic.com> [mailto:general-boun...@developer.marklogic.com] On Behalf Of Kari Cowan Sent: Thursday, May 28, 2015 2:24 PM To: MarkLogic De

Re: [MarkLogic Dev General] XDMP-PATTERNVALUEMISMATCH: xdmp:parse-dateTime

2015-05-28 Thread Kari Cowan
1]", xs:string( $startdateTime ) )), "[Y0001]-[M01]-[D01]" ) ? 2015-05-28 -Danny From: general-boun...@developer.marklogic.com<mailto:general-boun...@developer.marklogic.com> [mailto:general-boun...@developer.marklogic.com] On Behalf Of Kari Cowa

[MarkLogic Dev General] XDMP-PATTERNVALUEMISMATCH: xdmp:parse-dateTime

2015-05-28 Thread Kari Cowan
Ok, so my date input below is "May 28, 2015", but my script below says my pattern doesn't match. I think it should but according to the comment in https://docs.marklogic.com/xdmp:parse-dateTime, as of 6.0-3.1 this function does not round-trip non-numeric values. For example format-dateTime(curr

Re: [MarkLogic Dev General] xdmp:node-replace

2015-05-13 Thread Kari Cowan
more cler to me when reading it as a log file. From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Kari Cowan Sent: Tuesday, May 12, 2015 1:57 PM To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] xdmp:node-replace

Re: [MarkLogic Dev General] xdmp:node-replace

2015-05-12 Thread Kari Cowan
Sure – that would be great if you can take a look. I have commented out the action on the script so it wouldn’t actually change the node in my document, but the document it’s using and comparing is attached. I also have a translation xml doc that I loaded. It’s rather large so I didn’t attach

Re: [MarkLogic Dev General] xdmp:node-replace

2015-05-12 Thread Kari Cowan
Very helpful - thanks. Right, I simplified the app code and fixed the conflict issue, but found 2 new bugs as a result - so this response below is actually super helpful. Thanks again. -Original Message- From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.m

Re: [MarkLogic Dev General] xdmp:node-replace

2015-05-12 Thread Kari Cowan
Hmm, I seem to get the same error regardless of set "true" or "false" - so perhaps the first question, am I sure each argument is a single node? It should be yes, but it's happening more than once - to put in context, the same "firm" can exist in multiple parts of these docs because the doc des

[MarkLogic Dev General] xdmp:node-replace

2015-05-11 Thread Kari Cowan
I am trying to use xdmp:node-replace to change a node value. Assume 'theTranslation' is a value I am matching in another document, and 'firmname' exists as a node or as text, depending on how I reference it, how do I use node-replace to change the value of theFirmname? xdmp:node-replace($theFi

Re: [MarkLogic Dev General] Qconsole error when adding a new tab: Invalid coercion

2015-02-19 Thread Kari Cowan
I found out one of my colleagues cloned my workspace. I don’t think that should have caused it, but [meh] deleted the clone and the problem seems to have gone away. Kudos. From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Kari Cowan

Re: [MarkLogic Dev General] Qconsole error when adding a new tab: Invalid coercion

2015-02-19 Thread Kari Cowan
his error message to explore the database to find the workspace document causing the query to return two and 'fix' this if it's really critical that you get that specific workspace running correctly again. Good luck, Harry On Wed, Feb 18, 2015 at 10:13 AM, Kari Cowan mailto:kco.

[MarkLogic Dev General] Qconsole error when adding a new tab: Invalid coercion

2015-02-18 Thread Kari Cowan
Anyone run into this before? When I try to add a new tab in my workspace, I get this error. I created a 2nd workspace and don't get the error in that workspace, but do you know why qconsole woujld start generating this error just in the one workspace? XDMP-AS: (err:XPTY0004) qconsole-model:ge

[MarkLogic Dev General] XSLTForms Exception

2014-05-04 Thread Kari Cowan
Setup ML 7 on a Win8.1 box. Running through intro docs and trying to create the 'First App Example' but am getting: XSLTForms Exception, when trying to create the app and db. Any easy way to fix? XSLTForms Exception - Error initializing: TypeError Unable to get property