Hi,
I'm trying to use an XSLT as a director in the GoF builder pattern where the builder itself is a java class.
My idea is to have a stylesheet that uses PI to execute some java operation. Let me explain with an example:

Let say I have this:

    <xsl:template match="/">
        <xsl:variable name="v1">this is a test</xsl:variable>
        <?java printMe($vi)?>
    </xsl:template>

I would like to tell the transformer that when a it find a PI during the transformation, it should pass it to the builder for further processing.

Is this possible or am I just talking rubbish?

Thanks

Alessandro