Passing Java Object from parent to children

Subject: Passing Java Object from parent to children
From: Honglin Su <hosu@xxxxxxxxxxx>
Date: Fri, 03 Sep 1999 00:37:54 -0400
Hi, there,

I want to construct an XSLT stylesheet which do an pre-order traverse on
XML tree, it will call Java class to process parent node first and
return a Java object, which will be passed to each children. The whole
procedure will be done recursively.

<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/XSL/Transform/1.0";>
 ...
<xsl:template match="*">
        element name = <xsl:value-of select="name(.)"/>
        <xsl:apply-templates/>
</xsl:template>

<xsl:template match="text()"/>
</xsl:stylesheet

The above is a simple stylesheet for pre-order traverse, but how can I
pass Java object (which is a return value from processing the parent
node) from parent to children and do it recursively?

Thank you!

Honglin


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread