Skip to content

Commit

Permalink
improved pretty-printing
Browse files Browse the repository at this point in the history
git-svn-id: https://slps.svn.sourceforge.net/svnroot/slps@904 ab42f6e0-554d-0410-b580-99e487e6eeb2
  • Loading branch information
grammarware committed Dec 12, 2010
1 parent 814e764 commit c24c3bc
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions shared/xsl/bgf2xhtml.xslt
Expand Up @@ -152,9 +152,23 @@
</span> </xsl:template>

<xsl:template match="nonterminal">
<xsl:call-template name="linknt">
<xsl:with-param name="nt" select="."/>
</xsl:call-template>
<xsl:choose>
<xsl:when test=". = 'anyURI'">
<span xmlns="http://www.w3.org/1999/xhtml" class="meta">
<xsl:text>any-uri</xsl:text>
</span>
</xsl:when>
<xsl:when test=". = 'ID'">
<span xmlns="http://www.w3.org/1999/xhtml" class="meta">
<xsl:text>id</xsl:text>
</span>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="linknt">
<xsl:with-param name="nt" select="."/>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:template>

<xsl:template match="selectable">
Expand Down

0 comments on commit c24c3bc

Please sign in to comment.