Subject: RE: 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
|