User Name
Password

Go Back   Planetarion Forums > Non Planetarion Discussions > Programming and Discussion
Register FAQ Members List Calendar Arcade Today's Posts

Reply
Thread Tools Display Modes
Unread 18 Nov 2003, 01:38   #1
wu_trax
Registered User
 
Join Date: Jan 2003
Posts: 4,290
wu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet society
Question how do i write a web-application based on xml?

is there any good example / tutorial for such things? i know what xml is, what a well formed document is and the like and im sure i could write *something*, but what is the most common way?

im searching for some example-code, can anyone help?
__________________
im not tolerant, i just dont care.
wu_trax is offline   Reply With Quote
Unread 18 Nov 2003, 01:58   #2
pablissimo
Henry Kelly
 
pablissimo's Avatar
 
Join Date: Apr 2000
Posts: 7,374
pablissimo has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.pablissimo has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.pablissimo has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.pablissimo has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.pablissimo has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.pablissimo has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.pablissimo has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.pablissimo has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.pablissimo has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.pablissimo has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.pablissimo has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.
Re: how do i write a web-application based on xml?

Do you mean by way of using something like PHP (the Expat library for instance) to do something with the data held within an XML document or just to apply formatting to a static xml page with XSLT?
__________________
You're now playing ketchup
pablissimo is offline   Reply With Quote
Unread 18 Nov 2003, 17:50   #3
Structural Integrity
Rawr rawr
 
Structural Integrity's Avatar
 
Join Date: Dec 2000
Location: Upside down
Posts: 5,300
Structural Integrity needs a job and a girlfriendStructural Integrity needs a job and a girlfriendStructural Integrity needs a job and a girlfriendStructural Integrity needs a job and a girlfriendStructural Integrity needs a job and a girlfriendStructural Integrity needs a job and a girlfriendStructural Integrity needs a job and a girlfriendStructural Integrity needs a job and a girlfriendStructural Integrity needs a job and a girlfriendStructural Integrity needs a job and a girlfriendStructural Integrity needs a job and a girlfriend
Re: how do i write a web-application based on xml?

At school we did an XML project last year. We had to make an online helpdesk based on XML.
I got the source we produced with the projectgroup on my website ( http://www.structweb.com/?show=project&project=10 ) but it's a big mess (codewise, documentation-wise, and project-wise)

We used Cocoon/Tomcat as server and Xindice as database ( All open source: http://xml.apache.org )
The project was a big fiasco. Source produced is below standards, documentation is not available (Because it's Dutch) and the final product doesn't work (only a few parts do).
I can't say I've become a big fan of XML webapps because of this project. Even more so, I'd tell anyone who wants to do this as a personal project NOT to do it. It's messy and poorly documented/supported compared to proven technologies like PHP.

[edit]
Note, if you want to do something simple with XML/XSL in your webbrowser, you can check out www.w3schools.com/xml and www.w3schools.com/xsl . That is relatively simple to get going.
But if you want serverside scripting like with PHP, you have to go the Cocoon way (Perhaps there are other servers out there, I dunno) which is quite hard to get going (from my experience).
[/edit]

Last edited by Structural Integrity; 18 Nov 2003 at 17:56.
Structural Integrity is offline   Reply With Quote
Unread 18 Nov 2003, 18:08   #4
wu_trax
Registered User
 
Join Date: Jan 2003
Posts: 4,290
wu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet society
Re: how do i write a web-application based on xml?

maybe ill explain what im trying to do.
i want to build an online-shop-system based on xml. so first i need to get the data out of a database and put it into an xml-document (dynamically, ofc). and then im planning to use xslt to transform the whole thing into xhtml or whatever else. the idea is to completly seperate layout from the whole data-base-stuff, so that it becomes easier to reuse the shop for different customers (who all want a different layout).
i already wrote the shop-stuff in php and it became a little more complicated than just a shopping card and a few products. now im planing to do the whole thing again, with java, tomcat and cocoon. i already tryed a few things with cocoon, but that were only very simple examples

adn thanks for the link, ill have a look. im not exactly sure on how to start yet.
__________________
im not tolerant, i just dont care.
wu_trax is offline   Reply With Quote
Unread 19 Nov 2003, 03:30   #5
Coffee
Ensign
 
Coffee's Avatar
 
Join Date: Apr 2000
Location: An intricate fantasy world.
Posts: 166
Coffee is an unknown quantity at this point
Re: how do i write a web-application based on xml?

Seems your adding another layer of complexity (with xslt) when you can just get php to form the html, since every design and layout option can be handled by the css part of xhtml.

visit www.csszengarden.com for a decent demo of what can be done with stylesheets.
__________________
PIE*
Coffee is offline   Reply With Quote
Unread 19 Nov 2003, 20:00   #6
Structural Integrity
Rawr rawr
 
Structural Integrity's Avatar
 
Join Date: Dec 2000
Location: Upside down
Posts: 5,300
Structural Integrity needs a job and a girlfriendStructural Integrity needs a job and a girlfriendStructural Integrity needs a job and a girlfriendStructural Integrity needs a job and a girlfriendStructural Integrity needs a job and a girlfriendStructural Integrity needs a job and a girlfriendStructural Integrity needs a job and a girlfriendStructural Integrity needs a job and a girlfriendStructural Integrity needs a job and a girlfriendStructural Integrity needs a job and a girlfriendStructural Integrity needs a job and a girlfriend
Re: how do i write a web-application based on xml?

What I've learnt from this school project was that the cocoon platform really showed its strength when you used several ways to serve the data to the viewer.
The XSLT was capable of making all kinds of filetypes, ranging from HTML, to WAP to PDF to DOC and much much more. As long as you can write a transformer for it, you can serve that kind of filetype. And this with great ease because your data and page logic was seperated from the XSL stylesheet. So you only had to rewrite the stylesheet, not the page logic. Try doing that with PHP.

For our project cocoon was an overkill, but perhaps it suits your project better.
I'd look at the alternatives of PHP/ASP and decide if the flexibility of cocoon outweighs the development ease of PHP. From what we've experienced it's not that easy developing for cocoon as there are only a few sites that have tutorials and sources about it.

Let us know what you're doing and what your findings are. I find it rather interresting because cocoon might well be the standard of future web development as the people who gave us the project claimed, though I personally have my doubts.
Structural Integrity is offline   Reply With Quote
Unread 19 Nov 2003, 22:14   #7
wu_trax
Registered User
 
Join Date: Jan 2003
Posts: 4,290
wu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet societywu_trax is a pillar of this Internet society
Re: how do i write a web-application based on xml?

i think ill try cocoon, although the last time i tryed to get started with it i gave up frustrated. more or less ill do this just for fun anyway, but if i manage to get it running i might be able to sell it \o/


PS check your PM, at best in the next 24h because i get disconnected after that time by my damn isp
__________________
im not tolerant, i just dont care.
wu_trax is offline   Reply With Quote
Reply



Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Links, Links, Links! Vanilla Programming and Discussion 25 17 Apr 2004 04:13
Web Based IRC clients Mirai General Discussions 2 16 Jun 2003 21:13
Back to MySQL again... Gayle29uk Programming and Discussion 30 27 Apr 2003 06:01
web based ssh Slidey Programming and Discussion 9 19 Dec 2002 18:32
web based irc! (yes yes i know..) Slidey Programming and Discussion 3 4 Nov 2002 14:25


All times are GMT +1. The time now is 00:03.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2002 - 2018