mirror of
https://gitlab.gnome.org/GNOME/libxslt
synced 2025-09-17 03:22:14 +03:00
tests especially on sorting - test/xsltutils.c: oops multiple sorts was actually broken !!! this should fix it Daniel
21 lines
520 B
XML
21 lines
520 B
XML
<?xml version='1.0'?>
|
|
|
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
|
|
<xsl:output method="xml" indent="yes"/>
|
|
<xsl:template match="/">
|
|
<indexdoc>
|
|
<xsl:apply-templates select="//indexterm">
|
|
<xsl:sort data-type="text" select="primary"/>
|
|
<xsl:sort data-type="text" select="secondary"/>
|
|
</xsl:apply-templates>
|
|
</indexdoc>
|
|
</xsl:template>
|
|
|
|
|
|
<xsl:template match="indexterm">
|
|
<term><xsl:value-of select="primary"/>:<xsl:value-of select="secondary"/></term>
|
|
</xsl:template>
|
|
|
|
|
|
</xsl:stylesheet>
|