Passing Java Object from parent to children
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
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format