Recently upgraded from Saxon HE 9.7-8 to 10.5-he.jar
In one of my XSL file, not able to store the data in a variable when I am running on Jboss server EAP 7.3 and JDK 11 . Where as the same is working when I have tested in command prompt or the debugger tool.
XSL file
We are using the below namespace
<?xml version="1.0" encoding="UTF-8"?>
<xsl:transform version="2.0" xpath-default-namespace="http://hl7.org/fhir"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:f1="urn:hl7-org:v3"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:cda="urn:hl7-org:v3"
xmlns:sdtc="urn:hl7-org:sdtc" xmlns:lookup="http://lookup.data"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
exclude-result-prefixes="fn lookup sdtc xsl cda f1 xsi" xmlns:fn="http://www.w3.org/2005/xpath-functions">
<!--loading the XML file by using the below code. here medicalSystems is a global variable-->
<xsl:variable name="medicalSystems" select="document('medicalsystems.xml')"/>
<!--then we are trying to store the data the variable ms-->
<xsl:param name="this" select="."/>
<xsl:param name="code" select="."/>
<xsl:param name="doc" select="/"/>
<xsl:variable name="ms"
select="$medicalSystems/Bundle/entry/coming/MedicalSystem[url/@value = $this]"/>
XML file content:medicalsystems.xml
<Bundle xmlns="http://hl7.org/fhir">
<entry>
<coming>
<MedicalSystem>
<url value="http://cancer.sanger.ac.uk/"/>
<identifier>
<system value="urn:ietf:rfc:3986"/>
<value value="urn:oid:2.16.840.1.113883.6.283"/>
</identifier>
<name value="COSMIC : Catalogue Of Somatic Mutations In Cancer"/>
</MedicalSystem>
</coming>
</entry>
We have confirmed that the XML is loading properly in the class where as the variable ms is empty when we execute on Jboss. The same piece of code working fine when we are executing with Saxon9.7 version . Any input will be helpful.