XHTML,HTML or XML?
Moderator: General Moderators
-
Cruzado_Mainfrm
- Forum Contributor
- Posts: 346
- Joined: Sun Jun 15, 2003 11:22 pm
- Location: Miami, FL
XHTML,HTML or XML?
Which one do u prefer? Which one do you think should survive?
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
? is <br /> (fifty times)
easier than
<lineBreak count="50" /> ?
That's why I like XML
XHTML is XML.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
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.
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.
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)
Now, on with the show.
Correction.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.
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
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
XHTML: http://www.w3schools.com/xhtml/default.asp
XML: http://www.w3schools.com/xml/default.asp
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.
"...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