473,406 Members | 2,705 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

XML content fed into a HTML page

Have read some basic tutorials on xml and understand that xml is a markup
language used to describe data using tags which can be defined by the user.
Am about to start work on a content rich information site which will be
dynamic using php and mysql for many of the sites functions.

From what I can gather I have a number of options to get the content into
the webpages:

1. Feed content from a database into the web pages
2. Create content in conventional html pages with php templates to write the
surrounding navigation and site features into the rest of the page

But can XML be used instead?

How would xml be used to get the content from an xml page into the site?

Would it be easier to just use one of the methods listed above? At the
moment I am veering towards method number 2.

Does anyone have any links to xml tutorials which demonstrate how to feed
content written in xml format into a html document?

Am I barking (mad) up the wrong tree?!

Answers on a postcard

Simon

Jul 20 '05 #1
1 1665
On Thu, 21 Aug 2003 19:01:23 +0000 (UTC), "ChronicFatigue"
<NO*********@chronic-fatigue.co.uk> wrote:
Am I barking (mad) up the wrong tree?!
No, this is an excellent approach.
Answers on a postcard


Sorry, it's too big !

I'd love to explain everything in huge detail - but there's work to
do, and I'm basically avoiding it, so I don't have time. 8-(
High level:

Take content out of database. Use programmatic code (PHP / ASP / JSP
/ whatever you like) to write it into an XML DOM.

Generate this XML according to a Schema. Choose your schema by
borrowing an existing one, in preference to inventing one

On the server, use XSLT to transform this to HTML. Return the HTML to
the client..
Bad things to do:

Use CSS to "style" the XML on the client. Far too inflexible.

Use XSLT on the _client_. Works beautifully, but only under IE. Good
for some intranets though.

Generate XML without using a DOM.

Use RSS 2.0

Good things to do:

Borrow schemas. Glue suitable schemas together from all over the place
(DocBook (not much use though), XHTML (hey, it's a text markup
language), RSS 1.0)

Use client-side XSLT, but only if browser-type sniffing confirms a
suitable browser. Make sure you have a non-client backup.

Realise that your site is basically a weblog with bells on, and
implement the whole thing with MovableType and not writing the code
yourself. Result !

Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Catherine Lynn Wood | last post by:
I need to know how to overlap DIV content within 'relative' associated rendering. I am building div layers in the middle of a page and when I set positioning to absolute in the CSS, it references...
7
by: McKirahan | last post by:
What is "active content"? My ASP page just returns HTML.... I have a page with an .htm extension that has a form whose action is an ASP page which generates a report after updating a database...
10
by: clintonG | last post by:
Can somebody direct me to documents or source that supports the use of collapsible content that is collapsed by default when the page is loaded? The secondary objective would of course be...
6
by: Duncan | last post by:
Does anybody know how the following can be acheived using html or xhtml? I need to present colleagues with a 'to-do' list. Lets say the list has ten or so jobs and each job consists of five or...
4
by: shypen42 | last post by:
Hi, I'd like to know how to serve web pages as "cleanly" as possible, maybe validating them if it's possible. How should I do to both respect standards *and* have it work under the various IE...
7
by: xkeops | last post by:
Thinking of creating a website, most of the pages will have a general toolbar menu, a content and a footer. The content will be the only one who's gonna change but the rest (header,footer) will...
0
by: Managed Code | last post by:
Hello All, Here is my issue and thanks in advance for any assistance. I have a base page with a dropdownlist that fires an event with the selected index. The content page catches the event and...
8
by: Amit | last post by:
I have a master page and a content page but the stylesheet isnt getting applied like how it looks in visual studio design view. The master page is defined like this: <%@ Master Language="VB"...
13
by: =?Utf-8?B?S2VzdGZpZWxk?= | last post by:
Hi Our company has a .Net web service that, when called via asp.net web pages across our network works 100%! The problem is that when we try and call the web service from a remote machine, one...
9
by: pbd22 | last post by:
Hi. This is just a disaster management question. I am using XMLHTTP for the dynamic loading of content in a very crucial area of my web site. Same as an IFrame, but using XMLHTTP and a DIV. I...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.