Skip to content

Commit

Permalink
fixing issue with document function, metanorma/iso-10303#68
Browse files Browse the repository at this point in the history
  • Loading branch information
Intelligent2013 committed Apr 20, 2024
1 parent c60e0ea commit f8ea0f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/resources/stepmod.base_xsl/sect_2_refs.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,7 @@ $Id: sect_2_refs.xsl,v 1.21 2018/08/22 23:06:22 mike Exp $
</xsl:variable>

<xsl:variable name="module_xml" select="concat($module_dir,'/module.xml')"/>
<xsl:variable name="module_xml_document" select="document($module_xml)"/>

<xsl:variable name="module_ok">
<xsl:call-template name="check_module_exists">
Expand All @@ -458,7 +459,7 @@ $Id: sect_2_refs.xsl,v 1.21 2018/08/22 23:06:22 mike Exp $

<xsl:choose>
<xsl:when test="$module_ok='true'">
<xsl:apply-templates select="document($module_xml)" mode="generate_node"/>
<xsl:apply-templates select="$module_xml_document" mode="generate_node"/>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="error_message">
Expand Down

0 comments on commit f8ea0f5

Please sign in to comment.