Re: [basex-talk] Schematron package error
Hi All, I got the solution actually i was using Saxon9ee so i have changed the Saxon9pe and it worked now schematron running fine. Regards Dharmendra Kumar Singh On Fri, Jul 20, 2018 at 5:07 PM DK Singh wrote: > Hi All, > > I am doing the schematron validation against XML docuemnt but i am getting > these errors. > > Bad name element: XPath error. No XPath. Bad name element: XPath error. No > XPath. Error on line 1409 column 61 of iso_dsdl_include.xsl: Too many > nested template or function calls. The stylesheet may be looping. at > xsl:call-template name="sch-check:strip-strings" > (file:///C:/Program%20Files%20(x86)/BaseX/repo/http-github.com-Schematron-schematron-basex-1.2/content/iso-schematron/iso_dsdl_include.xsl#1409) > > > it looks like basex schematron pacakge throwing the error to run > schematron validation. > can anyone suggest how can i resolve this errors. > > Regards > Dharmendra Kumar Singh >
Re: [basex-talk] Schematron package error
Hi Dharmendra, Thanks for sending me the files. They run without error for me. I was using BaseX 9.0.2 with Saxon saxon9he-9.7.0.20.jar Using the GUI on windows produced an out of memory until I increased xms in the bat file: set BASEX_JVM=-Xmx2400m %BASEX_JVM% The schematron you are using requires xslt2 so having Saxon in the path is important. I suggest you create a new BaseX 9.0.2 installation. Install saxon and the schematron package and try running in that. Regards /Andy On 22 July 2018 at 19:03, Imsieke, Gerrit, le-tex wrote: > I’m afraid we cannot help you without seeing the actual Schematron file > that you are trying to compile/apply. > > On 22.07.2018 19:59, DK Singh wrote: > >> Thank U Andy for your response, I have tried but it is giving schematron >> compilation error, but when I validate on Oxygen editor xmls got validated, >> as github documentation I am doing first schematron compilation then >> validating the XML, SO how can I resolve this error Now >> >> On Sun 22 Jul, 2018, 9:39 PM James Ball, > m...@jamesball.co.uk>> wrote: >> >> Hello Dharmendra, >> >> Have you made sure that the Schematron is compiled before using it >> to validate? I think this is the error you get if you try to use an >> un-compiled Schematron file to perform a validation. >> >> The necessary steps are outlined with the module documentation on >> GitHub and I had it working successfully just a week ago. >> >> Regards, James >> >> > Date: Fri, 20 Jul 2018 17:07:30 +0530 >> > From: DK Singh > dharam.m...@gmail.com>> >> > To: BaseX > <mailto:basex-talk@mailman.uni-konstanz.de>> >> > Subject: [basex-talk] Schematron package error >> > Message-ID: >> > > twju9kw...@mail.gmail.com <mailto:twju9kw...@mail.gmail.com>> >> > Content-Type: text/plain; charset="utf-8" >> > >> > Hi All, >> > >> > I am doing the schematron validation against XML docuemnt but i >> am getting >> > these errors. >> > >> > Bad name element: XPath error. No XPath. Bad name element: XPath >> error. No >> > XPath. Error on line 1409 column 61 of iso_dsdl_include.xsl: Too >> many >> > nested template or function calls. The stylesheet may be looping. >> at >> > xsl:call-template name="sch-check:strip-strings" >> > >> (file:///C:/Program%20Files%20(x86)/BaseX/repo/http-github. >> com-Schematron-schematron-basex-1.2/content/iso- >> schematron/iso_dsdl_include.xsl#1409) >> > >> > >> > it looks like basex schematron pacakge throwing the error to run >> schematron >> > validation. >> > can anyone suggest how can i resolve this errors. >> > >> > Regards >> > Dharmendra Kumar Singh >> > -- next part -- >> > An HTML attachment was scrubbed... >> > URL: >> <http://mailman.uni-konstanz.de/pipermail/basex-talk/attachm >> ents/20180720/3801dbc8/attachment-0001.html> >> > >> >> > -- > Gerrit Imsieke > Geschäftsführer / Managing Director > le-tex publishing services GmbH > Weissenfelser Str. 84, 04229 Leipzig, Germany > Phone +49 341 355356 110, Fax +49 341 355356 510 > gerrit.imsi...@le-tex.de, http://www.le-tex.de > > Registergericht / Commercial Register: Amtsgericht Leipzig > Registernummer / Registration Number: HRB 24930 > > Geschäftsführer / Managing Directors: > Gerrit Imsieke, Svea Jelonek, Thomas Schmidt >
Re: [basex-talk] Schematron package error
com <mailto:dharam.m...@gmail.com>>> > <mailto:dharam.m...@gmail.com <mailto:dharam.m...@gmail.com> <mailto:dharam.m...@gmail.com <mailto:dharam.m...@gmail.com>> > > <mailto:dharam.m...@gmail.com <mailto:dharam.m...@gmail.com> <mailto:dharam.m...@gmail.com <mailto:dharam.m...@gmail.com>>>>> > > > > To: BaseX mailto:basex-talk@mailman.uni-konstanz.de> > <mailto:basex-talk@mailman.uni-konstanz.de <mailto:basex-talk@mailman.uni-konstanz.de>> > > <mailto:basex-talk@mailman.uni-konstanz.de <mailto:basex-talk@mailman.uni-konstanz.de> > <mailto:basex-talk@mailman.uni-konstanz.de <mailto:basex-talk@mailman.uni-konstanz.de>>> > > > <mailto:basex-talk@mailman.uni-konstanz.de <mailto:basex-talk@mailman.uni-konstanz.de> > <mailto:basex-talk@mailman.uni-konstanz.de <mailto:basex-talk@mailman.uni-konstanz.de>> > > <mailto:basex-talk@mailman.uni-konstanz.de <mailto:basex-talk@mailman.uni-konstanz.de> > <mailto:basex-talk@mailman.uni-konstanz.de <mailto:basex-talk@mailman.uni-konstanz.de>>>>> > > > > Subject: [basex-talk] Schematron package error > > > > Message-ID: > > > > > > > > > > mailto:twju9kw...@mail.gmail.com> <mailto:twju9kw...@mail.gmail.com <mailto:twju9kw...@mail.gmail.com>> <mailto:twju9kw...@mail.gmail.com <mailto:twju9kw...@mail.gmail.com> <mailto:twju9kw...@mail.gmail.com <mailto:twju9kw...@mail.gmail.com>>> <mailto:twju9kw...@mail.gmail.com <mailto:twju9kw...@mail.gmail.com> <mailto:twju9kw...@mail.gmail.com <mailto:twju9kw...@mail.gmail.com>> <mailto:twju9kw...@mail.gmail.com <mailto:twju9kw...@mail.gmail.com> <mailto:twju9kw...@mail.gmail.com <mailto:twju9kw...@mail.gmail.com>>>>> > > > > Content-Type: text/plain; charset="utf-8" > > > > > > > > Hi All, > > > > > > > > I am doing the schematron validation against XML > docuemnt > > but i > > > am getting > > > > these errors. > > > > > > > > Bad name element: XPath error. No XPath. Bad name > element: > > XPath > > > error. No > > > > XPath. Error on line 1409 column 61 of > > iso_dsdl_include.xsl: Too many > > > > nested template or function calls. The stylesheet > may be > > looping. at > > > > xsl:call-template name="sch-check:strip-strings" > > > > > > > > > > (file:///C:/Program%20Files%20(x86)/BaseX/repo/http-github.com-Schematron-schematron-basex-1.2/content/iso-schematron/iso_dsdl_include.xsl#1409) > > > > > > > > > > > > it looks like basex schematron pacakge throwing the > error > > to run > > > schematron > > > > validation. > > > > can anyone suggest how can i resolve this errors. > > > > > > > > Regards > > > > Dharmendra Kumar Singh > > > > -- next part -- > > > > An HTML attachment was scrubbed... > > > > URL: > > > > > > <http://mailman.uni-konstanz.de/pipermail/basex-talk/attachments/20180720/3801dbc8/attachment-0001.html> > > > > > > > > > > > -- > > Gerrit Imsieke > > Geschäftsführer / Managing Director > > le-tex publishing services GmbH > > Weissenfelser Str. 84, 04229 Leipzig, Germany > > Phone +49 341 355356 110, Fax +49 341 355356 510 > > gerrit.imsi...@le-tex.de <mailto:gerrit.ims
Re: [basex-talk] Schematron package error
I’m afraid we cannot help you without seeing the actual Schematron file that you are trying to compile/apply. On 22.07.2018 19:59, DK Singh wrote: Thank U Andy for your response, I have tried but it is giving schematron compilation error, but when I validate on Oxygen editor xmls got validated, as github documentation I am doing first schematron compilation then validating the XML, SO how can I resolve this error Now On Sun 22 Jul, 2018, 9:39 PM James Ball, <mailto:m...@jamesball.co.uk>> wrote: Hello Dharmendra, Have you made sure that the Schematron is compiled before using it to validate? I think this is the error you get if you try to use an un-compiled Schematron file to perform a validation. The necessary steps are outlined with the module documentation on GitHub and I had it working successfully just a week ago. Regards, James > Date: Fri, 20 Jul 2018 17:07:30 +0530 > From: DK Singh mailto:dharam.m...@gmail.com>> > To: BaseX mailto:basex-talk@mailman.uni-konstanz.de>> > Subject: [basex-talk] Schematron package error > Message-ID: > mailto:twju9kw...@mail.gmail.com>> > Content-Type: text/plain; charset="utf-8" > > Hi All, > > I am doing the schematron validation against XML docuemnt but i am getting > these errors. > > Bad name element: XPath error. No XPath. Bad name element: XPath error. No > XPath. Error on line 1409 column 61 of iso_dsdl_include.xsl: Too many > nested template or function calls. The stylesheet may be looping. at > xsl:call-template name="sch-check:strip-strings" > (file:///C:/Program%20Files%20(x86)/BaseX/repo/http-github.com-Schematron-schematron-basex-1.2/content/iso-schematron/iso_dsdl_include.xsl#1409) > > > it looks like basex schematron pacakge throwing the error to run schematron > validation. > can anyone suggest how can i resolve this errors. > > Regards > Dharmendra Kumar Singh > -- next part -- > An HTML attachment was scrubbed... > URL: <http://mailman.uni-konstanz.de/pipermail/basex-talk/attachments/20180720/3801dbc8/attachment-0001.html> > -- Gerrit Imsieke Geschäftsführer / Managing Director le-tex publishing services GmbH Weissenfelser Str. 84, 04229 Leipzig, Germany Phone +49 341 355356 110, Fax +49 341 355356 510 gerrit.imsi...@le-tex.de, http://www.le-tex.de Registergericht / Commercial Register: Amtsgericht Leipzig Registernummer / Registration Number: HRB 24930 Geschäftsführer / Managing Directors: Gerrit Imsieke, Svea Jelonek, Thomas Schmidt
Re: [basex-talk] Schematron package error
Thank U Andy for your response, I have tried but it is giving schematron compilation error, but when I validate on Oxygen editor xmls got validated, as github documentation I am doing first schematron compilation then validating the XML, SO how can I resolve this error Now On Sun 22 Jul, 2018, 9:39 PM James Ball, wrote: > Hello Dharmendra, > > Have you made sure that the Schematron is compiled before using it to > validate? I think this is the error you get if you try to use an > un-compiled Schematron file to perform a validation. > > The necessary steps are outlined with the module documentation on GitHub > and I had it working successfully just a week ago. > > Regards, James > > > Date: Fri, 20 Jul 2018 17:07:30 +0530 > > From: DK Singh > > To: BaseX > > Subject: [basex-talk] Schematron package error > > Message-ID: > >twju9kw...@mail.gmail.com> > > Content-Type: text/plain; charset="utf-8" > > > > Hi All, > > > > I am doing the schematron validation against XML docuemnt but i am > getting > > these errors. > > > > Bad name element: XPath error. No XPath. Bad name element: XPath error. > No > > XPath. Error on line 1409 column 61 of iso_dsdl_include.xsl: Too many > > nested template or function calls. The stylesheet may be looping. at > > xsl:call-template name="sch-check:strip-strings" > > > (file:///C:/Program%20Files%20(x86)/BaseX/repo/http-github.com-Schematron-schematron-basex-1.2/content/iso-schematron/iso_dsdl_include.xsl#1409) > > > > > > it looks like basex schematron pacakge throwing the error to run > schematron > > validation. > > can anyone suggest how can i resolve this errors. > > > > Regards > > Dharmendra Kumar Singh > > -- next part -- > > An HTML attachment was scrubbed... > > URL: < > http://mailman.uni-konstanz.de/pipermail/basex-talk/attachments/20180720/3801dbc8/attachment-0001.html > > > > > >
Re: [basex-talk] Schematron package error
Hi DK, This runs ok for me.. import module namespace schematron = " http://github.com/Schematron/schematron-basex";; let $sch := schematron:compile(doc(' https://raw.githubusercontent.com/apb2006/vue-poc/master/src/vue-poc/static/resources/schematron/ark.sch' )) let $xml := fn:doc(' https://raw.githubusercontent.com/apb2006/vue-poc/master/src/vue-poc/static/resources/schematron/ark.xml ') let $validation := schematron:validate($xml, $sch) return $validation Maybe there is an issue with your source files? Regards /Andy On 20 July 2018 at 13:25, DK Singh wrote: > HI Christial, > > i am doing validation like this: > > import module namespace schematron = "http://github.com/Schematron/ > schematron-basex"; > > let $sch := schematron:compile(doc('D:\2018\schemas\docbook-mods.sch')) > let $xml := fn:doc('D:\2018\InthisIssue66.xml') > let $validation := schematron:validate($xml, $sch) > > return $validation > > > > then it is giving thease kind of errors. > > Error: > Stopped at C:/Program Files (x86)/BaseX/repo/http-github. > com-Schematron-schematron-basex-1.2/content/schematron.xqm, 39/31: > [bxerr:BXSL0001] Bad name element: XPath error. No XPath. > Bad name element: XPath error. No XPath. > Bad name element: XPath error. No XPath. > Error on line 1409 column 61 of iso_dsdl_include.xsl: > Too many nested template or function calls. The stylesheet may be > looping. > at xsl:call-template name="sch-check:strip-strings" > (file:///C:/Program%20Files%20(x86)/BaseX/repo/http-github.com-Schematron- > schematron-basex-1.2/content/iso-schematron/iso_dsdl_include.xsl#1409) > at xsl:call-template name="sch-check:strip-strings" > (file:///C:/Program%20Files%20(x86)/BaseX/repo/http-github.com-Schematron- > schematron-basex-1.2/content/iso-schematron/iso_dsdl_include.xsl#1409) > at xsl:call-template name="sch-check:strip-strings" > (file:///C:/Program%20Files%20(x86)/BaseX/repo/http-github.com-Schematron- > schematron-basex-1.2/content/iso-schematron/iso_dsdl_include.xsl#1409) > at xsl:call-template name="sch-check:strip-strings" > (file:///C:/Program%20Files%20(x86)/BaseX/repo/http-github.com-Schematron- > schematron-basex-1.2/content/iso-schematron/iso_dsdl_include.xsl#1409) > at xsl:call-template name="sch-check:strip-strings" > (file:///C:/Program%20Files%20(x86)/BaseX/repo/http-github.com-Schematron- > schematron-basex-1.2/content/iso-schematron/iso_dsdl_include.xsl#1409) > > Regards > Dharmendra Kumar Singh > > > > > On Fri, Jul 20, 2018 at 5:12 PM Christian Grün > wrote: > >> As usual, send us a little reproducible example. Thanks. >> >> DK Singh schrieb am Fr., 20. Juli 2018, 13:39: >> >>> Hi All, >>> >>> I am doing the schematron validation against XML docuemnt but i am >>> getting these errors. >>> >>> Bad name element: XPath error. No XPath. Bad name element: XPath error. >>> No XPath. Error on line 1409 column 61 of iso_dsdl_include.xsl: Too many >>> nested template or function calls. The stylesheet may be looping. at >>> xsl:call-template name="sch-check:strip-strings" >>> (file:///C:/Program%20Files%20(x86)/BaseX/repo/http- >>> github.com-Schematron-schematron-basex-1.2/content/ >>> iso-schematron/iso_dsdl_include.xsl#1409) >>> >>> it looks like basex schematron pacakge throwing the error to run >>> schematron validation. >>> can anyone suggest how can i resolve this errors. >>> >>> Regards >>> Dharmendra Kumar Singh >>> >>
Re: [basex-talk] Schematron package error
HI Christial, i am doing validation like this: import module namespace schematron = " http://github.com/Schematron/schematron-basex";; let $sch := schematron:compile(doc('D:\2018\schemas\docbook-mods.sch')) let $xml := fn:doc('D:\2018\InthisIssue66.xml') let $validation := schematron:validate($xml, $sch) return $validation then it is giving thease kind of errors. Error: Stopped at C:/Program Files (x86)/BaseX/repo/http-github.com-Schematron-schematron-basex-1.2/content/schematron.xqm, 39/31: [bxerr:BXSL0001] Bad name element: XPath error. No XPath. Bad name element: XPath error. No XPath. Bad name element: XPath error. No XPath. Error on line 1409 column 61 of iso_dsdl_include.xsl: Too many nested template or function calls. The stylesheet may be looping. at xsl:call-template name="sch-check:strip-strings" (file:///C:/Program%20Files%20(x86)/BaseX/repo/http-github.com-Schematron-schematron-basex-1.2/content/iso-schematron/iso_dsdl_include.xsl#1409) at xsl:call-template name="sch-check:strip-strings" (file:///C:/Program%20Files%20(x86)/BaseX/repo/http-github.com-Schematron-schematron-basex-1.2/content/iso-schematron/iso_dsdl_include.xsl#1409) at xsl:call-template name="sch-check:strip-strings" (file:///C:/Program%20Files%20(x86)/BaseX/repo/http-github.com-Schematron-schematron-basex-1.2/content/iso-schematron/iso_dsdl_include.xsl#1409) at xsl:call-template name="sch-check:strip-strings" (file:///C:/Program%20Files%20(x86)/BaseX/repo/http-github.com-Schematron-schematron-basex-1.2/content/iso-schematron/iso_dsdl_include.xsl#1409) at xsl:call-template name="sch-check:strip-strings" (file:///C:/Program%20Files%20(x86)/BaseX/repo/http-github.com-Schematron-schematron-basex-1.2/content/iso-schematron/iso_dsdl_include.xsl#1409) Regards Dharmendra Kumar Singh On Fri, Jul 20, 2018 at 5:12 PM Christian Grün wrote: > As usual, send us a little reproducible example. Thanks. > > DK Singh schrieb am Fr., 20. Juli 2018, 13:39: > >> Hi All, >> >> I am doing the schematron validation against XML docuemnt but i am >> getting these errors. >> >> Bad name element: XPath error. No XPath. Bad name element: XPath error. >> No XPath. Error on line 1409 column 61 of iso_dsdl_include.xsl: Too many >> nested template or function calls. The stylesheet may be looping. at >> xsl:call-template name="sch-check:strip-strings" >> (file:///C:/Program%20Files%20(x86)/BaseX/repo/http-github.com-Schematron-schematron-basex-1.2/content/iso-schematron/iso_dsdl_include.xsl#1409) >> >> >> it looks like basex schematron pacakge throwing the error to run >> schematron validation. >> can anyone suggest how can i resolve this errors. >> >> Regards >> Dharmendra Kumar Singh >> >
Re: [basex-talk] Schematron package error
As usual, send us a little reproducible example. Thanks. DK Singh schrieb am Fr., 20. Juli 2018, 13:39: > Hi All, > > I am doing the schematron validation against XML docuemnt but i am getting > these errors. > > Bad name element: XPath error. No XPath. Bad name element: XPath error. No > XPath. Error on line 1409 column 61 of iso_dsdl_include.xsl: Too many > nested template or function calls. The stylesheet may be looping. at > xsl:call-template name="sch-check:strip-strings" > (file:///C:/Program%20Files%20(x86)/BaseX/repo/http-github.com-Schematron-schematron-basex-1.2/content/iso-schematron/iso_dsdl_include.xsl#1409) > > > it looks like basex schematron pacakge throwing the error to run > schematron validation. > can anyone suggest how can i resolve this errors. > > Regards > Dharmendra Kumar Singh >
[basex-talk] Schematron package error
Hi All, I am doing the schematron validation against XML docuemnt but i am getting these errors. Bad name element: XPath error. No XPath. Bad name element: XPath error. No XPath. Error on line 1409 column 61 of iso_dsdl_include.xsl: Too many nested template or function calls. The stylesheet may be looping. at xsl:call-template name="sch-check:strip-strings" (file:///C:/Program%20Files%20(x86)/BaseX/repo/http-github.com-Schematron-schematron-basex-1.2/content/iso-schematron/iso_dsdl_include.xsl#1409) it looks like basex schematron pacakge throwing the error to run schematron validation. can anyone suggest how can i resolve this errors. Regards Dharmendra Kumar Singh