3 <xsl:stylesheet version="1.0"
4 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
6 <xsl:import href="common-referencedata.xsl"/>
8 <xsl:key name="SelectionName" match="ParsedSelections/ParsedSelection" use="@Name"/>
10 <xsl:template match="ParsedSelections">
11 <h2>Parsed Selections</h2>
20 <xsl:for-each select="*">
22 <td><xsl:value-of select="@Name"/></td>
23 <td><xsl:value-of select="String[@Name='Input']"/></td>
24 <td><xsl:value-of select="String[@Name='Name']"/></td>
25 <td><xsl:value-of select="String[@Name='Text']"/></td>
26 <td><xsl:value-of select="Bool[@Name='Dynamic']"/></td>
32 <xsl:template match="CompiledSelections">
33 <h2>Compiled Selections</h2>
34 <xsl:apply-templates />
37 <xsl:template match="EvaluatedSelections">
38 <h2>Evaluated for <xsl:value-of select="@Name"/></h2>
39 <xsl:apply-templates />
42 <xsl:template match="Selection">
43 <h3><xsl:value-of select="@Name"/></h3>
46 <xsl:value-of select="key('SelectionName', @Name)/String[@Name='Text']"/>
48 <xsl:apply-templates />
51 <xsl:template match="Selection/Sequence[@Name='Atoms']">
54 <xsl:call-template name="SequenceAsHorizontalTable"/>
58 <xsl:template match="Selection/Sequence[@Name='Positions']">
60 Positions (count: <xsl:value-of select="Int[@Name='Length']"/>):
63 <xsl:if test="Position/Sequence[@Name='Atoms']">
67 <xsl:if test="Position/Int[@Name='RefId']">
71 <xsl:if test="Position/Vector[@Name='Coordinates']">
74 <xsl:if test="Position/Real[@Name='Mass']">
77 <xsl:if test="Position/Real[@Name='Charge']">
81 <xsl:for-each select="Position">
83 <xsl:if test="Sequence[@Name='Atoms']">
84 <td><xsl:value-of select="Sequence[@Name='Atoms']/Int[@Name='Length']"/></td>
86 <xsl:call-template name="SequenceAsCSV">
87 <xsl:with-param name="root" select="Sequence[@Name='Atoms']"/>
91 <xsl:if test="Int[@Name='RefId']">
92 <td><xsl:value-of select="Int[@Name='RefId']"/></td>
93 <td><xsl:value-of select="Int[@Name='MappedId']"/></td>
95 <xsl:if test="Vector[@Name='Coordinates']">
97 <xsl:apply-templates select="Vector[@Name='Coordinates']"/>
100 <xsl:if test="Real[@Name='Mass']">
101 <td><xsl:value-of select="Real[@Name='Mass']"/></td>
103 <xsl:if test="Real[@Name='Charge']">
104 <td><xsl:value-of select="Real[@Name='Charge']"/></td>