Click to See Complete Forum and Search --> : xsl and php problems


marco_van_mayo
02-28-2006, 11:58 AM
ok.. i've done this type of thing before with WAP but i cannot seem to get this to work.. i seems so simple but is making me insane..

can somebody check it over to check it over and tell me whats wrong..

<?php header('Content-type: text/xsl');?>
<?php echo '<xsl:transform version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">';?>


<xsl:template match="/">

<html>
<body>

<xsl:for-each select="appointment">
<xsl:if test="cust_id='mark'">
<xsl:value-of select="cust_id"/>
<xsl:value-of select="date"/>
<xsl:value-of select="text"/>
</xsl:if>
</xsl:for-each>

</body>
</html>

</xsl:template>

</xsl:stylesheet>