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 <dharam.mahi@gmail.com> 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 <christian.gruen@gmail.com> wrote:
As usual, send us a little reproducible example. Thanks.

DK Singh <dharam.mahi@gmail.com> 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