PDA

View Full Version : Putting XML into HTML help (newbie)


Malapert
02-18-2010, 11:25 PM
So I'm new to xml but I learn best by watching rather than reading. So, here's my question.

I've created a little list file...
[CODE]
<xml>

<calendar>
<path>55plus_calendar.html</path>
<name>55 Plus</name>
</calendar>

<calendar>
<path>55pluslunchbunch_calendar.html</path>
<name>55 Plus Lunch Bunch</name>
</calendar>
</xml>
[CODE]

I have a site built in Dreamweaver, mostly html & css and I want to list these calendar names and have them linkable to their respective paths. What kind of code do I use to put this into my site? I just want a simple list of links out of this. W3 teaches xml but doesn't do a great job of telling you the practical application of it. Do I use javascript? Can I use simple html? I'm kinda lost. :confused:

Thanks!

drhowarddrfine
02-19-2010, 04:26 AM
There are two ways to do this, one you can't use.

You have to remember that XML is strictly a markup language for documents to describe the text and nothing more. Browsers are generally behind the times in handling XML. For example, Firefox is the only browser that supports XLink for inserting links into XML.

So, the best way is to use XSLT for XSL-Transforming the XML into XHTML for modern browsers and HTML for Internet Explorer (which can't handle XHTML or XSLT without help).

It's too late in the evening for me to be writing an XSL tutorial so I'll leave that for W3Schools.