Skip to content

Commit

Permalink
Repaired bug in display of groupable objects in JSON map
Browse files Browse the repository at this point in the history
  • Loading branch information
wendellpiez authored and david-waltermire committed Nov 5, 2019
1 parent 84fc962 commit 7132842
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build/metaschema/lib/metaschema-jsondocs-hugo-uswds.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@
</xsl:template>

<xsl:template match="flag[(@name|@ref)=../json-key/@flag-name]" mode="model">
<xsl:message expand-text="true">{ ../@name }</xsl:message>
<!--<xsl:message expand-text="true">{ ../@name }</xsl:message>-->
<li>
<p>
<i>Implicitly</i>
Expand Down
11 changes: 9 additions & 2 deletions build/metaschema/lib/metaschema-jsonobject-map.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@
</div>
</xsl:template>

<xsl:template match="/" mode="debug">
<xsl:copy-of select="$surrogate-tree"/>
<div class="OM-map">
<xsl:apply-templates select="$surrogate-tree/*" mode="html-render"/>
</div>
</xsl:template>

<xsl:template match="/">
<!--<xsl:copy-of select="$surrogate-tree"/>-->
<div class="OM-map">
Expand All @@ -48,7 +55,7 @@
<xsl:apply-templates select="$html-basic" mode="elaborate"/>
</div>
</xsl:template>

<xsl:template mode="html-render" match="@m:*"/>

<xsl:template mode="html-render" match="m:flag[(@name)= ../@json-key-flag]"/>
Expand Down Expand Up @@ -122,7 +129,7 @@
<p>
<span class="OM-view_switcher"/>
<a class="OM-name" href="{ $path-to-docs }#{ $model-label}_{ @name }">
<xsl:value-of select="@name"/>
<xsl:value-of select="(@group-name,@name)[1]"/>
</a>
<xsl:text>: </xsl:text>
<xsl:call-template name="cardinality-note"/>
Expand Down

0 comments on commit 7132842

Please sign in to comment.