Skip to content

Commit

Permalink
xslt update based on metanorma/mn-native-pdf@b068fee
Browse files Browse the repository at this point in the history
  • Loading branch information
Intelligent2013 authored Jan 14, 2025
1 parent 4c00c7a commit 8e4ddfc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/isodoc/cc/cc.standard.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -11783,7 +11783,8 @@
<!-- add @id - first element with @id plus '_element_name' -->
<xsl:variable name="prefix_id_" select="(.//*[@id])[1]/@id"/>
<xsl:variable name="prefix_id"><xsl:value-of select="$prefix_id_"/><xsl:if test="normalize-space($prefix_id_) = ''"><xsl:value-of select="generate-id()"/></xsl:if></xsl:variable>
<xsl:attribute name="id"><xsl:value-of select="$prefix_id"/>_<xsl:value-of select="local-name()"/></xsl:attribute>
<xsl:variable name="document_suffix" select="ancestor::*[contains(local-name(), '-standard')]/@document_suffix"/>
<xsl:attribute name="id"><xsl:value-of select="concat($prefix_id, '_', local-name(), '_', $document_suffix)"/></xsl:attribute>
</xsl:if>
</xsl:template>

Expand Down Expand Up @@ -13015,7 +13016,7 @@
</xsl:template>

<xsl:template name="namespaceCheck">
<xsl:variable name="documentNS" select="namespace-uri(/*)"/>
<xsl:variable name="documentNS" select="$namespace_full"/> <!-- namespace-uri(/*) -->
<xsl:variable name="XSLNS">

<xsl:value-of select="document('')//*/namespace::csd"/>
Expand Down Expand Up @@ -13105,6 +13106,9 @@
<xsl:when test="$formatted = 'true' and string-length($bibdata_updated) != ''">
<xsl:apply-templates select="xalan:nodeset($bibdata_updated)//*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
</xsl:when>
<xsl:when test="string-length($bibdata_updated) != ''">
<xsl:value-of select="xalan:nodeset($bibdata_updated)//*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
</xsl:when>
<xsl:when test="$formatted = 'true'">
<xsl:apply-templates select="xalan:nodeset($bibdata)//*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
</xsl:when>
Expand Down

0 comments on commit 8e4ddfc

Please sign in to comment.