Bug 1226301. Remove Shumway from b2gdroid nightly builds. r=fabrice
[gecko.git] / layout / mathml / operatorDictionary.xsl
blob702b230ee1c09520d89138342a401d4ad8d403af
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="@minsize">
38 <xsl:attribute name="minsize">
39 <xsl:value-of select="@minsize"/>
40 </xsl:attribute>
41 </xsl:if>
42 <xsl:if test="@*[.='true']">
43 <xsl:attribute name="properties">
44 <!-- largeop, movablelimits, stretchy, separator, accent, fence,
45 symmetric -->
46 <xsl:for-each select="@*[.='true']">
47 <xsl:value-of select="name()"/>
48 <xsl:text> </xsl:text>
49 </xsl:for-each>
50 <xsl:if test="../unicodedata/@mirror = 'Y'">
51 <xsl:text>mirrorable </xsl:text>
52 </xsl:if>
53 </xsl:attribute>
54 </xsl:if>
55 <xsl:if test="@priority">
56 <xsl:attribute name="priority">
57 <xsl:value-of select="@priority"/>
58 </xsl:attribute>
59 </xsl:if>
60 <xsl:if test="@linebreakstyle">
61 <xsl:attribute name="linebreakstyle">
62 <xsl:value-of select="@linebreakstyle"/>
63 </xsl:attribute>
64 </xsl:if>
65 <!-- end operator-dictionary -->
67 <xsl:attribute name="description">
68 <xsl:value-of select="../description"/>
69 </xsl:attribute>
71 </entry>
72 </xsl:for-each>
73 </xsl:if>
74 </xsl:template>
76 </xsl:stylesheet>