- Timestamp:
- 2012-05-31T11:57:46+12:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/web/interfaces/default/transform/pages/document.xsl
r25711 r25720 90 90 <xsl:choose> 91 91 <xsl:when test="not(/page/pageRequest/paramList/param[@name = 'dmd']) or /page/pageRequest/paramList/param[@name = 'dmd']/@value = 'false'"> 92 <xsl:call-template name="sectionTitleFormat"/> <!--<xsl:apply-templates select="." mode="sectionTitleFormat"/>-->92 <xsl:call-template name="sectionTitleFormat"/> 93 93 </xsl:when> 94 94 <xsl:otherwise> 95 <xsl:call-template name="sectionTitle"/> <!--<xsl:apply-templates select="." mode="sectionTitle"/>-->95 <xsl:call-template name="sectionTitle"/> 96 96 </xsl:otherwise> 97 97 </xsl:choose> … … 177 177 </xsl:attribute> 178 178 <!-- Get the section content from the document template --> 179 <xsl:call-template name="documentNodeContent"/> <!--xxx<xsl:apply-templates select="." mode="document"/>-->179 <xsl:call-template name="documentNodeContent"/> 180 180 </div> 181 181 <xsl:if test="documentNode"> … … 242 242 </xsl:when> 243 243 <xsl:when test="$bookswitch = 'flashxml'"> 244 <xsl:call-template name="documentNodeFlashXML"/> <!--xxx<xsl:apply-templates mode="flashxml"/>-->244 <xsl:call-template name="documentNodeFlashXML"/> 245 245 </xsl:when> 246 246 <xsl:when test="$bookswitch = 'on'"> … … 338 338 </td> 339 339 </tr></table> 340 <gslib:langfrag name="dse"/> <!--<xsl:call-template name="document-editor-language-fragments"/>-->340 <gslib:langfrag name="dse"/> 341 341 </xsl:template> 342 342 343 343 <!-- Highlight annotations if requested --> 344 <xsl:template match="annotation">344 <xsl:template name="displayAnnotation"> 345 345 <xsl:choose> 346 <xsl:when test="/page/pageRequest/paramList/param[@name ='hl' and @value='on']">346 <xsl:when test="/page/pageRequest/paramList/param[@name = 'hl']/@value = 'on'"> 347 347 <span class="termHighlight"><xsl:value-of select="."/></span> 348 348 </xsl:when> … … 353 353 </xsl:template> 354 354 355 <xsl:template name="sectionTitleFormat"> <!--xxx<xsl:template match="documentNode" mode="sectionTitleFormat">-->355 <xsl:template name="sectionTitleFormat"> 356 356 <p> 357 357 <xsl:attribute name="class"><xsl:value-of select="util:hashToDepthClass(@nodeID)"/> sectionHeader</xsl:attribute> … … 364 364 </xsl:if> 365 365 <!-- Display the title for the section regardless of whether automatic section numbering is turned on --> 366 <span><xsl:call-template name="sectionTitle"/>< !--xxx<xsl:apply-templates select="." mode="sectionTitle"/>--></span>366 <span><xsl:call-template name="sectionTitle"/></span> 367 367 </p> 368 368 </xsl:template> … … 370 370 371 371 <!-- The default template for displaying section titles --> 372 <xsl:template name="sectionTitle"> <!--xxx<xsl:template match="documentNode" mode="sectionTitle">-->372 <xsl:template name="sectionTitle"> 373 373 <xsl:value-of disable-output-escaping="yes" select="metadataList/metadata[@name = 'Title']"/> 374 374 </xsl:template> … … 439 439 440 440 <!-- The default template for displaying the document content --> 441 <xsl:template name="documentNodeContent"> <!--xxx<xsl:template match="documentNode" mode="document">-->441 <xsl:template name="documentNodeContent"> 442 442 <!-- Hides the "This document has no text." message --> 443 443 <xsl:variable name="noText"><gsf:metadata name="NoText"/></xsl:variable> … … 452 452 </xsl:if> 453 453 </xsl:when> 454 <xsl:when test="name() = 'annotation'"> 455 <xsl:call-template name="displayAnnotation"/> 456 </xsl:when> 457 <xsl:when test="name() = 'nodeContent'"> 458 <xsl:call-template name="documentNodeContent"/> 459 </xsl:when> 454 460 <xsl:otherwise> 455 <xsl:for-each select="nodeContent"><!--xxx<xsl:apply-templates select="."/>--> 456 <xsl:call-template name="documentNodeContent"/> 457 </xsl:for-each> 461 <xsl:apply-templates/> 458 462 </xsl:otherwise> 459 463 </xsl:choose> … … 463 467 464 468 <!-- Used to produce a version of the page in a format that can be read by the realistic books plugin --> 465 <xsl:template name="documentNodeFlashXML"> <!--xxx<xsl:template match="documentNode" mode="flashxml">-->469 <xsl:template name="documentNodeFlashXML"> 466 470 <xsl:text disable-output-escaping="yes"> 467 471 <Section> … … 478 482 479 483 <xsl:for-each select="documentNode"> 480 <xsl:call-template name="documentNodeFlashXML"/> <!--<xsl:apply-templates select="documentNode" mode="flashxml"/>-->484 <xsl:call-template name="documentNodeFlashXML"/> 481 485 </xsl:for-each> 482 486
Note:
See TracChangeset
for help on using the changeset viewer.