Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change: GMP doc: add boxes around command structures #2214

Merged
merged 3 commits into from
Jun 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions src/schema_formats/HTML/HTML.xsl
Original file line number Diff line number Diff line change
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
Loading