[basex-talk] Creating Tim, ADate, Dtn, Map programatically

2015-10-30 Thread James Wright
I have some Java methods which return time elements and or Maps and I was trying to convert these into XQuery atomic values with no luck. Is there a utility for these? Array has ``fromValues`` and all other types like ``Str`` have ``get`` but Map, Tim, Dtn, ADate do not appear to be

[basex-talk] Issues with new json xml function and copy clause

2015-05-28 Thread James Wright
I am having issues with the new json-to-xm functions with a copy clause. I would expect the following query to work: *let $json := '{age:23,name:Bob}'return copy $out := json-to-xml($json) modify delete node $out//*[@key='age'] return xml-to-json($out)* Instead I get an error when

[basex-talk] SQL Module

2015-05-27 Thread James Wright
Hey Everyone, I am having issues with using the Oracle 1.7 JDBC driver. I copied the ojdbc7.jar file into the lib directory Ran the basexgui.bat to add to class path Tried to run this script: let $conn := sql:init('jdbc:oracle:thin:pnm/pnm@orc1n.giants') return (sql:execute($conn, 'SELECT

Re: [basex-talk] Issues posting/putting JSON content with markup in it via http module.

2015-03-23 Thread James Wright
Hello Christian, Thanks for the response. I figured out how to get around my issue. Add the method=text attribute to the http:body. http:body media-type=application/json method=text{json:serialize($body)}/http:body - James On Tue, Feb 17, 2015 at 1:37 PM, Christian GrĂ¼n

[basex-talk] Issues posting/putting JSON content with markup in it via http module.

2015-02-16 Thread James Wright
Hello everyone, First, I want to say that I really like the JSON improvements in BaseX 8.0. Great job. I am however having an issue when posting JSON with markup in it. For example: let $out := map { name: 'myView', markup: div name='value'Some other stuff/div }

Re: [basex-talk] Is there a better way to do develop or test with c/s mode server?

2013-12-13 Thread James Wright
A great online open source editor is ace.js. There is XQuery 3.0 compliant language processor for it, plus its styleable and again open source. Supports 20+ languages including but not limited too: CSSHTMLJavaC#PythonRubyPHPJavascriptXQuery 3.0 etc. Also its extremely extensible. To add it to a

[basex-talk] Uninstall Removes Repo directory!

2013-09-19 Thread James Wright
AH! Well its my fault. Several weeks of work lost because I uninstalled 7.7 and it removed the repo directory with all my modules! Just wanted to give the fair warning.. Time to get a drink... I was going to put that in Drop Box last week and never got to it!! - James

Re: [basex-talk] Question around JSON Serialization

2013-08-02 Thread James Wright
___ 2013/8/2 James Wright james...@hotmail.com: Hey BaseX Team, Im trying to serialize some JSON in order to make a few calls to an external api. In the json I need to include 'html' for example: { subject: Test Subject, content: { type: text/html

[basex-talk] Question around JSON Serialization

2013-08-01 Thread James Wright
Hey BaseX Team, Im trying to serialize some JSON in order to make a few calls to an external api. In the json I need to include 'html' for example: { subject: Test Subject, content: { type: text/html, text: divh2Issue:/h2/div},type: document} When I call the

[basex-talk] Quick question regarding subsequences

2013-05-21 Thread James Wright
Hey, In the BaseX implementation this query: ($context//*[name() = $type and data((*|@*)[name() = $entityMetadata/property[@key = 'true']/@name]) = $entityId])[1] Will the query execute completely and then a 'subset' of 1 will be extracted, or will it only execute until it find the '1st' item

Re: [basex-talk] Quick question regarding subsequences

2013-05-21 Thread James Wright
this helps, Christian ___ On Tue, May 21, 2013 at 9:42 PM, James Wright james...@hotmail.com wrote: Hey, In the BaseX implementation this query: ($context//*[name() = $type and data((*|@*)[name() = $entityMetadata/property[@key = 'true']/@name]) = $entityId])[1

[basex-talk] BaseX generate-id()

2013-05-20 Thread James Wright
In the W3C specs it says this method should generate the same ID for a node regardless of when its called. Is this how it is implemented in BaseX or does it simply generate a random number? My testing seems to implicate the ladder. If it does generate the same ID for each node each time its

Re: [basex-talk] BaseX generate-id()

2013-05-20 Thread James Wright
are always invited to read the dissertation in more detail ;) [1] http://docs.basex.org/wiki/Database_Module#db:open-pre [2] http://docs.basex.org/wiki/Node_Storage ___ On Mon, May 20, 2013 at 10:46 PM, James Wright james...@hotmail.com wrote: How did I not notice

[basex-talk] Custom Serializer in BaseX

2013-05-16 Thread James Wright
Is it possible to write a custom serializer parser for BaseX? ___ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk

Re: [basex-talk] Referential Queries

2013-05-14 Thread James Wright
, but on the other hand the use of XQuery as a back-end for Web Apps is definitely on the increase] On Tue, 2013-05-14 at 11:14 -0600, James Wright wrote: Hello Again, If this is the wrong forum for these type of questions let me know. By the way Liam I picked up your book last night, I like

[basex-talk] Question regarding BaseX support for id and idref

2013-05-13 Thread James Wright
Hello BaseX-Talk, I am new to the boards and BaseX in general. I have been looking for a open source NoSQL database with expressive query abilities and I think BaseX fits the bill. Its been an exciting journey as I am new to the whole X platform aside from the angle brackets... As I think many

Re: [basex-talk] Question regarding BaseX support for id and idref

2013-05-13 Thread James Wright
On Mon, 2013-05-13 at 19:15 -0600, James Wright wrote: [...] I know the xml standard defines id and idref however I have not been able to find any documentation on these in BaseX or XML in general. For example does BaseX handle idiosyncrasies of id and idref or must I handle these in my