XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
lemon  manSubject: 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);

// Output the resulting HTML
echo $html;
?>

Postnext
Minollo I.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.

Minollo

Postnext
lemon  manSubject: XSLT tranform- Can it be applied to a live URL?
Author: lemon man
Date: 21 Dec 2005 11:54 AM
thanks minollo,

Wondering if you could show me how to use the following url and apply it to
stylus.

http://24.244.141.135/alpha/sc/nucleus/xml-rss2.php?blogid=10

(this an an rss2/xml file)

Thanks

Postnext
lemon  manSubject: XSLT tranform- Can it be applied to a live URL?
Author: lemon man
Date: 21 Dec 2005 12:04 PM
Ok I found that, how can I process this xsl on a server and output the page to any browser?

Thank for any Help.

Postnext
Minollo I.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.

Minollo

Posttop
Minollo I.Subject: XSLT tranform- Can it be applied to a live URL?
Author: Minollo I.
Date: 21 Dec 2005 01:14 PM
...sorry, I meant Xalan-J here, not Xerces-J.

Minollo

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.