I modified the .htaccess file to process xml and xsl, because I need some php functionality, just some simple variables to make a search work using the xsl file and xpath.
This is what the start of my xsl file looks like:
Code: Select all
<?php
header('Content-Type: text/xml');
header('Content-Encoding: UTF-8');
...
?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/>
<!-- Main Template Begins-->
<xsl:template match="guide">
<html>
...Code: Select all
<?php
header('Content-Type: text/xml');
header('Content-Encoding: UTF-8');
...
?>
<?php echo('<?xml-stylesheet type="text/xsl" href="style.xsl?selector2='); echo($selector); echo('&value2='); echo($value); echo('"?>'); ?>
<guide>
<item>
<restaurant_name>
...