forked from trinodb/trino
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsitemap.xslt
More file actions
20 lines (20 loc) · 764 Bytes
/
sitemap.xslt
File metadata and controls
20 lines (20 loc) · 764 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!--
This xslt is used to sort sitemap generated by sphinx to support reproducible builds.
Applied to sitemap.xml by ./docs/build script.
-->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:sm="http://www.sitemaps.org/schemas/sitemap/0.9">
<xsl:template match="sm:urlset">
<xsl:copy>
<xsl:apply-templates select="@*"/>
<xsl:apply-templates select="sm:url">
<xsl:sort select="sm:loc" order="ascending"/>
</xsl:apply-templates>
</xsl:copy>
</xsl:template>
<xsl:template match="@* | node()">
<xsl:copy>
<xsl:apply-templates select="@* | node()"/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>