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>
13 <xsl:template match=
"character">
14 <xsl:if test=
"operator-dictionary">
15 <xsl:for-each select=
"operator-dictionary">
18 <xsl:attribute name=
"unicode">
19 <xsl:value-of select=
"../@id"/>
22 <xsl:attribute name=
"form">
23 <xsl:value-of select=
"@form"/>
26 <!-- begin operator-dictionary -->
27 <xsl:if test=
"@lspace">
28 <xsl:attribute name=
"lspace">
29 <xsl:value-of select=
"@lspace"/>
32 <xsl:if test=
"@rspace">
33 <xsl:attribute name=
"rspace">
34 <xsl:value-of select=
"@rspace"/>
37 <xsl:if test=
"@minsize">
38 <xsl:attribute name=
"minsize">
39 <xsl:value-of select=
"@minsize"/>
42 <xsl:if test=
"@*[.='true']">
43 <xsl:attribute name=
"properties">
44 <!-- largeop, movablelimits, stretchy, separator, accent, fence,
46 <xsl:for-each select=
"@*[.='true']">
47 <xsl:value-of select=
"name()"/>
48 <xsl:text> </xsl:text>
50 <xsl:if test=
"../unicodedata/@mirror = 'Y'">
51 <xsl:text>mirrorable
</xsl:text>
55 <xsl:if test=
"@priority">
56 <xsl:attribute name=
"priority">
57 <xsl:value-of select=
"@priority"/>
60 <xsl:if test=
"@linebreakstyle">
61 <xsl:attribute name=
"linebreakstyle">
62 <xsl:value-of select=
"@linebreakstyle"/>
65 <!-- end operator-dictionary -->
67 <xsl:attribute name=
"description">
68 <xsl:value-of select=
"../description"/>