xsl-list
[Top] [All Lists]

RE: How to transform xml and xsl to a php format

2003-01-23 09:35:21
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



<Prev in Thread] Current Thread [Next in Thread>