Click to See Complete Forum and Search --> : Home Made Content Management System in XML


Cemiess
09-30-2005, 12:34 PM
I've just started with XML/XSLT and I'm quite excited about the possibilities. (Sad aren't I)

I'm certain I can create some kind of Content Management System with it. Can anyone help me out? Let's take a simple article XML database. I want to get each article to show on a different page but I'm not sure how to approach it.

I'm going to make a menu page with the title, url(?) and summary of all the articles. However, I then want to click a title and be shown the whole article.

Is there a way to get the XSLT to pick a specific record?

Thanks from a noob. :p

herodote92
09-30-2005, 02:34 PM
I also had an idea of doing something like that. After having spent some weeks on the specs and lost half of the few hair that was still trying to survive on my head, I think I have to give up. This XML thing is a real nightmare, it's not dynamic at all, and I incline to think that it's good only for transferring data between different systems, or showing frozen views of the data.

I spent three hours today trying to figure out how it could be possible to do something like : x = 1 in XML (or XSLT, or whatever). Well, the W3C online doc simply says that this is impossible. There is such a thing called a variable in XSLT, but it happens to be a constant !!! No way to change its value. So what good is all the toil and time spent on it, I dunno.

The only way I can imagine is generating, thru XSLT, a HTML page including hrefs, or onclicks, or whatever, and use JavaScript to manage the rest of it. But if it is so, why not use simply HTML + Javascript ? So much easier.