xslt xlt transform

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bob

    xslt xlt transform

    I am working on a Solaris box running 2.8. I needed a way to get merge
    the XSLl with the XML. I found the PHP would do the trick for me. I
    loaded libxslt-1.1.8 and libxml2-2.6.9, bult them and installed. Then
    loaded PHP 5. Same thing, built it and installed it. I created this
    simple script;

    <?php
    $xh = xslt_create();

    $myResult = xslt_process(
    $xh,
    'test.xml',
    'style.xsl'
    );

    xslt_free($xh); ?>


    I get the following error;

    Content-type: text/html
    X-Powered-By: PHP/5.0.0

    <br />
    <b>Fatal error</b>: Call to undefined function xslt_create() in <b>


    Did I miss something?
  • Tony Marston

    #2
    Re: xslt xlt transform

    That error means that you did not compile PHP with the XSLT extension, or
    you did not activate that extension in the php.ini file. Check the manual at
    http://www.php.net/manual/en/ref.xslt.php for details.

    Be aware that PHP contains lots of optional extensions that need to be
    compiled in before they can be used. The details are all in the manual.

    --
    Tony Marston

    This is Tony Marston's web site, containing personal information plus pages devoted to the Uniface 4GL development language, XML and XSL, PHP and MySQL, and a bit of COBOL




    "Bob" <tazwin1@hotmai l.com> wrote in message
    news:b1a69d9.04 07231327.573899 3e@posting.goog le.com...[color=blue]
    > I am working on a Solaris box running 2.8. I needed a way to get merge
    > the XSLl with the XML. I found the PHP would do the trick for me. I
    > loaded libxslt-1.1.8 and libxml2-2.6.9, bult them and installed. Then
    > loaded PHP 5. Same thing, built it and installed it. I created this
    > simple script;
    >
    > <?php
    > $xh = xslt_create();
    >
    > $myResult = xslt_process(
    > $xh,
    > 'test.xml',
    > 'style.xsl'
    > );
    >
    > xslt_free($xh); ?>
    >
    >
    > I get the following error;
    >
    > Content-type: text/html
    > X-Powered-By: PHP/5.0.0
    >
    > <br />
    > <b>Fatal error</b>: Call to undefined function xslt_create() in <b>
    >
    >
    > Did I miss something?[/color]


    Comment

    Working...