Changeset 36287 for main/trunk/greenstone3/web/interfaces/default/transform
- Timestamp:
- 2022-07-04T16:32:02+12:00 (22 months ago)
- Location:
- main/trunk/greenstone3/web/interfaces/default/transform
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/web/interfaces/default/transform/gslib.xsl
r36112 r36287 608 608 The actual solution is here: 609 609 https://stackoverflow.com/questions/19998180/xsl-copy-nodes-without-xmlns 610 - Close but adds namespac s to the first HTML tag:610 - Close but adds namespaces to the first HTML tag: 611 611 https://stackoverflow.com/questions/6199345/how-to-copy-all-child-nodes-of-any-type-of-a-template-context-element 612 612 Other links that are a learning experience: -
main/trunk/greenstone3/web/interfaces/default/transform/pages/document.xsl
r36050 r36287 646 646 </xsl:text> 647 647 </script> 648 < div id="image{@nodeID}">648 <gsf:div id="image{@nodeID}"> 649 649 <!-- when we ask for an individual section content we set ed=1. putting this test here prevents downloading all the screen and full images for each section of the document when we are just looking at the contents list. ed is not set for simple docs, so do this if doctype is simple --> 650 650 <xsl:if test="/page/pageResponse/document[@docType='simple'] or /page/pageRequest/paramList/param[@name = 'ed']/@value='1'"> … … 689 689 </script> 690 690 </xsl:if> 691 </ div>691 </gsf:div> 692 692 </xsl:when> 693 693 <xsl:otherwise> 694 < div id="image{@nodeID}">694 <gsf:div id="image{@nodeID}"> 695 695 <xsl:attribute name="style"> 696 696 <xsl:choose> … … 704 704 </xsl:attribute> 705 705 <xsl:call-template name="sectionImage"/><xsl:text> </xsl:text> 706 </ div>706 </gsf:div> 707 707 </xsl:otherwise> 708 708 </xsl:choose>
Note:
See TracChangeset
for help on using the changeset viewer.