emoji-catalog/resources/xslt/emoji.xsl

18 lines
578 B
XML
Raw Normal View History

2019-08-30 22:22:51 +03:00
<?xml version="1.0" encoding="UTF-8"?>
2019-10-02 00:08:31 +03:00
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
2019-08-30 22:22:51 +03:00
<xsl:output method="text" version="2.0" encoding="UTF-8" indent="no"/>
2019-10-02 00:08:31 +03:00
<xsl:include href="./resources/xslt/common.xsl"/>
2019-08-30 22:22:51 +03:00
<xsl:template match="/">
<xsl:for-each select="//table//tr[./td//img]">
2020-10-14 00:58:07 +03:00
<xsl:text>const </xsl:text>
<xsl:call-template name="get-constant-name"/>
2019-08-30 22:22:51 +03:00
<xsl:text> = "</xsl:text>
2019-10-02 00:08:31 +03:00
<xsl:call-template name="get-emoji"/>
2020-10-14 00:58:07 +03:00
<xsl:text>";&#10;</xsl:text>
2019-08-30 22:22:51 +03:00
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>