This isn't an internals question.  Please post such questions to 
php-general.  It's also pretty well documented.  Please see the 
documentation for domxml_open_mem() and domxml_xslt_stylesheet_file()

-Rasmus


On Mon, 6 Dec 2004, Goformusic Support wrote:

> Hi,
> 
> We worked with Sablotron before but switched over to the libxslt
> library on PHP5 to perform XSL transformations. We used the wrapper
> code found on http://be.php.net/xsl so that our old xslt_ functions
> continued to work.
> 
> Now, with Sablotron we used to parse multiple XML documents as strings
> and one XSL file from disk. With libxslt it doesn't seem possible
> parsing XML documents as strings.
> 
> This is the old method which worked fine, using Sablotron:
> 
> $args["/list_docu"] = "<content>some xml</content>";
> $result = xslt_process($xh, 'arg:/_xml', 'arg:/_xsl', NULL, $args, $params);
> 
> This node could then be access with XSL:
> <xsl:for-each select="document('arg:/list_docu')/content"> 
> 
> When I run this code using libxslt/PHP5 and the wrapper I get the error:
> Warning: I/O warning : failed to load external entity "arg:/list_docu"
> 
> This is because the XML documents must be saved on disk I guess.
> Isn't there any way to load the XML documents as strings???
> 
> Grtz,
> 
> Bart
> 
> -- 
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to