1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-08-01 14:06:55 +03:00
Files
libxslt/tests/keys/dates.xsl
Nick Wellnhofer 971d5c4dd1 tests: Port most of the test suite to C
Use runtest.c from libxml2 as a starting point.

This finally allows us to run most of tests with CMake and Autotools
VPATH builds.
2022-09-07 22:18:55 +02:00

20 lines
669 B
XML

<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output indent="no" version="1.0" encoding="iso-8859-1"/>
<xsl:key name="monthlist" match="/list/month" use="./alias"/>
<xsl:template match="month">
<month>
<xsl:variable name="value" select="."/>
<xsl:for-each select="document('month.xml')">
<xsl:value-of select="key('monthlist', $value)/alias[1]"/>
</xsl:for-each>
</month>
</xsl:template>
<xsl:template match="*">
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:apply-templates/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>