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:value-of select="@of"/>
17 <xsl:call-template name="sp"/>
20 <xsl:template match="ld:def">
21 <xsl:text>=</xsl:text>
22 <xsl:call-template name="sp"/>
25 <xsl:template match="ld:str1">
26 <xsl:text>"</xsl:text>
27 <xsl:value-of select="@of"/>
28 <xsl:text>"</xsl:text>
29 <xsl:call-template name="sp"/>
32 <xsl:template match="ld:str2">
33 <xsl:text>'</xsl:text>
34 <xsl:value-of select="@of"/>
35 <xsl:text>'</xsl:text>
36 <xsl:call-template name="sp"/>
39 <xsl:template match="ld:xchr">
40 <xsl:text>#</xsl:text>
41 <xsl:value-of select="@of"/>
42 <xsl:call-template name="sp"/>
45 <xsl:template match="ld:and">
46 <xsl:text>,</xsl:text>
47 <xsl:call-template name="sp"/>
50 <xsl:template match="ld:or">
51 <xsl:text>|</xsl:text>
52 <xsl:call-template name="sp"/>
55 <xsl:template match="ld:etc">
56 <xsl:text>|</xsl:text>
57 <xsl:call-template name="sp"/>
58 <xsl:text>...</xsl:text>
59 <xsl:call-template name="sp"/>
60 <xsl:text>|</xsl:text>
61 <xsl:call-template name="sp"/>
64 <xsl:template match="ld:but">
65 <xsl:text>-</xsl:text>
66 <xsl:call-template name="sp"/>
69 <xsl:template match="ld:open">
70 <xsl:text>(</xsl:text>
71 <xsl:call-template name="sp"/>
74 <xsl:template match="ld:close">
75 <xsl:text>)</xsl:text>
76 <xsl:call-template name="sp"/>
79 <xsl:template match="ld:star">
80 <xsl:text>*</xsl:text>
81 <xsl:call-template name="sp"/>
84 <xsl:template match="ld:opt">
85 <xsl:text>*</xsl:text>
86 <xsl:call-template name="sp"/>
87 <xsl:text>1</xsl:text>
88 <xsl:call-template name="sp"/>
91 <xsl:template match="ld:plus">
92 <xsl:text>1</xsl:text>
93 <xsl:call-template name="sp"/>
94 <xsl:text>*</xsl:text>
95 <xsl:call-template name="sp"/>
98 <xsl:template match="ld:spec">
99 <xsl:value-of select="@of"/>
100 <xsl:call-template name="sp"/>
101 <xsl:text>*</xsl:text>
102 <xsl:call-template name="sp"/>
103 <xsl:value-of select="@of"/>
104 <xsl:call-template name="sp"/>
107 <xsl:template match="ld:stop">
108 <xsl:text>;</xsl:text>
109 <xsl:call-template name="sp"/>