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
7 src/gromacs/analysisdata/tests/refdata/
8 and use the src/testutils/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:import href="common-referencedata.xsl"/>
15 <xsl:template match="AnalysisData">
16 <xsl:variable name="has-datasetspec"
17 select="DataFrame/DataValues/Int[@Name='DataSet']"/>
18 <xsl:variable name="has-columnspec"
19 select="DataFrame/DataValues/Int[@Name='FirstColumn']"/>
24 <xsl:if test="$has-datasetspec">
27 <xsl:if test="$has-columnspec">
32 <xsl:for-each select="DataFrame/DataValues">
34 <td><xsl:value-of select="../@Name"/></td>
35 <td><xsl:value-of select="../Real[@Name='X']"/></td>
36 <xsl:if test="$has-datasetspec">
37 <td><xsl:value-of select="Int[@Name='DataSet']"/></td>
39 <xsl:if test="$has-columnspec">
42 <xsl:when test="Int[@Name='FirstColumn']">
43 <xsl:value-of select="Int[@Name='FirstColumn']"/>
44 <xsl:text>-</xsl:text>
45 <xsl:value-of select="Int[@Name='LastColumn']"/>
47 <xsl:otherwise>all</xsl:otherwise>
51 <td><xsl:call-template name="SequenceAsCSV"/></td>
57 <xsl:template match="DataValue[Bool[@Name='Present']='false']">
59 <xsl:value-of select="Real[@Name='Value']"/>
60 <xsl:if test="Real[@Name='Error']">
61 ± <xsl:value-of select="Real[@Name='Error']"/>
65 <xsl:template match="DataValue">
66 <xsl:value-of select="Real[@Name='Value']"/>
67 <xsl:if test="Real[@Name='Error']">
68 ± <xsl:value-of select="Real[@Name='Error']"/>