<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml"/>
<xsl:template match="/dataset">
<destinations>
<!-- Forward mamms to cloud -->
<xsl:if test="normalize-space(attr[@tag='00080016'])='1.2.840.10008.5.1.4.1.1.1.2'">
<destination aet="TO_SRCLOUD"/>
</xsl:if>
</destinations>
</xsl:template>
</xsl:stylesheet>
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml"/>
<xsl:template match="/dataset">
<destinations>
<!-- Forward mamms to cloud -->
<xsl:if test="attr[@tag='00080016']='1.2.840.10008.5.1.4.1.1.1.2'">
<destination aet="TO_SRCLOUD"/>
</xsl:if>
</destinations>
</xsl:template>
</xsl:stylesheet>
2017-09-18 12:02:39,083 INFO -> (Thread-65) [org.dcm4chex.archive.mbean.TemplatesService] Compiling Stylesheet /purview/dcm4chee-2.18.1-mysql/server/default/conf/dcm4chee-ae/forward.xsl
2017-09-18 12:02:39,086 ERROR -> (Thread-65) [STDERR] Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized.
Hello,I've tried both of the following as forward.xsl
Enter code here...<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml"/>
<xsl:template match="/dataset">
<destinations>
<!-- Forward mamms to cloud -->
<xsl:if test="normalize-space(attr[@tag='00080016'])='1.2.840.10008.5.1.4.1.1.1.2'">
<destination aet="TO_SRCLOUD"/>
</xsl:if>
</destinations>
</xsl:template>
</xsl:stylesheet>
and
Enter <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml"/>
<xsl:template match="/dataset">
<destinations>
<!-- Forward mamms to cloud -->
<xsl:if test="attr[@tag='00080016']='1.2.840.10008.5.1.4.1.1.1.2'">
<destination aet="TO_SRCLOUD"/>
</xsl:if>
</destinations>
</xsl:template>
</xsl:stylesheet>
And neither seem to work.
In server.log, I see:
Enter code here...2017-09-18 12:02:39,083 INFO -> (Thread-65) [org.dcm4chex.archive.mbean.TemplatesService] Compiling Stylesheet /purview/dcm4chee-2.18.1-mysql/server/default/conf/dcm4chee-ae/forward.xsl
2017-09-18 12:02:39,086 ERROR -> (Thread-65) [STDERR] Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized.
1. Is the ERROR directly related to the reading of the XML file?