1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/mathml/operatorDictionary.xsl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,76 @@ 1.4 +<!-- -*- Mode: nXML; tab-width: 2; indent-tabs-mode: nil; -*- --> 1.5 +<!-- This Source Code Form is subject to the terms of the Mozilla Public 1.6 + - License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> 1.8 +<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 1.9 + 1.10 + <xsl:strip-space elements="*"/> 1.11 + 1.12 + <xsl:template match="charlist"> 1.13 + <root><xsl:apply-templates select="character"/></root> 1.14 + </xsl:template> 1.15 + 1.16 + <xsl:template match="character"> 1.17 + <xsl:if test="operator-dictionary"> 1.18 + <xsl:for-each select="operator-dictionary"> 1.19 + <entry> 1.20 + 1.21 + <xsl:attribute name="unicode"> 1.22 + <xsl:value-of select="../@id"/> 1.23 + </xsl:attribute> 1.24 + 1.25 + <xsl:attribute name="form"> 1.26 + <xsl:value-of select="@form"/> 1.27 + </xsl:attribute> 1.28 + 1.29 + <!-- begin operator-dictionary --> 1.30 + <xsl:if test="@lspace"> 1.31 + <xsl:attribute name="lspace"> 1.32 + <xsl:value-of select="@lspace"/> 1.33 + </xsl:attribute> 1.34 + </xsl:if> 1.35 + <xsl:if test="@rspace"> 1.36 + <xsl:attribute name="rspace"> 1.37 + <xsl:value-of select="@rspace"/> 1.38 + </xsl:attribute> 1.39 + </xsl:if> 1.40 + <xsl:if test="@minsize"> 1.41 + <xsl:attribute name="minsize"> 1.42 + <xsl:value-of select="@minsize"/> 1.43 + </xsl:attribute> 1.44 + </xsl:if> 1.45 + <xsl:if test="@*[.='true']"> 1.46 + <xsl:attribute name="properties"> 1.47 + <!-- largeop, movablelimits, stretchy, separator, accent, fence, 1.48 + symmetric --> 1.49 + <xsl:for-each select="@*[.='true']"> 1.50 + <xsl:value-of select="name()"/> 1.51 + <xsl:text> </xsl:text> 1.52 + </xsl:for-each> 1.53 + <xsl:if test="../unicodedata/@mirror = 'Y'"> 1.54 + <xsl:text>mirrorable </xsl:text> 1.55 + </xsl:if> 1.56 + </xsl:attribute> 1.57 + </xsl:if> 1.58 + <xsl:if test="@priority"> 1.59 + <xsl:attribute name="priority"> 1.60 + <xsl:value-of select="@priority"/> 1.61 + </xsl:attribute> 1.62 + </xsl:if> 1.63 + <xsl:if test="@linebreakstyle"> 1.64 + <xsl:attribute name="linebreakstyle"> 1.65 + <xsl:value-of select="@linebreakstyle"/> 1.66 + </xsl:attribute> 1.67 + </xsl:if> 1.68 + <!-- end operator-dictionary --> 1.69 + 1.70 + <xsl:attribute name="description"> 1.71 + <xsl:value-of select="../description"/> 1.72 + </xsl:attribute> 1.73 + 1.74 + </entry> 1.75 + </xsl:for-each> 1.76 + </xsl:if> 1.77 + </xsl:template> 1.78 + 1.79 +</xsl:stylesheet>