You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xalan.apache.org by Angus McIntyre <an...@pobox.com> on 2001/11/05 11:17:35 UTC

Copying processing instructions: maybe-bug in Xalan?

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
-- 
angus@pobox.com                             http://pobox.com/~angus