layout/mathml/operatorDictionary.xsl

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

michael@0 1 <!-- -*- Mode: nXML; tab-width: 2; indent-tabs-mode: nil; -*- -->
michael@0 2 <!-- This Source Code Form is subject to the terms of the Mozilla Public
michael@0 3 - License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 4 - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
michael@0 5 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
michael@0 6
michael@0 7 <xsl:strip-space elements="*"/>
michael@0 8
michael@0 9 <xsl:template match="charlist">
michael@0 10 <root><xsl:apply-templates select="character"/></root>
michael@0 11 </xsl:template>
michael@0 12
michael@0 13 <xsl:template match="character">
michael@0 14 <xsl:if test="operator-dictionary">
michael@0 15 <xsl:for-each select="operator-dictionary">
michael@0 16 <entry>
michael@0 17
michael@0 18 <xsl:attribute name="unicode">
michael@0 19 <xsl:value-of select="../@id"/>
michael@0 20 </xsl:attribute>
michael@0 21
michael@0 22 <xsl:attribute name="form">
michael@0 23 <xsl:value-of select="@form"/>
michael@0 24 </xsl:attribute>
michael@0 25
michael@0 26 <!-- begin operator-dictionary -->
michael@0 27 <xsl:if test="@lspace">
michael@0 28 <xsl:attribute name="lspace">
michael@0 29 <xsl:value-of select="@lspace"/>
michael@0 30 </xsl:attribute>
michael@0 31 </xsl:if>
michael@0 32 <xsl:if test="@rspace">
michael@0 33 <xsl:attribute name="rspace">
michael@0 34 <xsl:value-of select="@rspace"/>
michael@0 35 </xsl:attribute>
michael@0 36 </xsl:if>
michael@0 37 <xsl:if test="@minsize">
michael@0 38 <xsl:attribute name="minsize">
michael@0 39 <xsl:value-of select="@minsize"/>
michael@0 40 </xsl:attribute>
michael@0 41 </xsl:if>
michael@0 42 <xsl:if test="@*[.='true']">
michael@0 43 <xsl:attribute name="properties">
michael@0 44 <!-- largeop, movablelimits, stretchy, separator, accent, fence,
michael@0 45 symmetric -->
michael@0 46 <xsl:for-each select="@*[.='true']">
michael@0 47 <xsl:value-of select="name()"/>
michael@0 48 <xsl:text> </xsl:text>
michael@0 49 </xsl:for-each>
michael@0 50 <xsl:if test="../unicodedata/@mirror = 'Y'">
michael@0 51 <xsl:text>mirrorable </xsl:text>
michael@0 52 </xsl:if>
michael@0 53 </xsl:attribute>
michael@0 54 </xsl:if>
michael@0 55 <xsl:if test="@priority">
michael@0 56 <xsl:attribute name="priority">
michael@0 57 <xsl:value-of select="@priority"/>
michael@0 58 </xsl:attribute>
michael@0 59 </xsl:if>
michael@0 60 <xsl:if test="@linebreakstyle">
michael@0 61 <xsl:attribute name="linebreakstyle">
michael@0 62 <xsl:value-of select="@linebreakstyle"/>
michael@0 63 </xsl:attribute>
michael@0 64 </xsl:if>
michael@0 65 <!-- end operator-dictionary -->
michael@0 66
michael@0 67 <xsl:attribute name="description">
michael@0 68 <xsl:value-of select="../description"/>
michael@0 69 </xsl:attribute>
michael@0 70
michael@0 71 </entry>
michael@0 72 </xsl:for-each>
michael@0 73 </xsl:if>
michael@0 74 </xsl:template>
michael@0 75
michael@0 76 </xsl:stylesheet>

mercurial