Skip to content

Commit

Permalink
xslt updated for #1
Browse files Browse the repository at this point in the history
  • Loading branch information
Intelligent2013 committed Nov 7, 2020
1 parent dbd589c commit 03f75f0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/main/resources/stepmod.base_xsl/res_doc/common.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ $Id: common.xsl,v 1.33 2008/05/21 20:50:25 abf Exp $

<xsl:choose>

<xsl:when test="contains($href, concat('/', $current_module, '/'))"><!-- if link inside current module -->
<xsl:when test="contains($href, concat('/', $current_module, '/')) or contains($href, concat('/', $current_module, '#'))"><!-- if link inside current module -->
<xsl:text>&lt;&lt;</xsl:text><xsl:value-of select="substring-after($href,'#')"/><xsl:text>&gt;&gt;</xsl:text>
</xsl:when>

Expand Down
17 changes: 8 additions & 9 deletions src/main/resources/stepmod.base_xsl/res_doc/express_link.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -445,18 +445,17 @@
</xsl:when>
<xsl:otherwise>

<xsl:call-template name="insertHyperlink">
<xsl:call-template name="insertHyperlinkSkip">
<xsl:with-param name="a">
<A HREF="{$express_file_to_ref}"> <!-- #{$xref} -->
<!-- <xsl:value-of select="$schema_name"/> -->
<xsl:if test="$express_file_to_ref != $xref">
<xsl:value-of select="$xref"/>
</xsl:if>

</A>
</A>
</xsl:with-param>
</xsl:call-template>

<xsl:value-of select="$xref"/>

</xsl:otherwise>
</xsl:choose>
Expand All @@ -466,7 +465,7 @@
<!--
Output a HREF for the fundamental concepts.
-->
<xsl:template name="link_fund_cons">
<xsl:template name="link_fund_cons"> <!-- NOT USING -->
<xsl:param name="schema_name"/>
<xsl:param name="clause" select="section"/>

Expand Down Expand Up @@ -516,7 +515,7 @@
<!--
Output a HREF for the fundamental concepts.
-->
<xsl:template name="link_intro">
<xsl:template name="link_intro"> <!-- NOT USING -->
<xsl:param name="schema_name"/>
<xsl:param name="clause" select="section"/>

Expand Down Expand Up @@ -601,14 +600,14 @@
</xsl:call-template>
</xsl:variable>

<xsl:call-template name="insertHyperlink">
<xsl:call-template name="insertHyperlinkSkip">
<xsl:with-param name="a">
<A HREF="{$xref}">
<xsl:value-of select="$lobject_name"/>
</A>
</xsl:with-param>
</xsl:call-template>

<xsl:value-of select="$lobject_name"/>

<!-- debug
<xsl:message>
Expand Down Expand Up @@ -1205,7 +1204,7 @@

<!-- output the object, linked to the integrated resource
-->
<xsl:template name="link_resource_object">
<xsl:template name="link_resource_object"> <!-- NOT USING -->
<xsl:param name="object_name"/>
<!-- make sure that the arguments don't have any whitespace -->
<xsl:variable name="lobject_name"
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/stepmod2mn.adoc.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,8 @@
</xsl:choose>
</xsl:template>

<xsl:template name="insertHyperlinkSkip"/>

<xsl:template match="ExternalDocumentReference" mode="text">
<xsl:text>&lt;&lt;</xsl:text>

Expand Down

0 comments on commit 03f75f0

Please sign in to comment.