Relative Content

Tag Archive for xmlxsltsaxonschematron

custom namespace “localFunction” in Schematron file causes transformation crash

I have a Schematron file (.sch) which contains a namespace like “localFunctions”. It is used for calling a local function in same file. But when I try to make a validation, compiling Schematron file with schxslt (10.1.0) then transforming xml and Schematron with SaxonCS (12.5.0) and it causes an error code with “SXST0001”. When I go deep down to error location and comment out the function calling line, everything works perfect. I have tried to give a namespace like “http://example.com/fct” but nothing changed.

custom namespace “localFunction” in Schematron file causes transformation crash

I have a Schematron file (.sch) which contains a namespace like “localFunctions”. It is used for calling a local function in same file. But when I try to make a validation, compiling Schematron file with schxslt (10.1.0) then transforming xml and Schematron with SaxonCS (12.5.0) and it causes an error code with “SXST0001”. When I go deep down to error location and comment out the function calling line, everything works perfect. I have tried to give a namespace like “http://example.com/fct” but nothing changed.

custom namespace “localFunction” in Schematron file causes transformation crash

I have a Schematron file (.sch) which contains a namespace like “localFunctions”. It is used for calling a local function in same file. But when I try to make a validation, compiling Schematron file with schxslt (10.1.0) then transforming xml and Schematron with SaxonCS (12.5.0) and it causes an error code with “SXST0001”. When I go deep down to error location and comment out the function calling line, everything works perfect. I have tried to give a namespace like “http://example.com/fct” but nothing changed.

Generate a XML from a schematron

I have a use case of generating a correct xml so this can be published to my users as a sample payload.
I want to automate this process.
Unfortunately the only input I have is a schematron file. This schematron is something we do not own. It is a third party file.
But somehow is there a way to infer the xml from the schematron file?
One option I was thinking is to have one base template xml, tun through the schematron and depending upon the errors, add/update/remove new elements from the xml.
But the challenge there is inferring the meaning form the schematron is not reliable.
I don’t know if there are any other approaches here.
Also I don’t know if this problem is solvable.