Home > Archive > Cobol > March 2007 > Re: The Lambda lambada...Why embedded SQL is becoming irrelevant
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Re: The Lambda lambada...Why embedded SQL is becoming irrelevant
|
|
|
| gary drummond wrote:
> Pete Dashwood wrote:
> I couldn't find this, but I did find Differences between XHTML and HTML...
XML is a generic document language where data is defined by tags, and
can be defined by relationships within tags. There are strict
definitions - all attributes must be enclosed in some sort of quotation
marks, tags have to be closed, tags are case-sensitive, etc. Documents
that do not do this are not "well-formed", while those that do are. :)
Below is an example.
<mystore>
<customer>
<name>George</name>
<id>1</id>
</customer>
<customer>
<name>Harold</name>
<id>2</id>
</customer>
</mystore>
To bring some order to this data free-for-all, you can define a schema
for the document, so that only certain tags are recognized, their data
types are defined, and possible values are explicitly enumerated. XHTML
applies these rules to the existing HTML structure. Whereas
<HTML>
<BODY>
<p align=center>Hi There<BR>Bye There
<p>
</body>
</html>
is perfectly valid HTML (well, it's not "perfectly" valid, but it would
be rendered as if it were), it is *not* valid XHTML. XHTML defines all
tags as lower-case; attributes must be in quotes; all tags must be
closed; and "center" is not a defined value for the "align" attribute.
This same snippet, in valid XHTML, becomes
<html>
<body>
<p style="text-align:center;">Hi There<br />Bye There</p>
<p />
</body>
</html>
The /> is a shortcut way to close an "empty" tag.
Of course, this is by no means an exhaustive list or example. One of
the biggest changes between XHTML and HTML, other than the strict
schema, is the separation of the tags and formatting. CSS is the best
way to format an XHTML document - keeping style out of the actual
document gives it more flexibility.
Hope that helps...
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~
~ / \ / ~ Live from Albuquerque, NM! ~
~ / \/ o ~ ~
~ / /\ - | ~ daniel@thebelowdomain ~
~ _____ / \ | ~ http://www.djs-consulting.com ~
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
~ GEEKCODE 3.12 GCS/IT d s-:+ a C++ L++ E--- W++ N++ o? K- w$ ~
~ !O M-- V PS+ PE++ Y? !PGP t+ 5? X+ R* tv b+ DI++ D+ G- e ~
~ h---- r+++ z++++ ~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~
"Who is more irrational? A man who believes in a God he doesn't see, or
a man who's offended by a God he doesn't believe in?" - Brad Stine
| |
|
|
|
|
|