XML to HTML - possible?

P

Peter Morris

Newbie-ish question:

I've done a little programming with XML. I can use a cascading
style sheet to specify text format, such things as font, size and style.
But I want something a bit more complex than this.

For example, I want to put a title bar at the top of each page
in my website. Rather than specify the HTML in every page, I'd like
each page to include a piece of XML like this :
<XML ID=TOP>
<PAGE_TITLE> Welcome</PAGE_TITLE>
</XML>
Then use a stylesheet to specify the HTML for this.

A bit more complex: I'd like to read rows from a database table,
returning them as XML, then use a stylesheet to put them in
an HTML table.

Is this even possible?
Any web pages with guides to doing this?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,997
Messages
2,570,241
Members
46,831
Latest member
RusselWill

Latest Threads

Top