Changeset 25086 for documentation

Show
Ignore:
Timestamp:
14.02.2012 11:59:03 (7 years ago)
Author:
jmt12
Message:

I had to make changes to the way the Xalan Transform Dictionary stuff was loaded (via stylesheet) and how it get initialized and called in the template matches in order to get this to work. May be Java 1.6 specific.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • documentation/trunk/manuals/processing/gen-gli-help-to-manual-chapter.xsl

    r13854 r25086  
    11<?xml version="1.0" encoding="UTF-8"?> 
    22<!--<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:java="java" exclude-result-prefixes="java;glidictionary" xmlns:glidictionary="http://xml.apache.org/xalan/java" extension-element-prefixes="glidictionary">--> 
    3 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:java="http://xml.apache.org/xalan/java" 
    4   extension-element-prefixes="java" exclude-result-prefixes="java"> 
     3<xsl:stylesheet 
     4 version="1.0" 
     5 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
     6 xmlns:dict="http://xml.apache.org/xalan/java/Dictionary" 
     7 exclude-result-prefixes="dict"> 
    58   
    69  <xsl:output method="xml" indent="yes"/> 
     
    3538     
    3639    <xsl:template match="AutoText"> 
    37       <xsl:variable name="diction" select="java:Dictionary.new('en')"/> 
    38       <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> 
     40      <xsl:variable name="diction" select="dict:new('en')"/> 
     41      <xsl:text>"</xsl:text><xsl:choose><xsl:when test="@key"><xsl:value-of select="dict:get($diction, @key, @args)"/></xsl:when><xsl:otherwise><xsl:value-of select="@text"/></xsl:otherwise></xsl:choose><xsl:text>"</xsl:text> 
    3942    </xsl:template> 
    4043