kaloo Posted January 30, 2007 Share Posted January 30, 2007 Hello,I have problem which I hope someone could help me with. It hope it's still on topic, also, I did not find any suitable answers when searching the forum. Here's the problem:- I want to transform xml with xsl- The transformation has to happen on the server, as not all browsers manage it themselves (such as opera)- PHP (4.3.10) does not support XSL without Sablotron and expat- The server is not mine, so I can't do anything about itOther comments:- The server does not have sql (it costs extra), also sql seems unnecessary for small databases- XSL has certain capabilities CSS doesn'tAny suggestions on what to do? Should I just forget XML, or is there a future in it? It seems like such a basic thing, and really irritates me. For once, ASP seems a better way, with only 10 lines of writing. Any help, or thoughts regarding this will be highly appreciated.kaloo Link to comment https://forums.phpfreaks.com/topic/36321-is-there-future-for-xsl-in-php/ Share on other sites More sharing options...
trq Posted January 30, 2007 Share Posted January 30, 2007 [quote]Any suggestions on what to do?[/quote]Upgrade the server. You can't expect old software to be up to date with tech.[quote]For once, ASP seems a better way, with only 10 lines of writing. [/quote]ASP has no native xml/xsl handling objects, .NET maybe but not pure ASP. Link to comment https://forums.phpfreaks.com/topic/36321-is-there-future-for-xsl-in-php/#findComment-172692 Share on other sites More sharing options...
kaloo Posted January 30, 2007 Author Share Posted January 30, 2007 Thank you for your rapid reply thorpe![quote]Upgrade the server.[/quote]I should really push my webhost to get up to date, but they will not really care too much I'm afraid. Perhaps it's time to have a look at other suppliers.[quote]ASP has no native xml/xsl handling objects[/quote]You're propably right, I have never used it. I just saw this code:[code]<%'Load XMLset xml = Server.CreateObject("Microsoft.XMLDOM")xml.async = falsexml.load(Server.MapPath("cdcatalog.xml"))'Load XSLset xsl = Server.CreateObject("Microsoft.XMLDOM")xsl.async = falsexsl.load(Server.MapPath("cdcatalog.xsl"))'Transform fileResponse.Write(xml.transformNode(xsl))%>[/code]Anyway, thanks for your respond. Link to comment https://forums.phpfreaks.com/topic/36321-is-there-future-for-xsl-in-php/#findComment-172697 Share on other sites More sharing options...
trq Posted January 30, 2007 Share Posted January 30, 2007 Yeah....[code]Server.CreateObject("Microsoft.XMLDOM")[/code]Creates an object from an external .dll. However, one would assume that the Microsoft.XMLDOM object would be available on all windows machines. Ive never seen it before. Link to comment https://forums.phpfreaks.com/topic/36321-is-there-future-for-xsl-in-php/#findComment-172699 Share on other sites More sharing options...
kaloo Posted January 30, 2007 Author Share Posted January 30, 2007 I picked it up at http://www.w3schools.com/xsl/xsl_server.aspBy the way, with upgrading the server, would you mean compliance with xslt, or do newer versions have it automatically? I read the requirements at http://www.php.net/manual/en/ref.xslt.php, but am somewhat confused.Thanks for your reply. Link to comment https://forums.phpfreaks.com/topic/36321-is-there-future-for-xsl-in-php/#findComment-172701 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.