HL7 / ig-template-base

Base IG template managed by HL7 but usable by anyone (no logos). The foundation for most HL7-published IGs
14 stars 27 forks source link

Possible XSLT bug in Xalan #207

Closed vassilpeytchev closed 1 year ago

vassilpeytchev commented 1 year ago

The following definition on line 7 in onLoad.xslt may be enountering this unresolved bug in Xalan:

 <xsl:variable name="addResources">
    <xsl:variable name="autoload">
      <xsl:call-template name="getParameter">
        <xsl:with-param name="name">autoload-resources</xsl:with-param>
      </xsl:call-template>
    </xsl:variable>
    <xsl:if test="not(/f:ImplementationGuide/f:definition/f:resource or f:ImplementationGuide/f:extension[@url=$spreadsheetExt]) or not($autoload='false')">true</xsl:if>
  </xsl:variable>

Changing it as follows seems to work around that bug:

<xsl:variable name="autoload">
      <xsl:call-template name="getParameter">
        <xsl:with-param name="name">autoload-resources</xsl:with-param>
      </xsl:call-template>
    </xsl:variable>
  <xsl:variable name="addResources">
    <xsl:if test="not(/f:ImplementationGuide/f:definition/f:resource or f:ImplementationGuide/f:extension[@url=$spreadsheetExt]) or not($autoload='false')">true</xsl:if>
  </xsl:variable>
lmckenzi commented 1 year ago

Committed