| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Registered User
Join Date: Feb 2007
Posts: 86
|
XML instead of PHP includes? Make sense?
I'm new to XML, but putzing around with the newer Blogger beta XML templates just to see what I could learn, it seems to me that XML tags are used as building blocks much the same way a php include would be used. Since XML doesn't require a specific server set-up I can see the huge advantage of this if planned out well. Is this the big advantage to the CSS/XML combo I've heard so much about? Design each XML chunk once with CSS and then drop in the XML chunks on each template? I've been using CSS for a while now, but was always intimidated by XML, so this is a new thought for me. I hope I'm right about this! Any good online resources about the best way to work like this? |
|
|
|
|
|
#2 (permalink) |
|
Senior Member
Join Date: Jan 2005
Posts: 12,340
|
Well, you need something to turn that XML into HTML for the browser. Of course, XML is like HTML in that it doesn't "do" anything. You still have to use some sort of server-side processing. Like PHP. I'm not familiar with Blogger, but I'd imagine they're using an XML based templating system to make it easier for non-web-professionals. That's what Blogger is for, anyway. |
|
|
|
#3 (permalink) |
|
Registered User
Join Date: Feb 2007
Posts: 86
|
Ah, gotcha. That makes sense. Blogger will just have these XML slugs like <b:whatever></b:whatever> and if you delete them part of your blogger content disappears. Not being able to see the server-side scripting made it seem to me that the XML was designated on some linked XML page and all that was necessary was to just slap the XML slug into the XHTML template. |
|
![]() |