I've got sabcmd and it is giving the same message. I've got about 3 hours experience with XSL, so if this file is bad, let me know. Also, do you have a recommendation for an xsl/xml validator? This XSL file works for me in IE if I return my XML to the browser along with the tag <?xml-stylesheet type="text/xsl" href="Simple.xsl"?>. The problem with returning the XML is that there is more information in the XML than I want the user to have. I want the transform done on the server so the user does not get the full XML.
<?xml version="1.0" encoding="ISO-8859-1" ?> <html xsl:version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/TR/xhtml1/strict"> <HEAD> <LINK REL="stylesheet" HREF="DisplayFormat.css" TYPE="text/css" /> </HEAD> <BODY CLASS="Status"> <H3 CLASS="Status">Active Police Calls</H3> <TABLE CLASS="Status"> <TR> <TH CLASS="Status"> Incident </TH> <TH CLASS="Status"> Call Time </TH> <TH CLASS="Status"> Address </TH> <TH CLASS="Status"> Building </TH> <TH CLASS="Status"> Apt </TH> <TH CLASS="Status"> Nature </TH> </TR> <xsl:for-each select="root/row"> <TR> <TD CLASS="Status"> <xsl:value-of select="Field_InNum" /> </TD> <TD CLASS="Status"> <xsl:value-of select="Field_CallTime" /> </TD> <TD CLASS="Status"> <xsl:value-of select="Field_Address" /> </TD> <TD CLASS="Status"> <xsl:value-of select="Field_Building" /> </TD> <TD CLASS="Status"> <xsl:value-of select="Field_Apt" /> </TD> <TD CLASS="Status"> <xsl:value-of select="Field_Nature" /> </TD> </TR> </xsl:for-each> </TABLE> </BODY> </html> "Ray Hunter" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Try using the command line sablot "sabcmd" to parse the xsl file and see > if you can get any info on the well-formness of the file. If you dont > have the command line version I suggest downloading an application that > does xsl verification. > > You could also send post the file so that we can review the xsl code. > > -- > Ray > > On Fri, 2003-03-28 at 10:22, Benjamin Walling wrote: > > I'm trying to use the xslt_* functions, but I can't get any decent error > > messages out of them. I've used the XML and XSL I'm passing it in IE, and > > it gets processed and transformed correctly. The only error I get is: > > > > Warning: Sablotron error on line 1: XML parser error 4: not well-formed > > (invalid token) in C:\Websites\iStatus\test.php on line 16 > > > > In the log, I get: > > > > Sablotron Message on line none, level log: Parsing > > 'http://localhost/Simple.xsl'... > > > > So, I have an error on line 'none'? Can someone show me which line that is? > > My XML and XSL is processed correctly by IE, so what gives here? How can I > > get it to tell me what it is having a problem with? Without a line number > > or some context, there is no way I'll ever debug this! > > > > Using the following code: > > > > $xh = xslt_create(); > > xslt_set_log($xh, true); > > xslt_set_log($xh, getcwd() . '\sablot.log'); > > $args = array('/_xml' => $xml); > > $html = xslt_process($xh, 'arg:/_xml', "http://localhost/Simple.xsl", NULL, > > $args); > > xslt_free($xh); > > echo $html; > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php