Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is XML for me?

Status
Not open for further replies.

Irishmo

Technical User
Dec 26, 2004
1
US
Challenge: Courses currently formatted twice for print and online delivery. Would like one source of text/content for editing to deliver for print, online, pda.

Have used server-side includes and text files. Would XML be better than XHTML and CSS?

Would special schemas be needed for math and foreign language courses?
 
Ummm....

XHTML is XML + DTD/XSL/CSS ;-)

HTML is a form of XML with predefined tags...

with XML, you could set up different XSL (Xtensible Stylesheet Language) or DTD (Document Template Definition) to display in different ways... which would result in a html/xhtml document...

Have Fun, Be Young... Code BASIC
-Josh

cubee101.gif


PROGRAMMER: (n) Red-eyed, mumbling mammal capable of conversing with inanimate objects.
 
Basically what Cube said above, XHTML is the by-product of processing an XML into presentable data either thru XSL/DTD or even CSS( tho XML with CSS doesnt work nearly as well as XSL ).

Karl Blessing
PHP/MySQL Developer
 
yeah, I'm not sure how clear I was...

Use DTD or XSL to translate to a html (aka xhtml)

then you could use a CSS to define the display...

And yes... You could setup the display with XSL and leave the CSS out... or if you already have a CSS setup, you can save some typing on the XSL side...

HTML - Hyper Text Markup Lanuguage
XML - Xtensible Markup Language
CSS - Cascading Style Sheet
XSL - Xtensible StyleSheet Language
XSL is basically to CSS as XML is to HTML
both allow you to extend the languages, or more or less create your own...

>>Would XML be better than XHTML and CSS?

XML would be more FLEXIBLE than HTML... CSS can be used to the end result of either choice...

Have Fun, Be Young... Code BASIC
-Josh

cubee101.gif


PROGRAMMER: (n) Red-eyed, mumbling mammal capable of conversing with inanimate objects.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top