|
Subject: Re: [xsl] How to transform xml and xsl to a php format From: David Carlisle <davidc@xxxxxxxxx> Date: Thu, 23 Jan 2003 10:40:09 GMT |
<?....?> 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
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] How to transform xml and xsl , Ard Schrijvers | Thread | RE: [xsl] How to transform xml and , Kenneth Prat |
| [xsl] How to transform xml and xsl , Ard Schrijvers | Date | RE: [xsl] How to transform xml and , Sergiu Ignat |
| Month |