Project

General

Profile

« Previous | Next » 

Revision 1731

Added by Jing Tao over 21 years ago

Make the tree sturcture display working.

View differences:

lib/style/eml2/eml-additionalmetadata-2.0.0.xsl
41 41
    <right>
42 42
      <h3>Additional Metadata</h3>
43 43
    </right>
44
    <pre>
45
    <xsl:text>additionalMetadata&#xA;</xsl:text>
44 46
    <xsl:apply-templates mode="ascii-art" />
47
    </pre>
45 48
</xsl:template>
46 49

  
47 50
<xsl:template match="*" mode="ascii-art">
......
91 94

  
92 95
<xsl:template name="ascii-art-hierarchy">
93 96
    <xsl:for-each select="ancestor::*">
94
        <xsl:choose>
97
      <xsl:choose>
98
        <xsl:when test="local-name()!='additionalMetadata'">
99
          <xsl:choose>
95 100
            <xsl:when test="following-sibling::node()">  |   </xsl:when>
96 101
            <xsl:otherwise><xsl:text>      </xsl:text></xsl:otherwise>
97
        </xsl:choose>
102
          </xsl:choose>
103
        </xsl:when>
104
      </xsl:choose>
98 105
    </xsl:for-each>
99 106
    <xsl:choose>
100 107
        <xsl:when test="parent::node() and ../child::node()">  |</xsl:when>

Also available in: Unified diff