1 <?xml version="1.0" encoding="UTF-8"?>
3 <xsl:stylesheet version="1.0"
4 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
5 xmlns:ld="http://lambdadelta.info/"
6 xmlns="http://www.w3.org/1999/xhtml"
9 <xsl:template match="ld:ebnf">
10 <span class="emph ebnf">
11 <xsl:apply-templates/>
15 <xsl:template match="ld:prod">
16 <xsl:text><</xsl:text>
17 <xsl:value-of select="@of"/>
18 <xsl:text>></xsl:text>
19 <xsl:call-template name="sp"/>
22 <xsl:template match="ld:def">
23 <xsl:text>=</xsl:text>
24 <xsl:call-template name="sp"/>
27 <xsl:template match="ld:str">
28 <xsl:text>"</xsl:text>
29 <xsl:value-of select="@of"/>
30 <xsl:text>"</xsl:text>
31 <xsl:call-template name="sp"/>
34 <xsl:template match="ld:chr">
35 <xsl:text>'</xsl:text>
36 <xsl:value-of select="@of"/>
37 <xsl:text>'</xsl:text>
38 <xsl:call-template name="sp"/>
41 <xsl:template match="ld:or">
42 <xsl:text>|</xsl:text>
43 <xsl:call-template name="sp"/>
46 <xsl:template match="ld:etc">
47 <xsl:text>...</xsl:text>
48 <xsl:call-template name="sp"/>
51 <xsl:template match="ld:open">
52 <xsl:text>(</xsl:text>
53 <xsl:call-template name="sp"/>
56 <xsl:template match="ld:close">
57 <xsl:text>)</xsl:text>
58 <xsl:call-template name="sp"/>
61 <xsl:template match="ld:star">
62 <xsl:text>*</xsl:text>
63 <xsl:call-template name="sp"/>
66 <xsl:template match="ld:plus">
67 <xsl:text>+</xsl:text>
68 <xsl:call-template name="sp"/>
71 <xsl:template match="ld:stop">
72 <xsl:text>;</xsl:text>
73 <xsl:call-template name="sp"/>