This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
BUG?? - please help
- To: xsl-list at mulberrytech dot com
- Subject: BUG?? - please help
- From: juggy at gmx dot net
- Date: Fri, 2 Jun 2000 22:59:18 +0200
- Reply-To: xsl-list at mulberrytech dot com
Hi there,
I just discovered something that appears to be a nasty bug. I am
using the MSXMLDOM in a ASP to convert XML + XSl to HTML.
But I also tried to call the pure XML file with IE5, and the same
thing happens.
I have the following script in my XSL-File:
<xsl:script language="JavaScript">
<![CDATA[
var anzSpr=2;
var anzSchl=28;
var Deutsch=0;
var Sprache=Deutsch; //Deutsch
var i=0;
lA=new Array(anzSpr);
for (i=0; i<anzSpr; i++) {
lA[i]=new Array(anzSchl);
for (j=0; j<anzSchl; j++)
lA[i][j]=" ";
}
function bez(sprache, id) {
return lA[sprache][id];
}
lA[Deutsch][028] = " Überziehungskredit";
lA[Deutsch][027] = " Restlaufzeit unter 1 Jahr";
lA[Deutsch][026] = " Restlaufzeit über 5 Jahre";
lA[Deutsch][025] = " Verbindl. ggü. Kreditinst.";
lA[Deutsch][024] = "VERBINDLICHKEITEN";
lA[Deutsch][023] = "PENSIONSRÜCKSTELLUNGEN";
lA[Deutsch][022] = " Jahresübersch./-fehlbetrag";
lA[Deutsch][021] = " Gewinn-/Verlustvortrag";
lA[Deutsch][020] = " Gewinnrücklage";
lA[Deutsch][019] = " Kapitalrücklage";
lA[Deutsch][018] = " Gezeichnetes Kapital";
lA[Deutsch][017] = "EIGENKAPITAL";
lA[Deutsch][016] = "BILANZSUMME";
lA[Deutsch][015] = " Kassenbestand";
lA[Deutsch][014] = " Wertpapiere";
lA[Deutsch][013] = " Ford. aus Lief. & Leistung";
lA[Deutsch][012] = " Fertige Erzeugnisse";
lA[Deutsch][011] = " Materialien";
lA[Deutsch][010] = " Vorräte";
lA[Deutsch][009] = "UMLAUFVERMÖGEN";
lA[Deutsch][008] = " Masch. &
Betriebsausstatt.";
lA[Deutsch][007] = " Grundstücke und Bauten";
lA[Deutsch][006] = " Sachanlagen";
lA[Deutsch][005] = " ANLAGEVERMÖGEN";
lA[Deutsch][004] = "PASSIVA";
lA[Deutsch][003] = "Vorper.";
lA[Deutsch][002] = "Periode";
lA[Deutsch][001] = "AKTIVA";
lA[Deutsch][000] = "BILANZ (Paragraph 266 HGB)
in MEUR";
]]>
</xsl:script>
Beginning at the 19th Element, the array gets mixed up,
values are written at the wrong places, some are lost
etc. I turned the order around (as you can see above),
and now some of the first elements get screwed! I don't
know a way around this.
Can anyone help me, please? I need this script, cause I
have to maintain a multilingualarity in my output.
Thanks to anyone!!
Juggy
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list