1
|
<!--
|
2
|
* eml-variable-sort.xsl
|
3
|
*
|
4
|
* Authors: Matt Jones
|
5
|
* Copyright: 2000 Regents of the University of California and the
|
6
|
* National Center for Ecological Analysis and Synthesis
|
7
|
* For Details: http://www.nceas.ucsb.edu/
|
8
|
* Created: 2000 April 5
|
9
|
* File Info: '$Id: eml-variable-sort.xsl 39 2000-04-14 03:06:55Z jones $'
|
10
|
*
|
11
|
* This is an XSLT (http://www.w3.org/TR/xslt) stylesheet designed to
|
12
|
* convert an XML file that is valid with respect to the eml-variable.dtd
|
13
|
* module of the Ecological Metadata Language (EML) into an HTML format
|
14
|
* suitable for rendering with modern web browsers. It implements the sorting
|
15
|
* routines for this function.
|
16
|
*
|
17
|
*** ***
|
18
|
*** WARNING: THIS stylesheet was written for an early version if Internet ***
|
19
|
*** Explorer 5, and DOES NOT COMPLY with the W3C XSLT standard. ***
|
20
|
*** ***
|
21
|
-->
|
22
|
<xsl:template xmlns:xsl="http://www.w3.org/TR/WD-xsl">
|
23
|
<xsl:apply-templates select="eml_variable">
|
24
|
<xsl:template><xsl:copy><xsl:apply-templates select="@*"/><xsl:apply-templates/></xsl:copy></xsl:template>
|
25
|
<xsl:template match="eml_variable"><xsl:copy><xsl:apply-templates select="@*"/><xsl:apply-templates select="variable" order-by="variable_name"/></xsl:copy></xsl:template>
|
26
|
</xsl:apply-templates>
|
27
|
</xsl:template>
|