<?....?> is not character data in the result documet, it's a processing
instruction.
PIs are generated with
<xsl:processing-instruction name="abc">
if(!auth()){
header("Location: /Home/index.html");
exit;
}
function auth(){
$valid = false;
session_start();
if (!isset($_SESSION['valid'])) {
$valid = false;
} else {
$valid = $_SESSION['valid'];
}
return $valid;
}
</xsl:procesing-instruction>
That would generate what you said you wanted, except that
it would start
<?abc
However your requested output with just <? and no following name is not
well formed XML and would be rejected by any XML parser, so I suspect
that you do need some name, perhaps not abc...
David
________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list