Pages: [1] :: one page |
|
Author |
Thread Statistics | Show CCP posts - 0 post(s) |
Serbitas
|
Posted - 2009.10.19 13:50:00 -
[1]
I want to display skill information on a webpage. I have retrived the data into a char.xml file with php. How do i make those readable for users now? Is there a existing xslt or css file to do that, or do i have to write it from scratch on ? A php solution would be great.
|
Johnathan Roark
Caldari Quantum Industries RAZOR Alliance
|
Posted - 2009.10.21 05:08:00 -
[2]
I'm rather sure you'll have to parse it using something like php. XSLT is only useful if you can change the xml.
Check EVE onewayweb for a php script. He has a sourceforge project that has a skillsheet program for download or in the svn for an updated version.
Quantum Industries is recruiting! |
Haguu
Caldari School of Applied Knowledge
|
Posted - 2009.10.21 05:37:00 -
[3]
There are fours way that come to mind initially; server and client side, XSLT and manual. I am not up to speed on the PHP options though. The client side options have more issues as to browser-specific XSLT behavior, but would be the least effort.
1) You can use some sort of XSLT transform engine on the server 2) You can manually parse the XML on the server (no XSLT) and then emit the desired HTML
3) You can just emit the XML that you get as is, along with a XSLT and then "a modern" browser will do the transform on the client. 4) These days you tend to end up with javascript libraries to dHTML on the client (e.g. to have click-on-header-to-sort tables, expand/collapse ...). The javascript on the client (in the browser) could just parse the XML and populate the tables.
#1 is The Right Way, #3 is what I would at least start out with to test the XSLT and get the HTML looking/working the way you want.
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.10.22 16:45:00 -
[4]
Have been down this road a couple times go with something server side and in something other than XSLT. XSLT does work and has it's place but wasn't really made for what you want to do here. If you want to transform some static data files it's great once you figure out how but tends to fail badly when you need to work with things like the Eve API which can return everything from the XML you expect, XML error codes, HTML error pages, or just HTTP errors depending on what's not working. In the end you'll be better off start with some kind of real programming language like PHP, etc. that has the flexibility to deal with dynamic natural of any web app which is what you are trying to make here
In the end I think you'll find use one of the API libraries like Yapeal (or one of the others) and something like Smarty or Dwoo (Better IMHO) would be the easiest and most maintainable and would have the advantage of being able to draw on the many resources available on the web for doing that type of stuff. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
|
|
|
Pages: [1] :: one page |
First page | Previous page | Next page | Last page |