1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
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="use_client_side_xslt"/>
|
---|
13 | <xsl:param name="collName"/>
|
---|
14 | <xsl:param name="lang"/>
|
---|
15 |
|
---|
16 | <xsl:output method="xml"/>
|
---|
17 | <xsl:namespace-alias stylesheet-prefix="xslt" result-prefix="xsl"/>
|
---|
18 |
|
---|
19 | <!-- With gsf:interfaceText, a user can request a string from the interface dictionaries in the current lang. Use attribute propertyFile to change which dictionary file to look in. -->
|
---|
20 | <xsl:template match="gsf:interfaceText" name="gsf:interfaceText">
|
---|
21 | <xsl:choose>
|
---|
22 | <xsl:when test="@propertyFile">
|
---|
23 | <xsl:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, @propertyFile, $lang, @name, '')"/>
|
---|
24 | </xsl:when>
|
---|
25 | <xsl:otherwise>
|
---|
26 | <xsl:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, $lang, @name)"/>
|
---|
27 | </xsl:otherwise>
|
---|
28 | </xsl:choose>
|
---|
29 | </xsl:template>
|
---|
30 |
|
---|
31 | <!-- With gsf:collectionText, a user can request a string from the collection's dictionary in the current lang -->
|
---|
32 | <xsl:template match="gsf:collectionText" name="gsf:collectionText">
|
---|
33 | <xsl:copy-of select="util:getCollectionText($collName, $site_name, $lang, @name, @args)/node()"/>
|
---|
34 | </xsl:template>
|
---|
35 |
|
---|
36 | <xsl:template match="*">
|
---|
37 | <xsl:copy>
|
---|
38 | <xsl:copy-of select="@*"/>
|
---|
39 | <xsl:apply-templates/>
|
---|
40 | </xsl:copy>
|
---|
41 | </xsl:template>
|
---|
42 | </xsl:stylesheet>
|
---|
43 |
|
---|
44 |
|
---|