I'm trying to use the example code for calling XSLTC with the native API
 
Everything works without error messages or exceptions, but there seem to be something wrong with node
selection:
 
I have a simple stylesheet:
<xsl:template match="/">
  title: <xsl:value-of select="form/title"/>
  <xsl:apply-templates select="form"/>
 
  <xsl:for-each select="*">
     &lt;<xsl:value-of select="name(.)"/>&gt;
  </xsl:for-each> 
</xsl:template>
 
which is applied on this XML:
<form>
  <title>test</title>
</form>
 
 
The result I get is:
title:
<form>
 
So, the for-each select="*" worked as expected, which shows the <form> is really there in the DOM tree,
 but not the apply-templates and value-of.

What could be wrong here?
 

Also, is there a way to force a class loader to unload a translet class when it is recompiled? When I recompile a stylesheet to a translet, the old translet keeps getting used until I restart the web server.
To "fix" that, I give each compiled translet a random name, but the problem with this is that I'll get hundreds of unused .class files with random names because they won't be automatically deleted. Would there be a better way?
 

Thanks

Reply via email to