Source code

Revision control

Copy as Markdown

Other Tools

<!-- -*- Mode: nXML; tab-width: 2; indent-tabs-mode: nil; -*- -->
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at -->
<xsl:stylesheet version="1.0" xmlns:xsl="">
<xsl:strip-space elements="*"/>
<xsl:template match="charlist">
<root><xsl:apply-templates select="character"/></root>
<xsl:template match="character">
<xsl:if test="operator-dictionary">
<xsl:for-each select="operator-dictionary">
<xsl:attribute name="unicode">
<xsl:value-of select="../@id"/>
<xsl:attribute name="form">
<xsl:value-of select="@form"/>
<!-- begin operator-dictionary -->
<xsl:if test="@lspace">
<xsl:attribute name="lspace">
<xsl:value-of select="@lspace"/>
<xsl:if test="@rspace">
<xsl:attribute name="rspace">
<xsl:value-of select="@rspace"/>
<xsl:if test="@*[.='true']">
<xsl:attribute name="properties">
<!-- largeop, movablelimits, stretchy, separator, fence,
symmetric -->
<xsl:for-each select="@*[.='true']">
<xsl:value-of select="name()"/>
<xsl:text> </xsl:text>
<!-- end operator-dictionary -->
<xsl:attribute name="description">
<xsl:value-of select="../description"/>