- Timestamp:
- 2017-07-12T14:27:27+12:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/web/interfaces/default/transform/pages/document.xsl
r31769 r31791 93 93 <br /><br /> 94 94 <div id="text{@nodeID}" class="sectionText"><!-- *** --> 95 <xsl:if test="/page/pageRequest/paramList/param[(@name='docEdit') and (@value='on' or @value='true' or @value='1')]"> 95 <xsl:choose> 96 <xsl:when test="/page/pageRequest/paramList/param[(@name='docEdit') and (@value='on' or @value='true' or @value='1')]"> 96 97 <xsl:attribute name="contenteditable"> 97 98 <xsl:text>true</xsl:text> 98 99 </xsl:attribute> 99 </xsl:if> 100 <xsl:call-template name="documentNodeTextForEditing"/> 101 </xsl:when> 102 <xsl:otherwise> 100 103 <xsl:attribute name="style"> 101 104 <xsl:choose> … … 108 111 </xsl:choose> 109 112 </xsl:attribute> 110 111 113 <xsl:call-template name="documentNodeText"/> 114 115 </xsl:otherwise> 116 </xsl:choose> 112 117 </div> 113 118 </xsl:template> … … 622 627 </xsl:template> 623 628 629 <!-- The default template for displaying the document node text in 630 editing mode --> 631 <!-- equivalent to gsf:text --> 632 <xsl:template name="documentNodeTextForEditing"> 633 <!-- Section text --> 634 <xsl:for-each select="nodeContent"> 635 <xsl:for-each select="node()"> 636 <xsl:choose> 637 <xsl:when test="not(name())"> 638 <xsl:value-of select="." disable-output-escaping="yes"/> 639 </xsl:when> 640 <xsl:otherwise> 641 <xsl:apply-templates/> 642 </xsl:otherwise> 643 </xsl:choose> 644 </xsl:for-each> 645 </xsl:for-each> 646 </xsl:template> 624 647 <!-- Used to produce a version of the page in a format that can be read by the realistic books plugin --> 625 648 <xsl:template name="documentNodeFlashXML">
Note:
See TracChangeset
for help on using the changeset viewer.