Page 1 of 1
include commands for xhtml
Posted: Thu Oct 07, 2004 1:42 pm
by kendall
Hello, I am developing and xml based website and i wanted to find out if at all i can <!-- include# file="file.xml" --> in a shtml document. If not what methods can i use to import xml data into other files?
Kendall
Posted: Thu Oct 07, 2004 1:49 pm
by twigletmac
You can use XSLT - PHP can do the transformations server side and then you can feed it into other files.
Mac
Posted: Thu Oct 07, 2004 2:19 pm
by kendall
twigle,
what do you mean??
as in create a xhtml complaint php file????
please elaborate
Kendall
Posted: Thu Oct 07, 2004 2:31 pm
by twigletmac
Basically PHP just facilitates XSLT creating XHTML out of your XML. You could do the transformations clientside but then you're at the mercy of different browser implementations.
If you are going to be doing a lot of XML work and haven't yet played with XML and XSLT you should go hunt out some tutorials and have a go - it's a lot of fun and kinda like magic, plain boring XML in - nice pretty web page out
Mac
Posted: Thu Oct 07, 2004 2:53 pm
by kendall
oh twigle beleev me i have i even suprised my self in creating a recursive xslt sheet that takes catalog information and listing it out in a "3 in a row " loop. i ask this question in reference to
viewtopic.php?p=137143#137143 Im also reasearching ways of using it with MySQL but havent found anything understandable yet
Posted: Thu Oct 07, 2004 3:30 pm
by timvw