I think I replied to this by a different route. Let me know if you didn't get the reply.
Michael Kay
Saxonica Limited

From: saxon-help-admin@lists.sourceforge.net [mailto:saxon-help-admin@lists.sourceforge.net] On Behalf Of Alessandro Di Bella
Sent: 24 September 2004 13:19
To: saxon-help@lists.sourceforge.net
Subject: [saxon] using PI with xslt

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)?>

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?