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
Don VoltzSubject: Help with XSLT and PHP
Author: Don Voltz
Date: 26 Feb 2007 09:17 AM
Would someone be able to point me in the right direction on the
following issue. I have uncovered how to do this with PHP4 but can not
seem to do it in PHP5

I have some php code to access a mysql database and return the data in
and XML docuement.


I am trying to convert this with XSLT using an XSL document on the
server. I want to somehow complete the transformation without having
to save the database query as an XML document, but instead process the
php generated XML dynamically by calling the XSL page.


Thanks in advance for any direction on this problem


Sincerely,


Don

Postnext
Tony LavinioSubject: Help with XSLT and PHP
Author: Tony Lavinio
Date: 26 Feb 2007 11:23 AM
This is the Stylus Studio help forum; we can't help with PHP.
Perhaps you should try a PHP-oriented list.

Postnext
Vasil RangelovSubject: Help with XSLT and PHP
Author: Vasil Rangelov
Date: 27 Feb 2007 04:07 PM
Originally Posted: 27 Feb 2007 04:04 PM
If the XML is generated as a plain text, you can use the loadXML() function. Once you've loaded the XML as a DOM tree, you can use the XSL functions to perform the XSLT tranformation.

Details:
loadXML function:
http://bg2.php.net/manual/en/function.dom-domdocument-loadxml.php
XSL functions:
http://bg2.php.net/manual/en/ref.xsl.php

NOTE: In order to use the XSL extension, you need to uncomment (or add) the line
extension=php_xsl.dll
in php.ini. I take it your extension_dir is OK, scince you're already using MySQL.

P.S. PHP forums say "we don't know XSLT" and XSL(T) forums say "this is not a PHP forum"... where is this madness going to end?

Posttop
Tony LavinioSubject: Help with XSLT and PHP
Author: Tony Lavinio
Date: 28 Feb 2007 03:36 PM
This isn't a general-purpose XSLT forum.
This is a forum for XSLT questions related to Stylus Studio.

We provide free support to users of our product, but our product
has no interaction with PHP.

If you ask on a general-purpose XSLT list, you may get a different
answer. But this is a product-specific support forum.

 
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.