Last change
on this file since 32206 was 12738, checked in by kjdon, 18 years ago |
added Reference template
|
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
874 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 | exclude-result-prefixes="java">
|
---|
6 |
|
---|
7 | <xsl:output method="text" encoding="UTF-8"/>
|
---|
8 |
|
---|
9 | <xsl:variable name="diction" select="java:Dictionary.new('en')"/>
|
---|
10 |
|
---|
11 | <xsl:template match="AutoText">
|
---|
12 | <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>
|
---|
13 | </xsl:template>
|
---|
14 |
|
---|
15 | <xsl:template match="Reference">
|
---|
16 | <xsl:variable name="target" select="@target"/>
|
---|
17 | <xsl:text>"</xsl:text><xsl:value-of select="/Document//Section[@name=$target]/Title/Text"/><xsl:text>"</xsl:text>
|
---|
18 | </xsl:template>
|
---|
19 |
|
---|
20 | </xsl:stylesheet>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.