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
Conferences Close Tree View
+ Stylus Studio Feature Requests (1192)
+ Stylus Studio Technical Forum (14621)
+ Website Feedback (249)
- XSLT Help and Discussion (7625)
-> + Use of before and after string (3) Sticky Topic
-> - How do I substitute element ty... (1)
-> + How does one add working days ... (4)
-> - Help, I have existing XLT and... (1)
-> + Need help on XSLT issue - (2)
-> + EDI to XML Conversion (7)
-> - XML To JSON Conversion using X... (1)
-> + Formatting Paragraphs to same ... (2)
-> - Grouping of records (1)
-> + Problems with xsd 1.1 (4)
-> + XML to HL7 mapping (3)
-> + XSLT 3 and Iterate (2)
-> + XSL-FO to PDF preview (3)
-> + java.lang.RuntimeException: Er... (2)
-> + Create Acroforms with Stylus X... (2)
-> + How to change XSLT parameter s... (3)
-> + how to change format of the da... (2)
-> + Search "Next 8 Results " doesn... (2)
-> - Support for Git (1)
-> + newbee (8)
-- [1-20] [21-40] [41-60] Next
+ XQuery Help and Discussion (2017)
+ Stylus Studio FAQs (159)
+ Stylus Studio Code Samples & Utilities (364)
+ Stylus Studio Announcements (113)
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

   
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.