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 If you modify one of these files, please keep others in sync.
8 <xsl:stylesheet version="1.0"
9 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
11 <xsl:template match="/">
13 <xsl:apply-templates/>
17 <xsl:template match="/ReferenceData">
18 <h1>Test Reference Data</h1>
19 <xsl:apply-templates/>
22 <xsl:template match="Vector">
23 (<xsl:value-of select="*[@Name='X']"/>;
24 <xsl:value-of select="*[@Name='Y']"/>;
25 <xsl:value-of select="*[@Name='Z']"/>)
28 <xsl:template name="SequenceAsHorizontalTable">
29 <xsl:param name="root" select="."/>
31 <tr><th>Count</th><th>Items</th></tr>
33 <td><xsl:value-of select="$root/Int[@Name='Length']"/></td>
35 <xsl:call-template name="SequenceAsCSV">
36 <xsl:with-param name="root" select="$root"/>
43 <xsl:template name="SequenceAsCSV">
44 <xsl:param name="root" select="."/>
45 <xsl:for-each select="$root/*[position() > 1]">
46 <xsl:apply-templates select="."/>
47 <xsl:if test="position() < last()">, </xsl:if>
51 <xsl:template name="Bool">
52 <xsl:value-of select="."/>
55 <xsl:template name="String">
56 <xsl:value-of select="."/>
59 <xsl:template name="Int">
60 <xsl:value-of select="."/>
63 <xsl:template name="Real">
64 <xsl:value-of select="."/>