|
Posted by robert maas, see http://tinyurl.com/uh3t on 02/14/07 04:35
> From: "Jukka K. Korpela" <jkorp...@cs.tut.fi>
> It is actually invalid; see Rik's answers, or check
> http://www.cs.tut.fi/~jkorpela/html/empty.html
> (which discusses a more common problem, limited to XHTML-like
> syntax for empty elements, where the issue is different - since a
> validator knows that an HTML element like <br> has EMPTY declared
> content, it effectively treats <br/> just as <br>> without looking
> for a matching "/").
Shit! I took a class at De Anza College (in Cupertino, CA), where
the instructor emphased strongly that we must **stop** writing our
Web pages in old HTML that is incompatible with XML, instead
absolutely *must* write all Web pages in HTML->XHTML transitional,
where we absolutely must not use any <tag> without the matching
</tag>, not even <br> or <p>, but we *are* allowed to liberally use
<tag/> or <tag /> when we don't enclose anything. She was fucking
wrong, I now learn! Thanks a lot!!
Because there's a possible problem with <p /> leading into the
place where the validator "found" a problem, that according to the
"Web Design" instructor doesn't have anything wrong with it, I
laborously changed all the paragraphs leading into that part of the
file to have <p>...</p>, and to avoid all use of the br element
whatsoever, using <pre>...</pre> instead whenever I want one or
more single lines with no rearranging of line breaks.
Now it passes validation! Thanks! (I think so. I haven't yet looked
at the document to see whether it looks all trashed now. Gonna take
my first look at my PLASTIC FACIAL SURGERY / FACE TRANSPLANT now
... yuk!! Now instead of flowing paragraphs with unbroken lines in
the middle, the pre element causes a blank line after each section,
and also the p element causes a blank line *before* the paragraph
but not after. Does anybody know a way to avoid that blank line
after a pre section, and before a paragraph?? I've been needing
that information for years, but this seems to be my first chance to
ask the real experts!!)
I want it to look like this:
The meaning of that is that arg1 arg2 thru argz are each required, but
then any combination of the keywords may be used, each a pair of the
keyword itself and the corresponding value. For example, here's a
description of a function's calling conventions in that notation:
(make-hash-table &key :test :size :rehash-size :rehash-threshold)
***No blank line here***
where there are no required arguments, only keyword arguments, so all
of the following forms of call are syntactically valid:
(make-hash-table)
(make-hash-table :test 'equal)
(make-hash-table :size 300)
(make-hash-table :size 300 :rehash-size 1.8)
(make-hash-table :test 'equal :size 300)
(make-hash-table :size 300 :test 'equal)
Here's another function's calling conventions:
(reduce function sequence &key :from-end :start :end :initial-value)
***No blank line here***
and several syntactically-valid call forms:
How do I get that effect in SGML/HTML->XHTML/XML transitional??
> > It's littered with <p /> <br /> and <hr /> tags.
> Yes, that's the practical markup problem, and easy to fix.
How do I fix that without introducing extra blank line where not wanted?
> <br /> is formally valid HTML, it just _means_ <br>>.
That's meaningless. Any < or > by itself is unbalanced brockets,
which is complete garbage in SGML/XML.
So anyway, I'm going to make a pass through my entire document,
even though it passes validation, to flush all instances of <br />,
and do something else instead. Starting pass at 20:28 PST ...
OK, I did just the very first of them:
Anything I haven't yet included might be found
<a href="http://merd.sourceforge.net/pixel/language-study/syntax-across-languages.html">here</a>
in much terser form but still perhaps useful if you then use Google to find
the documentation for the keyword cited there.<br></br>
Also, the original perl cookbook sourcecode and partial translations to
several other languages can be found
<a href="http://pleac.sourceforge.net/">here</a>,
but I noticed some mistakes in my casual browsing of the CommonLisp section,
And just that one fix makes it fail validation already!! How do I
force a line break, **without** a blank line, in the middle of a
paragraph, in transitional XHTML??
Navigation:
[Reply to this message]
|