XHTML,HTML or XML?

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply

What web standard do you prefer?

XHTML
5
56%
HTML
1
11%
XML
3
33%
 
Total votes: 9

Cruzado_Mainfrm
Forum Contributor
Posts: 346
Joined: Sun Jun 15, 2003 11:22 pm
Location: Miami, FL

XHTML,HTML or XML?

Post by Cruzado_Mainfrm »

Which one do u prefer? Which one do you think should survive?
evilMind
Forum Contributor
Posts: 145
Joined: Fri Sep 19, 2003 10:09 am
Location: Earth

Post by evilMind »

XML is easier to use since you can define your own syntax. However, XHTML is the way to go for some applications. You see, with the combined efforts of XSLT, XPointer, XLink, etc... You can do many wonderful things :)

? is <br /> (fifty times)
easier than
<lineBreak count="50" /> ?

That's why I like XML
User avatar
nigma
DevNet Resident
Posts: 1094
Joined: Sat Jan 25, 2003 1:49 am

Post by nigma »

Evilmind, You can create custom tags like your example using XML?
You have a link to a tutorial I could check out on how to do this? I have found XML tutorials, but they mainly informed you how to store data in an XML doc and use XSL to display the data.
jason
Site Admin
Posts: 1767
Joined: Thu Apr 18, 2002 3:14 pm
Location: Montreal, CA
Contact:

Post by jason »

evilMind wrote:XML is easier to use since you can define your own syntax. However, XHTML is the way to go for some applications. You see, with the combined efforts of XSLT, XPointer, XLink, etc... You can do many wonderful things :)
XHTML is XML.
XSLT is XML.
XPointer is XML.

Each is an XML application that can be used for different things. XHTML is how you use XML to create web pages.
qads
DevNet Resident
Posts: 1199
Joined: Tue Apr 23, 2002 10:02 am
Location: Brisbane

Post by qads »

great....jason just killed it lol...thanks man :lol:
evilMind
Forum Contributor
Posts: 145
Joined: Fri Sep 19, 2003 10:09 am
Location: Earth

Post by evilMind »

before I correct jason... Nigma, I don't have a link handy I spent time learning XML + from books, not online. Sorry.
Now, on with the show.
XHTML is XML.
XSLT is XML.
XPointer is XML.

Each is an XML application that can be used for different things. XHTML is how you use XML to create web pages.
Correction.
eXtensible Markup Language:
XML is a metalanguage. That is, it's a language which is used to describe other languages. It may seem that xml and (x|X)?html are the same, the difference between these two are vast. One example, that's it. -> HTML is used to format a document but not to describe it.. ahh xml = descriptive (meta) language.

eXtensible StyleSheet Language for Transformation:
XSLT is a language for transforming XML documents. You use XSLT to transform one XML document into another type of document. You may be thinking XML -> XML ... Although it can be, it's more commonly XML->(x|X)?html.

eXtensible? Pointer:
XPointer (along w/XLink) is used to define the relationship between objects. Think of hypertext links here....


Although it **May** seem that these languages are in fact XML. They are not. They only conform to the rules of the metalanguage (XML)
Cruzado_Mainfrm
Forum Contributor
Posts: 346
Joined: Sun Jun 15, 2003 11:22 pm
Location: Miami, FL

Post by Cruzado_Mainfrm »

yay that was Evil :D
I'm looking foward to buy an XML book, any suggestions?
also, any other book, like for XHTML that u may now will be wonderful to know
User avatar
nigma
DevNet Resident
Posts: 1094
Joined: Sat Jan 25, 2003 1:49 am

Post by nigma »

I don't know about a book, but w3schools has a great tutorial on both XMl and XHTML.

XHTML: http://www.w3schools.com/xhtml/default.asp
XML: http://www.w3schools.com/xml/default.asp
jason
Site Admin
Posts: 1767
Joined: Thu Apr 18, 2002 3:14 pm
Location: Montreal, CA
Contact:

Post by jason »

evilMind: Nice thoughtful response. Don't worry, not harsh. However, you might want to inform the W3C that XHTML and XSLT are not XML.

"...XHTML 1.0, a reformulation of HTML 4 as an XML 1.0 application..."

"A transformation in the XSLT language is expressed as a well-formed XML document..."

XPointer is not based on XML, but use in certain XML applications. Sorry, I was just on a roll with X[keyword].

Sure, XHTML and XSLT are not vanilla XML, but they are XML applications. This is not to say that XML and XHTML are the same, but that XHTML is XML, but XML is not XHTML.
Cruzado_Mainfrm
Forum Contributor
Posts: 346
Joined: Sun Jun 15, 2003 11:22 pm
Location: Miami, FL

Post by Cruzado_Mainfrm »

i learnt XML and XHTML in w3schools u know... but i thought i might get more info in a book
User avatar
Wizard
Forum Newbie
Posts: 15
Joined: Sat Oct 11, 2003 3:37 am
Location: Latvia

Post by Wizard »

HTML & JAVA
Post Reply