=?ISO-8859-1?Q?Eduardo_Y=E1=F1ez_Parareda?=
Usenet Archive
- Joined
- Jun 20, 2006
- Messages
- 4
- Reaction score
- 0
Hello, I have to use xalan to transform some XML using XSL, but I have some problems within the XSLs, and Xalan doesn't give very good error messages. Is there any way to put Xalan on debug or trace mode or something else?, it's almost impossible to find the problems with those messages. i.e.:
This is /xsl/template/list.xsl
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns
ate="java.util.Date" xmlns:StringBuffer="java.lang.StringBuffer" xmlns
arser="es.bfc.xslt.Parser" exclude-result-prefixes="Date StringBuffer parser">
<xsl:variable name="updateData" select="StringBuffer:new(' ')"/> <!-- LINE 17 -->
<!-- Some code -->
<xsl:text disable-output-escaping="yes"><script
language="javascript"></xsl:text>
function setSelectedSelectionCriteriaFields{
<xsl:value-of select="$updateData" disable-output-escaping="yes" /
<xsl:text disable-output-escaping="yes"></script></xsl:text>
</xsl:stylesheet>
This is the error:
file:///xsl/template/list.xsl; Line #17; Column #66;
java.lang.IllegalArgumentException
file:///xsl/template/list.xsl; Line #327; Column #72;
java.lang.NullPointerException
Why an empty string throws an IllegalArgumentException? WHY?!!
This is /xsl/template/list.xsl
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns
<xsl:variable name="updateData" select="StringBuffer:new(' ')"/> <!-- LINE 17 -->
<!-- Some code -->
<xsl:text disable-output-escaping="yes"><script
language="javascript"></xsl:text>
function setSelectedSelectionCriteriaFields{
<xsl:value-of select="$updateData" disable-output-escaping="yes" /
}<!-- LINE 327 -->
<xsl:text disable-output-escaping="yes"></script></xsl:text>
</xsl:stylesheet>
This is the error:
file:///xsl/template/list.xsl; Line #17; Column #66;
java.lang.IllegalArgumentException
file:///xsl/template/list.xsl; Line #327; Column #72;
java.lang.NullPointerException
Why an empty string throws an IllegalArgumentException? WHY?!!