Hello everyone--
I'm trying to get sablotron to work with PHP4.0.3pl1 and in my phpinfo file
it says that it is enabled. However, when I run a test script which calls
the xslt_process() function it doesn't actually process the xsl file that I
have it read. What it does is it returns the xsl file and when I print it
out I get code such as this in the browser source:
====================================
<?xml version="1.0" encoding="UTF-8"?><xsl:stylesheet
xmlns:xsl="http://www.w3.org/TR/WD-xsl"><xsl:template
match="/"><HTML><HEAD><TITLE>moreover...</TITLE></HEAD><BODY
BGCOLOR="ffffff"><DIV ALIGN="center"><TABLE BGCOLOR="ffffff" BORDER="0"
CELLPADDING="4" CELLSPACING="0" WIDTH="100%"><xsl:for-each
select="moreovernews/article"><xsl:choose><xsl:when expr="childNumber(this)
> 5"/><xsl:otherwise><TR VALIGN="middle"><TD ALIGN="left"
BGCOLOR="ffffff"><B><A><xsl:attribute name="HREF"><xsl:value-of
select="url"/></xsl:attribute><xsl:attribute name="TARGET">
_blank
</xsl:attribute><FONT FACE="Verdana, Arial,Helvetica,
sans-serif" SIZE="-1" COLOR="000000"><xsl:value-of
select="headline_text"/></FONT></A></B><BR/><A><xsl:attribute
name="HREF"><xsl:value-of
select="document_url"/></xsl:attribute><xsl:attribute name="TARGET">
_blank
</xsl:attribute><FONT FACE="Verdana, Arial,Helvetica,
sans-serif" SIZE="-2" COLOR="666666"><xsl:value-of
select="source"/></FONT></A><A><xsl:attribute name="HREF"><xsl:value-of
select="access_registration"/></xsl:attribute><xsl:attribute name="TARGET">
_blank
</xsl:attribute><FONT FACE="Verdana, Arial,Helvetica,
sans-serif" SIZE="-2" COLOR="666666"><xsl:value-of
select="access_status"/></FONT></A><FONT FACE="Verdana, Arial,Helvetica,
sans-serif" SIZE="-2" COLOR="666666"><xsl:value-of select="harvest_time"/>
GMT
</FONT></TD></TR></xsl:otherwise></xsl:choose></xsl:for-each></TABLE></DIV><
/BODY></HTML></xsl:template></xsl:stylesheet>
====================================
As you can see this is my xsl stylesheet and I want that to get parsed but
for some reason it doesn't get parsed when I call the xslt_process(). I
don't know what is causing this problem but I would really like to solve
this problem. Here are my system specs; WinNT, Apache 1.3.12, PHP4.0.3pl1.
Thanks,
Jay