March 8th, 2007
Apparently Google does not recognize XHTML, at least not when served as application/xhtml+xml. Try this search which should return exactly one hit pointing to an XHTML document. Notice that the file format is “unrecognized” and they offer to let you “View it as HTML”.
XOM XPath Mapping
File Format: Unrecognized – View as HTML XOM 1.1 supports XPath 1.0 reasonably faithfully. However there are some differences between the XPath data model and the XOM data model you need to be … www.ibiblio.org/xml/XOM/xpath.xhtml – Similar pages – Filter |
Read the rest of this entry »
Posted in Web Development | 7 Comments »
March 2nd, 2007
A couple of months ago the Middlebury College history department banned students from citing Wikipedia in essays and exams. In particular the faculty statement said:
Whereas Wikipedia is extraordinarily convenient and, for some general purposes, extremely useful, it nonetheless suffers inevitably from inaccuracies deriving in large measure from its unique manner of compilation. Students are responsible for the accuracy of information they provide, and they cannot point to Wikipedia or any similar source that may appear in the future to escape the consequences of errors.
However their reasoning is fatally flawed, and speaks toward poor education and worse pedagogy.
Read the rest of this entry »
Posted in Web Development | 11 Comments »
March 1st, 2007
I’ve long been an advocate of outside-in API design. This reflects my interest in user-interface principles in API design. When designing a GUI it is customary to mock it up on paper and then with prototyping tools before implementing the internal code. This helps the interface reflect the user’s goals and expectations rather than the internal data structures of the program. In API design, this means the class becomes more easily usable by decoupled client code.
It occurs to me that the same principles apply in language design. In particular we should try writing some code with proposed new features before we implement the features. This has several advantages:
- Ensures we get what we need, rather than what the proposal supports
- Helps us understand exactly what is being proposed
- Shows the strengths and weaknesses of each proposal
- Avoids unnecessary features that don’t support a real use case
Consequently herewith are some challenges for the proposers of the various closure proposals. I’ve tried to make them as simple as possible so that the closure issues will be focused on.
Read the rest of this entry »
Posted in Blogroll | 11 Comments »
February 27th, 2007
A bogon is an element that appears in an HTML document, but has never been recognized by any browser. You’ll often find them by viewing source on pages written by XML geeks like me. I got the term from John Cowan’s TagSoup, which has, a --nobogons
switch to suppress any elements it doesn’t recognize.
A semibogon (my own coinage) is an old element that used to be recognized by one or more browsers but is no longer. Examples include:
marquee
basefont
bgsound
keygen
bgsound
spacer
wbr
nobr
I’m trying to generate a reasonably complete list of these semibogons for Refactoring HTML. Can anyone add to this list?
Posted in Refactoring HTML, Web Development | 10 Comments »
February 26th, 2007
There’s a large rebellion over XML config files from programmers who don’t like to type XML and don’t want to learn APIs for processing it. They’d rather limp along with the same scanf
code they’ve been using for the last 20 years.
The problem is there really isn’t such a thing as a plain text config file. What there is are specially formatted text files that are easily as complex as the XML equivalent but inconsistent, poorly documented, and easily broken. For instance, consider this extract from LogValidator’s “plain text” config file:
Read the rest of this entry »
Posted in XML | 26 Comments »