cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Chamberlain <>
Subject Passing a node-set from XSLT to Java
Date Tue, 01 Jul 2008 15:02:53 GMT
Hi All,

I'm trying to pass a tree fragment from XSLT to Java in the following 
way, and I'm not sure if the node-set is getting through correctly.  The 
XML is:


and the XSLT is:

  <xsl:stylesheet ... myClass="xalan://">
    <xsl:variable name="gmlAdder" select="myClass:new()"/>

    <xsl:variable name="gml">
      <xsl:copy-of select="@* | node()"/>

    <xsl:variable name="result" select="myClass:addGML($gmlAdder,$gml)"/>

where the addGML method is:

  public String addGML(org.w3c.dom.Node myNode)
     return (myNode.getNodeName());

This gives the 'result' variable the value of "#text", but when I was 
expecting "gml:Polygon".

Has anyone else managed to transfer a node-set to Java?  If so, did you 
use xalan?

Any tips would be greatly appreciated.



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message