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 sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What is XHTML

Status
Not open for further replies.

monkeymeister

Programmer
Mar 17, 2005
58
GB
What is XHTML? Is it simply HTML that conforms to XML standards such as always closing tags etc? Is it used alongside XSLT?


Cheers,

Mike
 
> What is XHTML? Is it simply HTML that conforms to XML standards such as always closing tags etc?
Yes, XHTML is HTML reformulated to conform to XML.

> Is it used alongside XSLT?
It can be. In fact, some developers argue that there are 2 forms of XHTML:
1. XHTML, as named and defined by the W3C - 2. XHTML, as XML transformed using XSLT.

However, I've found that using XSLT alongside a document of the first XHTML form is not a good thing. . .
 
i would disagree with #2, as XML transformed with XSLT can produce any output, not necessarily valid XHTML. there is only one true definition of XHTML - that of the W3C.


-jeff
try { succeed(); } catch(E) { tryAgain(); } finally { rtfm(); }
i like your sleeves...they're real big
 
jemminger said:
i would disagree with #2, as XML transformed with XSLT can produce any output, not necessarily valid XHTML. there is only one true definition of XHTML - that of the W3C.
True, any output can be produced. However, if you use a custom DTD, it is considered valid XHTML according to the custom DTD. Validity in such a case is a matter of perspective. ;-)
 
In fact, some developers argue that there are 2 forms of XHTML...
They'd be wrong then. XHTML is XHTML is XHTML. It doesn't matter if it's generated by you writing it in notepad, transforming an XML document with XSLT, running a server-side script, whatever.

XSLT is a language for transforming one XML document into another. The source or destination document might be XHTML (or both might, or neither). You can also get XSLT to transform one-way from XML to HTML.

-- Chris Hunt
Webmaster & Tragedian
Extra Connections Ltd
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top