i'm using xalan-j 2.1.0 with the redirect extension to parse an xml file and
produce 5 redirected output files. each time i run the parser with the same
xml and xsl files i get different results. (yeah, i know you're skeptical.
but i have witnesses :( ) sometimes the file is successfully parsed.
sometimes i the parser thows an exception reporting the following useless
message:
XSLT Error (javax.xml.transform.TransformerException): TRaX Transform
Throwable
very occasionally a line number is reported, and it seems always to be on
one of the 5 xsl statements that looks as follows:
<redirect:write file="some_name.html">
this write statement is part of a section which repeats in my stylesheet and
looks as follows:
<xsl:template match="article[@storyorder=1]">
<xsl:if test="@source='some value'">
<redirect:write file="some_name.html">
<![CDATA[<a href="javascript:var open_child_window=window.open
('someurl_]]><xsl:value-of select="//sitepartner"
/><![CDATA[.asp?id=]]><xsl:value-of select="filename"/><![CDATA[','mp'
,'height=460,width=520');"><img src="someurl/]]
><xsl:value-of select="filename"/><![CDATA[.jpg" width="92" height="69
" border="0" alt="somealtname"><br><FONT size="2" face="Arial, tahoma"
color="#2e6890">]]><xsl:value-of select="headline"/><![CDATA[</a>]]>
</redirect:write>
</xsl:if>
<xsl:if test="@source='some other value'">
<redirect:write file="some_other_name.html">
<![CDATA[<a href="javascript:var open_child_window=window.open
('someotherurl_]]><xsl:value-of select="//sitepartner"
/><![CDATA[.asp?id=]]><xsl:value-of select="filename"/><![CDATA[','mp'
,'height=460,width=520');"><img src="someotherurl/]]
><xsl:value-of select="filename"/><![CDATA[.jpg" width="92" height="69
" border="0" alt="someotheraltname"><br><FONT size="2" face="Arial, tahoma"
color="#2e6890">]]><xsl:value-of select="headline"/><![CDATA[</a>]]>
</redirect:write>
</xsl:if>
...
</xsl:template>
does anyone see what's wrong here? this application is harvesting data from
an external source and producing html for a production system. i can't use
this product in a production system if it behaves unreliably, and i've got a
launch coming up in a week.
i would be grateful for any feedback. thanks in advance...hl
"...sapias. vina liques. et spatio brevi spem longam reseces. dum
loquimur fugerit invida aetas."
BEGIN:VCARD
VERSION:2.1
N:Lloyd;Heather
FN:Heather Lloyd (E-mail)
ORG:Prodigy Communications Corp
TITLE:Portal Development
TEL;WORK;VOICE:(914) 448-3374
ADR;WORK:;;1565 Front Street;Yorktown Heights;NY;10598;United States of America
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:1565 Front Street=0D=0AYorktown Heights, NY 10598=0D=0AUnited States of Amer=
ica
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20010625T161231Z
END:VCARD