Last change
on this file since 32313 was 28529, checked in by kjdon, 11 years ago |
made same change here as for gsn-many-html. Haven't tested it.
|
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
1004 bytes
|
Line | |
---|
1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
2 | <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
---|
3 | xmlns:java="http://xml.apache.org/xalan/java"
|
---|
4 | extension-element-prefixes="java"
|
---|
5 | xmlns:dict="http://xml.apache.org/xalan/java/Dictionary"
|
---|
6 | exclude-result-prefixes="java dict">
|
---|
7 |
|
---|
8 | <xsl:output method="text" encoding="UTF-8"/>
|
---|
9 |
|
---|
10 | <!--<xsl:variable name="diction" select="java:Dictionary.new('en')"/>-->
|
---|
11 | <xsl:variable name="diction" select="dict:new('en')"/>
|
---|
12 |
|
---|
13 | <xsl:template match="AutoText">
|
---|
14 | <xsl:text>"</xsl:text><xsl:choose><xsl:when test="@key"><xsl:value-of select="java:get($diction, @key, @args)"/></xsl:when><xsl:otherwise><xsl:value-of select="@text"/></xsl:otherwise></xsl:choose><xsl:text>"</xsl:text>
|
---|
15 | </xsl:template>
|
---|
16 |
|
---|
17 | <xsl:template match="Reference">
|
---|
18 | <xsl:variable name="target" select="@target"/>
|
---|
19 | <xsl:text>"</xsl:text><xsl:value-of select="/Document//Section[@name=$target]/Title/Text"/><xsl:text>"</xsl:text>
|
---|
20 | </xsl:template>
|
---|
21 |
|
---|
22 | </xsl:stylesheet>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.