FHIR Chat · onGenerate.qa.xslt contains ambiguous rules · IG creation

Stream: IG creation

Topic: onGenerate.qa.xslt contains ambiguous rules


view this post on Zulip Alexander Henket (Feb 07 2020 at 04:26):

     [xslt] : Error! Ambiguous rule match for /ImplementationGuide/definition[1]/resource[122]
     [xslt] Matches both "f:definition/f:resource[not(f:description)]" on line 20 of file:/Users/ahenket/Development/GitHub/Nictiz/sample-ig-master/template/scripts/onGenerate.qa.xslt
     [xslt] and "f:definition/f:resource[not(f:name)]" on line 12 of file:/Users/ahenket/Development/GitHub/Nictiz/sample-ig-master/template/scripts/onGenerate.qa.xslt

I get a lot of these upon run. A simple tweak in the xslt could remedy this but the xslt gets refreshed every run. Fix could look like:

<xsl:template match="f:definition/f:resource">
  <xsl:if test="not(f:name)">
        ...
  </xsl:if>
  <xsl:if test="not(f:description)">
        ...
  </xsl:if>
</xsl:template>

view this post on Zulip Grahame Grieve (Feb 07 2020 at 04:27):

@Lloyd McKenzie

view this post on Zulip Lloyd McKenzie (Feb 07 2020 at 06:12):

Fix already made. It will be pushed in the next release


Last updated: Apr 12 2022 at 19:14 UTC