Last change
on this file since 30131 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
|
Rev | Line | |
---|
[7536] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[12724] | 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"
|
---|
[28529] | 5 | xmlns:dict="http://xml.apache.org/xalan/java/Dictionary"
|
---|
| 6 | exclude-result-prefixes="java dict">
|
---|
[7536] | 7 |
|
---|
| 8 | <xsl:output method="text" encoding="UTF-8"/>
|
---|
| 9 |
|
---|
[28529] | 10 | <!--<xsl:variable name="diction" select="java:Dictionary.new('en')"/>-->
|
---|
| 11 | <xsl:variable name="diction" select="dict:new('en')"/>
|
---|
[12724] | 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 |
|
---|
[12738] | 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 |
|
---|
[12724] | 22 | </xsl:stylesheet>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.