Page 1 of 1

using xhtml to display xml data

Posted: Sat Apr 03, 2004 1:25 pm
by kendall
Hello,

i am experimenting with XML data from Access in which i use access to generate XML file of database.

The thing is
how do you incorporate the web design of the page in your xsl document?
I mean to say I have found it very awkward hence the reason i use a <iframe> to show xml in a html page just to keep with the "design layout" but this is a very ugly way.

someone told me about "xhtml" but how do you use xhtml to display xml data.

Can you show me some examples of how you incorporate xml data into your designs.

for an example of what i have take a look at

http://www.onlinetnt.com/community/natu ... oils.shtml

Kendall

Posted: Thu Apr 15, 2004 7:22 am
by phait
erm, your link gives a 404.
I think you may be better of using xsl (extensible stylesheets) to display your xml, then you can define the look and feel according to the root node of your xml and set specific display rules according to the child nodes in your xml.

I suggest you try the following links to get an idea of where to start at:
http://www.w3schools.com and click on the Learn XSL and Learn XSLT
and
http://uk.php.net/manual/en/ref.xslt.php which will give you a start. Bear in mind that PHP5 will change the way you can parse xml into whatever format, but if you won;t be switching for a while then this may set you going.

hth

Posted: Thu Apr 15, 2004 7:53 am
by kendall
phait,

sorry about that but i have made some significatn progress since then and have came up with a solutions myself... However i am having some compatability issues with viewing it in netscape possible mozilla. I dont know if it because the XML structure is based from microsoft access.

http://www.onlinetnt.com/community/body ... _soaps.xml

Kendall

Posted: Fri Apr 16, 2004 7:04 pm
by phait
hi,
well, it might be. I can see looking at the xml that the schema seems to be based on some M$ office schema which may be propriortary. I also see that the xsl has numerous Dreamweaver code references which may or may not affect the outcome.

I'll have to download firefox and have a butchers in that to see the problem exactly.

Posted: Sat Apr 17, 2004 12:24 pm
by kendall
phait,

yeah it affects the outcome alot. I have developed other XSL/XML type documents that were browser compatible however the xml code wer not Micorsoft generated hence why its a theroy. Oh well most people use IE anyway it was trouble enuff getting people just to update their browsers

Kendall