Skip to content

Commit

Permalink
fixed '#/' url bug by making all model instances internal. Also began…
Browse files Browse the repository at this point in the history
… phasing out use of xmltask Ant task
  • Loading branch information
Joshua Lubell committed Jan 29, 2021
1 parent de74396 commit 18b205b
Show file tree
Hide file tree
Showing 4 changed files with 156 additions and 103 deletions.
19 changes: 9 additions & 10 deletions bt/bt-model/stylesheet.xsl
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<!-- $Id: stylesheet.xsl,v 1.12 2015/01/09 15:17:16 lubell Exp $-->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:output indent="yes" method="text"/>
Expand All @@ -8,7 +7,7 @@
</xsl:template>

<xsl:template match="@*">
<xsl:text> </xsl:text>
<xsl:value-of select="' '"/>
<xsl:value-of select="name()"/>
<xsl:text>="</xsl:text>
<xsl:value-of select="."/>
Expand Down Expand Up @@ -66,13 +65,13 @@

<xsl:template match="enhancement" priority="1">
<xsl:if test="impact[@value &lt; '4']">
<xsl:text> </xsl:text>
<xsl:value-of select="' '"/>
<xsl:text>&lt;enhancement</xsl:text>
<xsl:apply-templates select="@*"/>
<xsl:text>&gt;
</xsl:text>
<xsl:apply-templates/>
<xsl:text> </xsl:text>
<xsl:value-of select="' '"/>
<xsl:text>&lt;/enhancement</xsl:text>
<xsl:text>&gt;
</xsl:text>
Expand All @@ -81,9 +80,9 @@

<xsl:template match="*">
<xsl:if test="ancestor::tailoredControl">
<xsl:text> </xsl:text>
<xsl:value-of select="' '"/>
<xsl:if test="ancestor::control or ancestor::enhancement">
<xsl:text> </xsl:text>
<xsl:value-of select="' '"/>
</xsl:if>
</xsl:if>
<xsl:text>&lt;</xsl:text>
Expand All @@ -95,9 +94,9 @@

<xsl:template match="*[text() and not(comment() | processing-instruction())]">
<xsl:if test="ancestor::tailoredControl">
<xsl:text> </xsl:text>
<xsl:value-of select="' '"/>
<xsl:if test="ancestor::control or ancestor::enhancement">
<xsl:text> </xsl:text>
<xsl:value-of select="' '"/>
</xsl:if>
</xsl:if>
<xsl:text>&lt;</xsl:text>
Expand All @@ -113,7 +112,7 @@

<xsl:template match="*[*]">
<xsl:if test="ancestor::tailoredControl">
<xsl:text> </xsl:text>
<xsl:value-of select="' '"/>
</xsl:if>
<xsl:text>&lt;</xsl:text>
<xsl:value-of select="name()"/>
Expand All @@ -122,7 +121,7 @@
</xsl:text>
<xsl:apply-templates/>
<xsl:if test="ancestor::tailoredControl">
<xsl:text> </xsl:text>
<xsl:value-of select="' '"/>
</xsl:if>
<xsl:text>&lt;/</xsl:text>
<xsl:value-of select="name()"/>
Expand Down
Loading

0 comments on commit 18b205b

Please sign in to comment.