Is it possible to use PHP within an XSL document?
Always when I try to do so I get errors... so before freaking out I'd like to know whether or not it's even possible. (I am an absolute beginner)
I have an XSL file like this one
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE xsl:stylesheet [
<!ENTITY nbsp " ">
]>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<head>
<title></title>
<style type="text/css">
[...]
</style>
</head>
<body>
[...]
<div id="content">
<?php echo $anything; ?>
</div>
[...]
</body>
</html>
</xsl:template>
</xsl:stylesheet>
(I cut the code)
So I am including the XML file via PHP (that XML file is styled with this XSL file) And now I tried to echo the content of for example $anything
But it doesn't work