xsl-list
[Top] [All Lists]

RE: Sending a nodeset to a java extension

2002-12-16 03:05:31
The binding between XSLT and Java extension functions is defined by the
implementation, not by the language standard. So questions about Java
extensions are meaningless unless we know what product you are using.

Michael Kay
Software AG
home: Michael(_dot_)H(_dot_)Kay(_at_)ntlworld(_dot_)com
work: Michael(_dot_)Kay(_at_)softwareag(_dot_)com 

-----Original Message-----
From: owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com 
[mailto:owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com] On Behalf Of 
Spencer Bruce
Sent: 16 December 2002 08:47
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Sending a nodeset to a java extension


I have an xml file that looks like this:

<xml>
    <one>
        <two>
            some text
        </two>
    </one>
</xml>

I want to send the nodeset of one and all its children to a 
Java extension.

When I do this in XSL:

<xsl:template match="one">
    <xsl:variable name="test">
        <xsl:copy-of select="."/>
    </xsl:variable>
    <xsl:value-of select="java:extension($test)"/> </xsl:template>

Java (which merely prints out what it receives) only prints 
out "some text."

I need it to take in the entire nodeset for evaluation - as 
in all the nodes and all the content of <one> and its descendants.

Is there a way to do this?

Any help would be really appreciated!

Spencer Bruce



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



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



<Prev in Thread] Current Thread [Next in Thread>