Last change
on this file since 17017 was 17017, checked in by max, 16 years ago |
Move the HTML skeleton from style.xsl to the current XSL file.
|
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
1.3 KB
|
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 | extension-element-prefixes="java">
|
---|
6 |
|
---|
7 | <!-- style includes global params interface_name, library_name -->
|
---|
8 | <xsl:include href="style.xsl"/>
|
---|
9 |
|
---|
10 | <!-- the main page layout template is here -->
|
---|
11 | <xsl:template match="page">
|
---|
12 | <html>
|
---|
13 | <head>
|
---|
14 | <title>
|
---|
15 | <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title-->
|
---|
16 | <xsl:call-template name="pageTitle"/><xsl:text> </xsl:text>
|
---|
17 | </title>
|
---|
18 | <xsl:call-template name="globalStyle"/>
|
---|
19 | <xsl:call-template name="pageStyle"/>
|
---|
20 | </head>
|
---|
21 | <body>
|
---|
22 | <div id="globalwrapper">
|
---|
23 | <xsl:call-template name="response" />
|
---|
24 | <xsl:call-template name="greenstoneFooter"/>
|
---|
25 | </div>
|
---|
26 | </body>
|
---|
27 | </html>
|
---|
28 | </xsl:template>
|
---|
29 |
|
---|
30 | <xsl:template name="pageTitle">
|
---|
31 | <xsl:value-of select="java:org.greenstone.gsdl3.util.XSLTUtil.getInterfaceText($interface_name, /page/@lang, 'gsdl')"/>
|
---|
32 | </xsl:template>
|
---|
33 |
|
---|
34 | <!-- page specific style goes here -->
|
---|
35 | <xsl:template name="pageStyle"/>
|
---|
36 |
|
---|
37 | <xsl:template match="pageResponse">
|
---|
38 | <xsl:value-of select="status"/>
|
---|
39 | </xsl:template>
|
---|
40 |
|
---|
41 | </xsl:stylesheet> |
---|
Note:
See
TracBrowser
for help on using the repository browser.