Re: [basex-talk] Implement read lock and write lock

2017-08-17 Thread Dharmendra Singh
Thanks for your reply favrice, I am new in the BaseX so if you little explore. i have gone through the documentation within documentation these line has been given  declare option query:read-lock "foo,bar";declare option query:read-lock "batz";  declare option query:write-lock "quix";   i have t

Re: [basex-talk] Save XMLs into filesystem from DB

2017-07-07 Thread Dharmendra Singh
ile name for each file you want to write.6. juuli 2017 1:42 PM kirjutas kuupäeval Dharmendra Singh : Hi All , i have to save the XMLs files from  the DB but i am not able to do that below is my code, this code is generating only one kb file  so can any one tell me where i am doing wrong let $l

[basex-talk] Save XMLs into filesystem from DB

2017-07-06 Thread Dharmendra Singh
Hi All , i have to save the XMLs files from  the DB but i am not able to do that below is my code, this code is generating only one kb file  so can any one tell me where i am doing wrong let $localpath := 'D:/2017/doctest/xmls'for $xmls in db:open('test') return file:write($localpath,$xmls,map{"m

[basex-talk] Extract XML from zipped docx file

2017-06-28 Thread Dharmendra Singh
Hi All, I have a zipped docx i have to extract the XML from the zipped docx file how can i achieve this, and what function will be used for that. Thanks & Regards Dharmendra Kumar Singh

Re: [basex-talk] Validate XML against RNG schema

2017-06-22 Thread Dharmendra Singh
Hi Paul, I am really sorry about that i will take care in the future RegardsDharmendra Kumar Singh On Thursday, 22 June 2017 4:20 PM, Paul Swennenhuis wrote: Oops ... Not recommended to post 8 Mb to the list Dharmendra. Paul On 21-6-2017 8:14, Dharmendra Singh wrote

Re: [basex-talk] How to run XSLT 2.0 in BaseX

2017-06-21 Thread Dharmendra Singh
in the Java classpath. How do you start BaseX? On Wed, Jun 21, 2017 at 1:25 PM, Dharmendra Singh wrote: > Hi Christian, > > As i have checked by running function xslt:processor() it is using java now > , so how can i use the saxon9ee.jar  for the XSLT 2.0 can you describe the > pr

Re: [basex-talk] How to run XSLT 2.0 in BaseX

2017-06-21 Thread Dharmendra Singh
is not working On Wednesday, 21 June 2017 4:10 PM, Dharmendra Singh wrote: As per documentation By default, this module uses Java’s XSLT 1.0, so if use 2.0 we need to add saxon9he.jar in the classpath RegardsDharmendra Kumar singh On Wednesday, 21 June 2017 3:43 PM, Christian

Re: [basex-talk] How to run XSLT 2.0 in BaseX

2017-06-21 Thread Dharmendra Singh
the documentation and find out why xslt:version() returns 1.0. ;) On Wed, Jun 21, 2017 at 12:09 PM, Dharmendra Singh wrote: >  xslt:version() returning 1.0 and my XSLT expression for the 2.0 like > > > as per xslt 2.0 expression  is right so can you please tell me what should i >

Re: [basex-talk] How to run XSLT 2.0 in BaseX

2017-06-21 Thread Dharmendra Singh
, and xslt:version() returns 2.0? In that case, you’ll obviously need to check your XSLT expression. On Wed, Jun 21, 2017 at 11:45 AM, Dharmendra Singh wrote: > Yes the example which has been given for the 2.0 running perfect but when i > am adding the line "if($editmode eq $EDIT-FULL) the

Re: [basex-talk] How to run XSLT 2.0 in BaseX

2017-06-21 Thread Dharmendra Singh
heck out the documentation (http://docs.basex.org/wiki/XSLT_Module)? On Wed, Jun 21, 2017 at 11:19 AM, Dharmendra Singh wrote: > Hi all i am trying to run XSLT 2.0 but it is giving the error when i run > xslt 1.0 it fine but i am not able to run XSLT 2.0, is there any way to run &

[basex-talk] How to run XSLT 2.0 in BaseX

2017-06-21 Thread Dharmendra Singh
Hi all i am trying to run XSLT 2.0 but it is giving the error when i run xslt 1.0 it fine but i am not able to run XSLT 2.0, is there any way to run XSLT 2.0, below is my code. let $xslt :=    http://www.w3.org/1999/XSL/Transform"; xmlns:xs="http://www.w3.org/2001/XMLSchema"; exclude-result-pr

Re: [basex-talk] Validate XML against RNG schema

2017-06-21 Thread Dharmendra Singh
-8123818404127734568.tmp, 1:1: syntax error i think XML is not valid. One again thanks to Everyone, i got the solution. RegardsDharmendra Kumar Singh On Wednesday, 21 June 2017 2:19 PM, Dharmendra Singh wrote: HI Christian, How have you loaded the 'publishers-51cr.rnc' sch

Re: [basex-talk] Validate XML against RNG schema

2017-06-21 Thread Dharmendra Singh
age '[bxerr:BXVA0001] Validation failed', because my XML document did not match the schema. What happens if you directly reference your XML document and RelaxNG file?   validate:rng('doc.xml','publishers-51cr.rnc',true()) On Wed, Jun 21, 2017 at 10:16 AM, Dharmendra Singh

Re: [basex-talk] Validate XML against RNG schema

2017-06-21 Thread Dharmendra Singh
ument. You can convert the rnc file to rng using > trang and store it in the DB as a regular XML file. > > Gerrit > > On 6/21/17 8:20 AM, Dharmendra Singh wrote: >> >> Hi all, >> >> I have loaded the RNG schema using function db:store and also loaded the >&

Re: [basex-talk] Validate XML against RNG schema

2017-06-21 Thread Dharmendra Singh
e-tex" wrote: Hi Dharmendra, The function validate:rng() seems to only accept a Relax NG *XML syntax* document as its 2nd argument. You can convert the rnc file to rng using trang and store it in the DB as a regular XML file. Gerrit On 6/21/17 8:20 AM, Dharmendra Singh wrote: > H

[basex-talk] Validate XML against RNG schema

2017-06-20 Thread Dharmendra Singh
Hi all,  I have loaded the RNG schema using function db:store and also loaded the XML in the DB which has to be validated, but i am getting the error, below is my code:  let $binary := db:retrieve('onix','/relaxng/publishers-51cr.rnc')  let $schema := bin:decode-string($binary)  return   let $in