phax / ph-schematron

Java Schematron library that supports XSLT and native application
Apache License 2.0
110 stars 36 forks source link

doc or document feature request #41

Closed jkiddo closed 7 years ago

jkiddo commented 7 years ago

Is there any chance that the issue listed here (https://saxonica.plan.io/issues/3213?pn=1#change-8364) could be fixed in this framework, by replacing 'document' to 'doc' when doing pure SVRL validation - perhaps as a configuration parameter?

phax commented 7 years ago

Reminder to myself: http://stackoverflow.com/questions/37359555/what-is-the-difference-of-document-and-fndoc-in-xslt

phax commented 7 years ago

@jkiddo Can you please paste an example Schematron - I'm currently short on time :) Thanks

ahenket commented 7 years ago

<assert role="error" see="http://lpr-art-decor.westeurope.cloudapp.azure.com:8080/art-decor/decor-templates--lpr-?id=1.2.208.176.7.1.10.107" test="count(hl7:administrativeGenderCode[concat(@code,@codeSystem)=document('include/voc-2.16.840.1.113883.1.11.1-DYNAMIC.xml')//valueSet[1]/conceptList/concept/concat(@code,@codeSystem)][not(@nullFlavor)])&gt;=1">(DKAlternativelyIdentifiedPatientRole): element hl7:administrativeGenderCode[concat(@code,@codeSystem)=document('include/voc-2.16.840.1.113883.1.11.1-DYNAMIC.xml')//valueSet[1]/conceptList/concept/concat(@code,@codeSystem)][not(@nullFlavor)] is mandatory [min 1x].</assert>

phax commented 7 years ago

So by switching from "Pure" to "SCH" implementation this can be resolved.