Discussing this topic over at PossibleXmlReplacement too, since HTML and XML are similar syntax.
Or maybe they aren't. One of the arguments of YAML is that data encoding (with metadata) and text markup are two entirely different things. They say "YamlAintMarkupLanguage," because YAML drops the "text markup" features, in order to simplify data markup.
See AlternativesToXml -- particularly the lists in the URLs referenced at the end, for alternatives to XML for text markup.
In particular, considering the http://www.pault.com/pault/pxml/xmlalternatives.html list, scroll down to "Grutatxt" or "txt2tags" -- both Wiki-like text markup languages. Or "AsciiDoc?" -- same, with nroff/troff "dot" line commands. And there are plenty of others on just that list.
Good Point. I'd still like to solve the problems with HTML, so there would be easy porting. (All our current HTML hanging around on servers, hard drives.) ..As the markup language it is, in it's current state, I need to convert html over to something easier to manage and read. I agree that there is a problem that XML is too markup-like for representing Data. However, when we are in need of reading and managing all the millions of already written HTML out there, one of the main problems is still purely the < and > symbols (and whitespace, tabs, indenting). Just different syntax (read: easy porting) might solve some of the main readability problems of html.
HTML Readability...
Possibility 1:
[IMG SRC="http://c2.com" BORDER="0" WIDTH="1" HEIGHT="1" NOSAVE ] [A HREF="http://c2.com" TARGET="_top"] [IMG SRC="hxxp://c2.com/img.png" BORDER="0" ALIGN="center" ALT="Go Wiki"] [BR]Link to Wiki Main [/A] [P] Some Text.. [BR] More Content..Possibility 2:
[IMG SRC:=http://c2.com ; BORDER:=0; WIDTH:=1; HEIGHT:=1; NOSAVE; ] [A HREF:=http://c2.com ; TARGET:=_top; ] [IMG SRC:=hxxp://c2.com/img.png ; BORDER:=0; ALIGN:=center; ALT:=Go Wiki;] [BR]Link to Wiki Main [/A] [P] Some Text.. [BR] More Content..Possibility 3:
[A HREF=>http://c2.com TARGET=_top ] [IMG SRC=>hxxp://c2.com/img.png BORDER=0 ALIGN=center ALT=go wiki;] [BR]link to wiki main [/A]Possibility 4:
[A HREF=http://c2.com TARGET=_top IMG=hxxp://c2.com/img.png BORDER=0 ALIGN=center ALT=go wiki] Link to wiki main; [/A] [P] Some text... | Another Line is started | No need to verbosely type out BR | Just use the verticle line symbol to end a line | Another new line | [/P] Or... [P] | A new line | Another Line | No need to verbosely type out BR | Just use a verticle line (pipe character?) | Another new line [/P]
How about regular brackets... The reason, you might not want to consider brackets as a possible alternative...
(P) Some Text..This is a page (a good page too) and you are the 14th visitor. (BR) More Content.. You like the page because we show articles (high quality ones)....is because we do use brackets in conversation when typing on the internet. However, we rarely use square brackets as in Possibility 1. But... see below. Data types can solve that brack problem if we want to use brackets ().
How about regular brackets with data types...
(a href: "http://c2.com" target: "_top" (img src: "hxxp://c2.com/img.png" border: "0" align: "center" alt: "Go Wiki") (br) "Link to Wiki Main") ("Some Text.." (br) "More Content..")-- SmugLispWeenie
Yes, I need some Lisp people to chime in on the brackets, because my example above was rather incomplete. That's a clean solution you posted above, SmugLispWeenie. (I don't think you are smug or a weenie)
How does Possibility 1 differ from HTML, except that it uses square brackets instead of greater-than/less-than?
The best ""replacement" for HTML would be for people to abandon this "semantic web" concept and accept that HTML is rich-text markup. If you want semantic markup, then use semantic markup - XML works fine. But don't use that as your output format, use it as a storage/interchange format and use a transform to create rich text (HTML) for display. It's essentially impossible to create non-trivial websites and layouts (and most certainly not the sort of rich, interactive sites that are popular) while still maintaining anything resembling "semantic" markup. If we get HTML back to it's roots as rich-text, we can actually have a standard on display formats, meaning that there will be less cross-browser hackery.
An even better "replacement" for HTML is admit that markup -- whether semantic or presentational -- is different from content. Therefore, make the markup a companion structure, tightly bound to the content, so that the markup changes when the content changes. This allows, for example, multiple markups on the same document. It also greatly simplifies the incorporation of non-textual content into a hypermedium.