root/main/trunk/greenstone3/web/interfaces/oran/transform/pages/debuginfo.xsl @ 25457

Revision 25457, 1.7 KB (checked in by ak19, 8 years ago)

If we append debuginfo=on or true or 1 to the greenstone URL, then we get a debuginfo button which, when clicked, will display the debuginfo.xsl page. This page specifies the various greenstone3 debug URL suffixes such as o=xml and formatedit=on.

Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<xsl:stylesheet version="1.0"
3    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4    xmlns:java="http://xml.apache.org/xslt/java"
5    xmlns:util="xalan://org.greenstone.gsdl3.util.XSLTUtil"
6    xmlns:gslib="http://www.greenstone.org/skinning"
7    extension-element-prefixes="java util"
8    exclude-result-prefixes="java util">
9
10    <!-- use the 'main' layout -->
11    <xsl:include href="layouts/main.xsl"/>
12
13    <!-- set page title -->
14    <xsl:template name="pageTitle"><gslib:collectionName/></xsl:template>
15
16    <!-- set page breadcrumbs -->
17    <xsl:template name="breadcrumbs"><gslib:siteLink/><gslib:rightArrow/></xsl:template>
18
19    <!-- the page content -->
20    <xsl:template match="/page">
21      <p><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'debuginfo.usage')"/></p>
22
23      <dl>
24        <dt>o=xml</dt>
25        <dd><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'debuginfo.xml')"/></dd>
26        <dt>o=xmlfinal</dt>
27        <dd><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'debuginfo.xmlfinal')"/></dd>
28        <dt>o=skindoc</dt>
29        <dd><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'debuginfo.skindoc')"/></dd>
30        <dt>o=skinandlib</dt>
31        <dd><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'debuginfo.skinandlib')"/></dd>
32        <dt>o=skinandlibdoc</dt>
33        <dd><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'debuginfo.skinandlibdoc')"/></dd>
34        <dt>formatedit=on</dt>
35        <dd><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'debuginfo.formatedit')"/></dd>
36      </dl>   
37
38    </xsl:template>
39
40
41</xsl:stylesheet> 
42
Note: See TracBrowser for help on using the browser.