XSLT transformation using JDK 1.5.0
hello
I'm trying to run an XSLT transformation using JDK 1.5.0 and I get differnet messages that I didnt get with jdk1.4.0 (it is the same code.
if have 2 files
etd_defs.xsl - hold all the general variables and templates
etd_ddml.xsl - import etd_defs.xsl but he can not read the templates and the variables for some reason.
for example:
in etd_Defs.xsl
<xsl:template name="norm_table_name">
<xsl:param name="data_node" select="."/>
<xsl:variable name="norm_infix">
<xsl:call-template name="norm_infix">
<xsl:with-param name="data_node" select="$data_node"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="col_name" select="$data_node/@dbcolumn"/>
<xsl:value-of select="concat('PW_',$tech_id,$norm_infix,'_',$col _name,'_N')"/>
</xsl:template>
in etd_ddml.xsl I call this template
<foreign-key-definition on-delete="CASCADE">
<xsl:attribute name = "name">
<xsl:value-of select="concat('FK_',$grp_infix,'_',$tech_id,$norm _infix,'_ID')"/>
</xsl:attribute>
<xsl:attribute name = "ref-table">
<xsl:call-template name="norm_table_name"/>
</xsl:attribute>
<xsl:attribute name = "ref-columns">
<xsl:value-of select="concat($grp_infix,'_',$tech_id,$norm_infix ,'_ID',' ',$tech_id,$norm_infix,'_ID')"/>
</xsl:attribute>
</foreign-key-definition>
and I get this error
com.sun.org.apache.xalan.internal.xsltc.compiler.x sltc.Variable
at
com.sun.org.apache.xalan.internal.xsltc.compiler.S ymbolTable.addParam(Unknown Source)
...
this is also happens with variables from different xsl files (even though I have import to the file).
I guess this is a global change.
is any one familiar with this issue?
is there a quick way to fix this?
Thanks
|