Changeset 3889


Ignore:
Timestamp:
2003-03-18T13:28:18+12:00 (21 years ago)
Author:
kjdon
Message:

new attribute names

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/interfaces/default/transform/document.xsl

    r3864 r3889  
    6464  </td>
    6565  <td valign="top">
    66     <xsl:apply-templates select="documentNode[@documentID]">
     66    <xsl:apply-templates select="documentNode[@nodeID]">
    6767      <xsl:with-param name="collName" select="$collName"/>
    6868      <xsl:with-param name="depth" select="0"/>
     
    8888      <!-- Display the appropriate image, depending on the node type -->
    8989      <td valign="top">
    90     <a href="{$library}?a=d&amp;c={$collName}&amp;d={@documentID}">
     90    <a><xsl:attribute name="href"><xsl:value-of select='$library'/>?a=d&amp;c=<xsl:value-of select='$collName'/>&amp;d=<xsl:value-of select='@nodeID'/><xsl:if test="documentNode">.pr</xsl:if><xsl:if test="@nodeType='leaf'">&amp;sib=1</xsl:if></xsl:attribute>
    9191      <xsl:apply-templates select="." mode="displayNodeIcon"/>
    9292    </a>
    9393      </td>
    9494
    95       <!-- Display associated title, bolded if the node is selected -->
     95      <!-- Display associated title, bolded if the node has content -->
    9696      <td valign="top">
    9797        <xsl:choose>
    98       <xsl:when test="content">
     98      <xsl:when test="documentNodeContent">
    9999        <b><xsl:value-of select="metadataList/metadata[@name='Title']"/></b>
    100100      </xsl:when>
     
    108108
    109109  <!-- Apply recursively to the children of this node -->
    110   <xsl:apply-templates select="documentNode[@documentID]">
     110  <xsl:apply-templates select="documentNode[@nodeID]">
    111111    <xsl:with-param name="collName" select="$collName"/>
    112112    <xsl:with-param name="depth" select="$depth + 1"/>
Note: See TracChangeset for help on using the changeset viewer.