Subject:XSLT tranform- Can it be applied to a live URL? Author:lemon man Date:20 Dec 2005 01:26 PM
Hello all,
I've been trying perfrom an XSLT trsformation on a url that contains and rss2/xml file and cannot seem to accomplish it.
So far this code has worked for me while using a local file. My need is for it to transform a live url. I beleive i should be able to do this using 'fopen', but cannot poinpoint the solution.
Any help is much appreciated.
<?php
// Create an XSLT processor
$xsltproc = xslt_create();
// Perform the transformation
$html = xslt_process($xsltproc, 'myxml.xml', 'myxsl.xsl');
// Detect errors
if (!$html) die('XSLT processing error: '.xslt_error($xsltproc));
// Destroy the XSLT processor
xslt_free($xsltproc);
Subject:XSLT tranform- Can it be applied to a live URL? Author:Minollo I. Date:20 Dec 2005 05:28 PM
I can't answer about the XSLT processor you are accessing through php; Stylus Studio is able to work with live URL without problem, and all the XSLT processors I can think of will do the same.
Subject:XSLT tranform- Can it be applied to a live URL? Author:Minollo I. Date:21 Dec 2005 12:20 PM
Stylus Studio doesn't expose a runtime XSLT engine. But you can do what you need using Saxon or Xerces-J, for example; development and debugging against those processors is natively supported by Stylus Studio.