|
Subject: RE: [xsl] How to transform xml and xsl to a php format From: "Kenneth Prat" <kenprat@xxxxxxxxx> Date: Thu, 23 Jan 2003 09:35:21 -0700 |
If you use <script> tags rather than the <? ?> markup, it will make your
life a lot easier:
<script language="php">
/* <![CDATA[ */
if(!auth()){
header("Location: /Home/index.html");
exit;
}
...
/* ]]> */
</script>
> I am serializing my xml input with an xsl , and want to get
> an output like:
>
> <?
> 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-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] How to transform xml and , David Carlisle | Thread | RE: [xsl] How to transform xml and , Sergiu Ignat |
| RE: [xsl] No-output identity templa, Roger Glover | Date | Re: [xsl] xsl include doesn't check, Joerg Heinicke |
| Month |