4 This file is currently duplicated to each directory containing reference data
5 XML files. This is to make it compatible with more browsers.
6 To keep these files in sync, please only modify the version in
8 and use the copy_xsl.sh script to copy it to relevant locations.
10 <xsl:stylesheet version=
"1.0"
11 xmlns:
xsl=
"http://www.w3.org/1999/XSL/Transform">
13 <xsl:template match=
"/">
15 <xsl:apply-templates/>
19 <xsl:template match=
"/ReferenceData">
20 <h1>Test Reference Data
</h1>
21 <xsl:apply-templates/>
24 <xsl:template match=
"Vector">
25 (
<xsl:value-of select=
"*[@Name='X']"/>;
26 <xsl:value-of select=
"*[@Name='Y']"/>;
27 <xsl:value-of select=
"*[@Name='Z']"/>)
30 <xsl:template name=
"SequenceAsHorizontalTable">
31 <xsl:param name=
"root" select=
"."/>
33 <tr><th>Count
</th><th>Items
</th></tr>
35 <td><xsl:value-of select=
"$root/Int[@Name='Length']"/></td>
37 <xsl:call-template name=
"SequenceAsCSV">
38 <xsl:with-param name=
"root" select=
"$root"/>
45 <xsl:template name=
"SequenceAsCSV">
46 <xsl:param name=
"root" select=
"."/>
47 <xsl:for-each select=
"$root/*">
48 <xsl:if test=
"not(.[@Name])">
49 <xsl:apply-templates select=
"."/>
50 <xsl:if test=
"position() < last()">,
</xsl:if>
55 <xsl:template name=
"Bool">
56 <xsl:value-of select=
"."/>
59 <xsl:template name=
"String">
60 <xsl:value-of select=
"."/>
63 <xsl:template name=
"Int">
64 <xsl:value-of select=
"."/>
67 <xsl:template name=
"Real">
68 <xsl:value-of select=
"."/>