forked from HL7/ig-template-base
-
Notifications
You must be signed in to change notification settings - Fork 0
/
onGenerate.getVersions.xslt
13 lines (13 loc) · 838 Bytes
/
onGenerate.getVersions.xslt
1
2
3
4
5
6
7
8
9
10
11
12
13
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:f="http:https://hl7.org/fhir" xmlns:xsl="http:https://www.w3.org/1999/XSL/Transform">
<xsl:output method="text" encoding="UTF-8"/>
<xsl:template match="f:ImplementationGuide">
<xsl:text>R5=Y
</xsl:text>
<xsl:if test="f:fhirVersion/@value[starts-with(., '4.')]">R4=Y
</xsl:if>
<xsl:if test="f:fhirVersion/@value[starts-with(., '3.')]">R3=Y
</xsl:if>
<xsl:if test="f:fhirVersion/@value[starts-with(., '1.4')]">R2B=Y
</xsl:if>
<xsl:if test="f:fhirVersion/@value[starts-with(., '1.0')]">R2=Y
</xsl:if>
<xsl:value-of select="concat('igVersion=', f:version/@value, '
')"/>
<xsl:if test="f:definition/f:parameter[f:code/@value='globals-in-artifacts']/f:value/@value='true'">globals=Y</xsl:if>
</xsl:template>
</xsl:stylesheet>