Using DEBUGGING tags to debug xslt transformation in HealthShare
I am having a difficult time trying to get DEBUGGING tags working in my xslt transform.
Here are snippets of the xslt I am using:
namespace declaration:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:isc="http://extension-functions.intersystems.com" xmlns:hl7="urn:hl7-org:v3" xmlns:sdtc="urn:hl7-org:sdtc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:exsl="http://exslt.org/common" exclude-result-prefixes="isc hl7 sdtc xsi xsl">
template:
<xsl:template match="hl7:representedOrganization/hl7:id" mode="CHRISTUSPreProcessor">
<xsl:copy>
<xsl:attribute name="root"><xsl:value-of select="$facilityOid"/></xsl:attribute>
<xsl:apply-templates select="@*[not(local-name() = 'root') and not(local-name() = 'extension') ]" mode="CHRISTUSPreProcessor"/>
<xsl:apply-templates select="node()" mode="CHRISTUSPreProcessor"/>
</xsl:copy>
<DEBUGGING-PATHVALUE>
xxxxxxx
</DEBUGGING-PATHVALUE>
</xsl:template>
Here is a snippet of the xml that I am running the code against:
<representedOrganization>
<id root="2.16.840.1.113883.3.6706.2.2.8.1.1.1.16384"/>
I believe the xslt should match the given xml, but I am not seeing anything in the resulting transformation. I put literal 'xxxxxxx' as the contents of the <DEBUGGING-PATHVALUE> . I expected to see an error or at least find my xxxxxxx in the transformation but I don't see anything in the tranformation that indicates the debugging had any affect. Can anyone provide any ideas on what I might do? Thanks!
Are you adding this to an XSLT that comes with HealthShare? Our transforms sometimes tidy up the output, so may remove things you don't expect them to remove.
Thanks David, It is a custom transform. However, I can't rule out that we may have some ISC code in place that tidy's things looped into ours. Do you know what I might check for?
If you wrote the transform, then you presumably know what it does. Our transforms have a Canonicalize template. But, I don't think we should be removing an element. My guess is your template isn't really being called.