Ignore:
Timestamp:
2004-11-03T14:31:05+13:00 (19 years ago)
Author:
kjdon
Message:

for simple documents, we don't have internal documentNode element, so changed the documentContent template

File:
1 edited

Legend:

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

    r8006 r8436  
    235235  <!-- default content is to print the title and content of any documentNodes that have nodeContent -->
    236236  <xsl:template name="documentContent">
    237     <xsl:apply-templates select="descendant-or-self::node()/documentNode" mode="content"/>
     237    <xsl:choose>
     238      <xsl:when test="@docType='simple'">
     239    <xsl:apply-templates select="nodeContent"/>
     240      </xsl:when>
     241      <xsl:otherwise>
     242    <xsl:apply-templates select="descendant-or-self::node()/documentNode" mode="content"/>
     243      </xsl:otherwise>
     244    </xsl:choose>
    238245  </xsl:template>
    239246 
Note: See TracChangeset for help on using the changeset viewer.