Backed out changeset 1d9301697aa0 (bug 1887752) for causing failures on browser_all_f...
[gecko.git] / layout / mathml / operatorDictionary.xsl
blob257a063330e3ff6d2aa8f66cab9e733810dca707
1 <!-- -*- Mode: nXML; tab-width: 2; indent-tabs-mode: nil; -*- -->
2 <!-- This Source Code Form is subject to the terms of the Mozilla Public
3 - License, v. 2.0. If a copy of the MPL was not distributed with this
4 - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
5 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
7 <xsl:strip-space elements="*"/>
9 <xsl:template match="charlist">
10 <root><xsl:apply-templates select="character"/></root>
11 </xsl:template>
13 <xsl:template match="character">
14 <xsl:if test="operator-dictionary">
15 <xsl:for-each select="operator-dictionary">
16 <entry>
18 <xsl:attribute name="unicode">
19 <xsl:value-of select="../@id"/>
20 </xsl:attribute>
22 <xsl:attribute name="form">
23 <xsl:value-of select="@form"/>
24 </xsl:attribute>
26 <!-- begin operator-dictionary -->
27 <xsl:if test="@lspace">
28 <xsl:attribute name="lspace">
29 <xsl:value-of select="@lspace"/>
30 </xsl:attribute>
31 </xsl:if>
32 <xsl:if test="@rspace">
33 <xsl:attribute name="rspace">
34 <xsl:value-of select="@rspace"/>
35 </xsl:attribute>
36 </xsl:if>
37 <xsl:if test="@*[.='true']">
38 <xsl:attribute name="properties">
39 <!-- largeop, movablelimits, stretchy, separator, fence,
40 symmetric -->
41 <xsl:for-each select="@*[.='true']">
42 <xsl:value-of select="name()"/>
43 <xsl:text> </xsl:text>
44 </xsl:for-each>
45 </xsl:attribute>
46 </xsl:if>
47 <!-- end operator-dictionary -->
49 <xsl:attribute name="description">
50 <xsl:value-of select="../description"/>
51 </xsl:attribute>
53 </entry>
54 </xsl:for-each>
55 </xsl:if>
56 </xsl:template>
58 </xsl:stylesheet>