root/main/trunk/greenstone3/web/interfaces/basic/transform/text_fragment_format.xsl @ 26346

Revision 26346, 1.3 KB (checked in by kjdon, 8 years ago)

Sam added this to default interface, need it for this one as well

  • Property svn:executable set to *
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:xslt="output.xsl"
5    xmlns:java="http://xml.apache.org/xslt/java"
6    xmlns:gsf="http://www.greenstone.org/greenstone3/schema/ConfigFormat"
7    xmlns:util="xalan://org.greenstone.gsdl3.util.XSLTUtil"
8    extension-element-prefixes="java">
9    <xsl:param name="interface_name"/>
10    <xsl:param name="library_name"/>
11    <xsl:param name="site_name"/>
12    <xsl:param name="collName"/>
13    <xsl:param name="lang"/>
14 
15    <xsl:output method="xml"/>
16    <xsl:namespace-alias stylesheet-prefix="xslt" result-prefix="xsl"/>
17
18    <!-- With gsf:interfaceText, a user can request a string from the interface dictionaries in the current lang -->
19    <xsl:template match="gsf:interfaceText" name="gsf:interfaceText">
20        <xsl:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, $lang, @name)"/>
21    </xsl:template>
22
23    <!-- With gsf:collectionText, a user can request a string from the collection's dictionary in the current lang -->
24    <xsl:template match="gsf:collectionText" name="gsf:collectionText">
25        <xsl:copy-of select="util:getCollectionText($collName, $site_name, $lang, @name, @args)"/>
26    </xsl:template>
27
28    <xsl:template match="*">
29        <xsl:copy>
30        <xsl:copy-of select="@*"/>
31            <xsl:apply-templates/>
32        </xsl:copy>
33    </xsl:template>
34</xsl:stylesheet>
35
36
Note: See TracBrowser for help on using the browser.