Given an XML file that contains PHP fragments, I'd like the fragments passed through unaltered. My first attempt at writing a stylesheet to do this contains the following:

        <xsl:template match="processing-instruction('php')">
                <xsl:copy/>
        </xsl:template>

which seems uncontroversial enough. However, given:

        <?php php_info(); ?>

in the input file, Xalan 2.2D11 spits out:

        <?php php_info(); >

The final '?' has gone away which, to my mind, means that it's no longer a valid PI (I haven't yet asked PHP how it feels about it).

Am I doing something wrong? Is Xalan? Should I worry? Is there a better way to do this?

Thanks in advance,

        A
--
[EMAIL PROTECTED]                             http://pobox.com/~angus

Reply via email to