?
=?iso-8859-1?q?Eduardo_Y=E1=F1ez_Parareda?=
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"
xmlnsate="java.util.Date"
xmlns:StringBuffer="java.lang.StringBuffer"
xmlnsarser="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?!!
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"
xmlnsate="java.util.Date"
xmlns:StringBuffer="java.lang.StringBuffer"
xmlnsarser="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" /
}<!-- 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?!!