source: trunk/gli/help/gen-text.xsl@ 12724

Last change on this file since 12724 was 12724, checked in by kjdon, 18 years ago

added AutoText stuff

  • Property svn:keywords set to Author Date Id Revision
File size: 649 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:stylesheet>
Note: See TracBrowser for help on using the repository browser.