Skip to content

Commit

Permalink
Now including docs for elements included in metaschemas via import fr…
Browse files Browse the repository at this point in the history
…om other metaschemas (35 new files) usnistgov#286 usnistgov#314
  • Loading branch information
wendellpiez committed Feb 21, 2019
1 parent 2119c7d commit ca654c2
Show file tree
Hide file tree
Showing 71 changed files with 5,265 additions and 2,364 deletions.
36 changes: 18 additions & 18 deletions build/metaschema/lib/metaschema-common-html.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -100,33 +100,33 @@
</xsl:template>

<xsl:template match="*" mode="serialize">


<xsl:call-template name="indent-for-pre"/>
<code class="tag">&lt;<xsl:value-of select="local-name(.)"/>
<xsl:for-each select="@*">
<xsl:text> </xsl:text>
<xsl:value-of select="local-name()"/>
<xsl:text>="</xsl:text>
<xsl:value-of select="."/>
<xsl:text>"</xsl:text>
</xsl:for-each>
<xsl:text>&gt;</xsl:text>
</code>

<xsl:text>&lt;</xsl:text>
<xsl:value-of select="local-name(.)"/>
<xsl:for-each select="@*">
<xsl:text> </xsl:text>
<xsl:value-of select="local-name()"/>
<xsl:text>="</xsl:text>
<xsl:value-of select="."/>
<xsl:text>"</xsl:text>
</xsl:for-each>
<xsl:text>&gt;</xsl:text>

<xsl:apply-templates mode="serialize">
<xsl:with-param name="hot" select="boolean(text()[normalize-space(.)])"/>
</xsl:apply-templates>

<xsl:if test="not(text()[normalize-space(.)])">
<xsl:call-template name="indent-for-pre">
<xsl:with-param name="endtag" select="true()"/>
</xsl:call-template>
</xsl:if>
<code class="tag">&lt;/<xsl:value-of select="local-name(.)"/>
<xsl:text>&gt;</xsl:text>
</code>
<xsl:text>&lt;/</xsl:text>
<xsl:value-of select="local-name(.)"/>
<xsl:text>&gt;</xsl:text>
</xsl:template>

<xsl:template name="indent-for-pre">
Expand Down
Loading

0 comments on commit ca654c2

Please sign in to comment.