lib/isodoc/iho/iho.specification.xsl in metanorma-iho-0.1.0 vs lib/isodoc/iho/iho.specification.xsl in metanorma-iho-0.1.1
- old
+ new
@@ -2398,10 +2398,11 @@
<fo:inline padding-right="2mm">
<xsl:attribute name="font-size">11pt</xsl:attribute>
+
<xsl:variable name="title-note">
<xsl:call-template name="getTitle">
<xsl:with-param name="name" select="'title-note'"/>
</xsl:call-template>
</xsl:variable>
@@ -3463,6 +3464,37 @@
<xsl:with-param name="sep" select="$sep"/>
</xsl:call-template>
</xsl:if>
</xsl:template><xsl:template name="getDocumentId">
<xsl:call-template name="getLang"/><xsl:value-of select="//*[local-name() = 'p'][1]/@id"/>
+ </xsl:template><xsl:template name="namespaceCheck">
+ <xsl:variable name="documentNS" select="namespace-uri(/*)"/>
+ <xsl:variable name="XSLNS">
+
+
+
+
+
+
+
+
+
+
+
+ <xsl:value-of select="document('')//*/namespace::iho"/>
+
+
+ </xsl:variable>
+ <xsl:if test="$documentNS != $XSLNS">
+ <xsl:message>[WARNING]: Document namespace: '<xsl:value-of select="$documentNS"/>' doesn't equal to xslt namespace '<xsl:value-of select="$XSLNS"/>'</xsl:message>
+ </xsl:if>
+ </xsl:template><xsl:template name="getLanguage">
+ <xsl:param name="lang"/>
+ <xsl:variable name="language" select="java:toLowerCase(java:java.lang.String.new($lang))"/>
+ <xsl:choose>
+ <xsl:when test="$language = 'en'">English</xsl:when>
+ <xsl:when test="$language = 'fr'">French</xsl:when>
+ <xsl:when test="$language = 'de'">Deutsch</xsl:when>
+ <xsl:when test="$language = 'cn'">Chinese</xsl:when>
+ <xsl:otherwise><xsl:value-of select="$language"/></xsl:otherwise>
+ </xsl:choose>
</xsl:template></xsl:stylesheet>
\ No newline at end of file