DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13850>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13850

xsltc type match problem with docbook test in xsltmark





------- Additional Comments From [EMAIL PROTECTED]  2002-10-25 19:36 -------
Here is the testcase I use to verify the fix:

<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
                xmlns:ext="http://xml.apache.org/xalan/java/ExtTest";
                exclude-result-prefixes="ext"
                version='1.0'>

<xsl:param name="a">
    <h1>a<h2>b</h2></h1>
    <h3>c</h3>
</xsl:param>

<xsl:param name="b"> 3 </xsl:param>

<xsl:template match="/">
    <xsl:value-of select="ext:stringTest($a)" />,
    <xsl:value-of select="ext:doubleTest($b)" />,
    <xsl:value-of select="count(ext:nodelistTest($a))" />,
    <xsl:copy-of select="ext:nodelistTest($a)/h1/h2" />,
    <xsl:copy-of select="ext:nodeTest($a)" />
</xsl:template>

</xsl:stylesheet>

----------------------------
Java file (ExtTest.java):

import org.w3c.dom.*;

public class ExtTest
{

  public static String stringTest(String str)
  {
    return str;
  }
  
  public static NodeList nodelistTest(NodeList nodelist)
  {
    return nodelist;
  }
  
  public static Node nodeTest(Node node)
  {
    return node;
  }
  
  public static double doubleTest(double value)
  {
    return value;
  }
}
------------------------------------

The correct output is:

abc,
    3,
    1,
    <h2>b</h2>,
    <h1>a<h2>b</h2></h1>

Reply via email to