PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT
ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW
AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE
DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL
BE LOST SOMEWHERE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3403

*** shadow/3403 Tue Sep  4 07:18:49 2001
--- shadow/3403.tmp.22582       Tue Sep  4 07:18:49 2001
***************
*** 0 ****
--- 1,115 ----
+ +============================================================================+
+ | xsltc fails conf test mdocs16 runtime error null                           |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 3403                        Product: XalanJ2                 |
+ |       Status: NEW                         Version: 2.0.0                   |
+ |   Resolution:                            Platform: Sun                     |
+ |     Severity: Normal                   OS/Version: Solaris                 |
+ |     Priority: Other                     Component: org.apache.xalan.xsltc  |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: [EMAIL PROTECTED]                                     |
+ |  Reported By: [EMAIL PROTECTED]                                          |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ Expected Output
+ ---------------
+ <?xml version="1.0" encoding="UTF-8"?>
+ <out>
+ <key>TableofContents</key>
+ <lang>en</lang>
+ <var>Table of Contents</var>
+ <text>Table of Contents</text>
+ </out>
+ 
+ 
+ 
+ Obtained Output
+ ---------------
+ 
+ Runtime Error: null
+ 
+ mdocs16.xsl
+ -----------
+ <?xml version="1.0"?>
+ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
+                 version="1.0">
+ 
+   <!-- FileName: mdocsXXX -->
+   <!-- Document: http://www.w3.org/TR/xslt -->
+   <!-- DocVersion: 19991116 -->
+   <!-- Section: 12.1 -->
+   <!-- Purpose: Compare two evaluation sequences for variable containing
+     node-set returned from document() call. -->
+   <!-- Author: Norm Walsh -->
+ 
+ <xsl:output method="xml" indent="yes"/>
+ 
+ <xsl:param name="terms" select="document('terms.xml')"/>
+ 
+ <xsl:template match="/">
+ <out>
+   <xsl:call-template name="gentext">
+     <xsl:with-param name="key" select="'TableofContents'"/>
+     <xsl:with-param name="lang" select="'en'"/>
+   </xsl:call-template>
+ </out>
+ </xsl:template>
+ 
+ <xsl:template name="gentext">
+   <xsl:param name="key" select="local-name(.)"/>
+   <xsl:param name="lang" select="FOO"/>
+   <xsl:variable name="lookup"
+     select="($terms/table/expand[@language=$lang]/gentext[@key=$key])[1]"/>
+   <xsl:variable name="l10n.name" select="$lookup/@text"/>
+   <xsl:element name="key"><xsl:value-of select="$key"/></xsl:element>
+   <xsl:element name="lang"><xsl:value-of select="$lang"/></xsl:element>
+   <xsl:element name="var"><xsl:value-of select="$l10n.name"/></xsl:element>
+   <xsl:element name="text"><xsl:value-of select="$lookup/@text"/></xsl:element>
+ </xsl:template>
+ 
+ terms.xml
+ ---------
+ <?xml version='1.0'?>
+ <table>
+ <expand>
+   <gentext key="TableofContents" text="TOC"/>
+   <gentext key="tableofcontents" text="TOC"/>
+ </expand>
+ <expand language="en">
+   <gentext key="Abstract" text="Abstract"/>
+   <gentext key="abstract" text="Abstract"/>
+   <gentext key="Bibliography" text="Bibliography"/>
+   <gentext key="bibliography" text="Bibliography"/>
+   <gentext key="Book" text="Book"/>
+   <gentext key="book" text="Book"/>
+   <gentext key="Chapter" text="Chapter"/>
+   <gentext key="Figure" text="Figure"/>
+   <gentext key="figure" text="Figure"/>
+   <gentext key="Index" text="Index"/>
+   <gentext key="index" text="Index"/>
+   <gentext key="LegalNotice" text="Legal Notice"/>
+   <gentext key="legalnotice" text="Legal Notice"/>
+   <gentext key="Preface" text="Preface"/>
+   <gentext key="preface" text="Preface"/>
+   <gentext key="Section" text="Section"/>
+   <gentext key="Table" text="Table"/>
+   <gentext key="table" text="Table"/>
+   <gentext key="chapter" text="chapter"/>
+   <gentext key="section" text="Section"/>
+   <gentext key="TableofContents" text="Table of Contents"/>
+   <gentext key="tableofcontents" text="Table of Contents"/>
+ </expand>
+ <expand language="FOO">
+   <gentext key="TableofContents" text="Tableaux du Content"/>
+   <gentext key="tableofcontents" text="Tableaux du Content"/>
+ </expand>
+ </table>
+ 
+ mdocs16.xml
+ -----------
+ <?xml version="1.0"?> 
+ <doc>
+ </doc>

Reply via email to