- Timestamp:
- 2008-08-27T16:28:23+12:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
greenstone3/trunk/web/interfaces/default/transform/document.xsl
r14578 r17017 8 8 exclude-result-prefixes="java util gsf"> 9 9 10 <!-- style includes global params interface_name, library_name --> 10 11 <xsl:include href="style.xsl"/> 11 12 <xsl:include href="service-params.xsl"/> … … 13 14 14 15 <xsl:output method="html"/> 16 17 <!-- the main page layout template is here --> 18 <xsl:template match="page"> 19 <xsl:variable name="bookswitch"><xsl:value-of select="/page/pageRequest/paramList/param[@name='book']/@value"/></xsl:variable> 20 <xsl:variable name="a"><xsl:value-of select="/page/pageRequest/paramList/param[@name='a']/@value"/></xsl:variable> 21 22 <xsl:choose> 23 <xsl:when test="$bookswitch = 'flashxml' and $a = 'd'"> 24 <html> 25 <xsl:call-template name="response" /> 26 </html> 27 </xsl:when> 28 29 <xsl:otherwise> 30 <html> 31 <head> 32 <title> 33 <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title--> 34 <xsl:call-template name="pageTitle"/><xsl:text> </xsl:text> 35 </title> 36 <xsl:call-template name="globalStyle"/> 37 <xsl:call-template name="pageStyle"/> 38 </head> 39 <body> 40 <div id="globalwrapper"> 41 <xsl:call-template name="response" /> 42 <xsl:call-template name="greenstoneFooter"/> 43 </div> 44 </body> 45 </html> 46 </xsl:otherwise> 47 </xsl:choose> 48 </xsl:template> 49 50 15 51 <xsl:variable name="berrybasketswitch"><xsl:value-of select="/page/pageRequest/paramList/param[@name='berrybasket']/@value"/></xsl:variable> 16 52 <xsl:variable name="bookswitch"><xsl:value-of select="/page/pageRequest/paramList/param[@name='book']/@value"/></xsl:variable>
Note:
See TracChangeset
for help on using the changeset viewer.