Skip to content

Commit

Permalink
Merge branch 'main' into mv-vars
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmundell authored Jun 4, 2024
2 parents 37e671f + f834093 commit 6110bc0
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/schema_formats/HTML/HTML.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

<xsl:apply-templates select="description"/>

<details>
<details open="">
<xsl:call-template name="details-summary-4">
<xsl:with-param name="text" select="concat($index, '.1 RNC')"/>
</xsl:call-template>
Expand Down Expand Up @@ -427,7 +427,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<xsl:with-param name="text" select="concat($index, '.1 Structure')"/>
</xsl:call-template>

<ul style="list-style: none">
<ul style="list-style: none; padding-left: 10px;">
<li>
<xsl:call-template name="command-structure"/>
</li>
Expand Down Expand Up @@ -656,11 +656,14 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</xsl:template>

<xsl:template name="command-structure">
<ul style="list-style: none">
<ul style="list-style: none; border: 1px solid #F5F5F5; border-radius: 4px; margin-left: 2%; padding: 10px; background: #F5F5F5;">
<xsl:choose>
<xsl:when test="(count(pattern/*) = 0) and (string-length(normalize-space(pattern)) = 0)">
<i>Empty single element.</i>
</xsl:when>
<xsl:when test="(count(pattern/*) = 0)">
<xsl:value-of select="pattern"/>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="command" select="."/>
<xsl:for-each select="pattern/*">
Expand Down Expand Up @@ -693,11 +696,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

<ul style="list-style: none">
<li>
<i>Command</i>
<div style="padding-bottom: 5px;"><i>Command</i></div>
<xsl:call-template name="command-structure"/>
</li>
<li style="margin-top: 15px;">
<i>Response</i>
<div style="padding-bottom: 5px;"><i>Response</i></div>
<xsl:for-each select="response">
<xsl:call-template name="command-structure"/>
</xsl:for-each>
Expand Down

0 comments on commit 6110bc0

Please sign in to comment.