Hello Tom,
Thanks a lot for your reply.
I am attaching the xsl/xml files.
So if this is not an error, then how do i turn off these
logging warnings? And also, why is xslt_errorno() and
error() are set to those values if this is only a log
message.
I can try other xsl/xml combinations if you suspect that my
xsl file is not correct.
Thanks, regards, Ali.
On Sun, 28 Jan 2001 18:17:36 +0100
Tom Kaiser <[EMAIL PROTECTED]> wrote:
>
> Hi,
> the message you're getting is a Sablotron log message and
> does not
> correspond to any error. It's hard to tell what's wrong
> without the xsl
> and xml files - could you send them please?
> Thanks,
> Tom Kaiser
>
> A.A. Wasti wrote:
>
> > Hi again.
> > I got xslt finally installed... turns out I should only
> have
> > 1 copy of php_sablot.dll in the extensions dir. and
> nowhere
> > else. Also the php.ini file was corrupt.
> >
> > Now, the functions are recognized, but there is an
> error
> > that I don't understand when running the xslt_process()
> or
> > the xslt_run commands.
> >
> > Here's the code:
> > -----------------
> > <?php
> >
> > $xslData = fread(fopen("14-2.xsl", "r"),
> > filesize("14-2.xsl"));
> > $xmlData = fread(fopen("14-1.xml", "r"),
> > filesize("14-1.xml"));
> >
> > if (xslt_process($xslData, $xmlData, $result))
> > {
> > echo $result;
> > }
> > echo "There was an error that occurred in the XSL
> > transformation...\n";
> > echo "\tError number: " . xslt_errno() . "\n";
> > echo "\tError string: " . xslt_error() . "\n";
> > exit;
> > --------------
> >
> > Here's the output:
> > --------------
> > Warning: msgtype: warning in c:\program files\apache
> > group\apache\htdocs\xmltest.php on line 16
> >
> > There was an error that occurred in the XSL
> > transformation... Error number: 475 Error string:
> Destroying
> > the arena: %s B asked, %s B allocated
> > --------------
> > NOTE: line 16 is the xslt_process() function call line.
> >
> > There are no references (none that i could find) about
> error
> > codes and their resolution. Doessomeone have an idea
> what
> > this error means?
> > Thanks.
> >
> >
> >
>
>
Ali Wasti
Honours Computer Science (Specialist), Year 4
McMaster University
Hamilton ON, Canada
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="14-4.xsl"?>
<PERIODIC_TABLE>
<ATOM PHASE="GAS">
<NAME>Hydrogen</NAME>
<SYMBOL>H</SYMBOL>
<ATOMIC_NUMBER>1</ATOMIC_NUMBER>
<ATOMIC_WEIGHT>1.00794</ATOMIC_WEIGHT>
<BOILING_POINT UNITS="Kelvin">20.28</BOILING_POINT>
<MELTING_POINT UNITS="Kelvin">13.81</MELTING_POINT>
<DENSITY UNITS="grams/cubic centimeter"><!-- At 300K -->
0.0899
</DENSITY>
</ATOM>
<ATOM PHASE="GAS">
<NAME>Helium</NAME>
<SYMBOL>He</SYMBOL>
<ATOMIC_NUMBER>2</ATOMIC_NUMBER>
<ATOMIC_WEIGHT>4.0026</ATOMIC_WEIGHT>
<BOILING_POINT UNITS="Kelvin">4.216</BOILING_POINT>
<MELTING_POINT UNITS="Kelvin">0.95</MELTING_POINT>
<DENSITY UNITS="grams/cubic centimeter"><!-- At 300K -->
0.1785
</DENSITY>
</ATOM>
</PERIODIC_TABLE>
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<xsl:template match="PERIODIC_TABLE">
<html>
<xsl:apply-templates/>
</html>
</xsl:template>
<xsl:template match="ATOM">
<P>
<xsl:apply-templates/>
</P>
</xsl:template>
</xsl:stylesheet>