Slashdot Mirror


Why You Should Use XHTML

Da_Slayer writes "The w3's HTML group has released the 6th public working draft for XHTML 2.0. XHTML 2 is a general-purpose markup language designed for representing documents for a wide range of purposes across the Web. Meaning it is to be used for document structuring which is why it does not have presentation elements. The draft is located at w3's website. Also they have a FAQ about why you should use XHTML over HTML. It goes into specifics about embedding MathML, SVG, etc... and has links to tools and resources to help convert existing html documents to xhtml. One of those resources is a document on XML events and its advantages over the onclick style of event handling."

657 comments

  1. File this in the Irony category by Anonymous Coward · · Score: 3, Insightful

    Slashdot isn't even valid regular HTML, let alone XHTML, and they're running a story on why we should be using XHTML? I'd laugh if it weren't so sad.

    1. Re:File this in the Irony category by smartalecvt · · Score: 2, Informative

      There were two good articles on alistapart.com about bringing /. up to code.

      one and two

      Inertia is an ugly thing.
    2. Re:File this in the Irony category by Saeed+al-Sahaf · · Score: 1
      Slashdot isn't even valid regular HTML, let alone XHTML, and they're running a story on...

      ...blaw, blaw, blaw...

      Really, what does the state of Slashcode have to do with running a story on the needs and status of XHTML? Anything at all? Not really.

      --
      "Who are in control, they are not in control of anything - they don't even control themselves!" - Glen Beck
    3. Re:File this in the Irony category by Anonymous Coward · · Score: 0

      They're running a story on why you should use XHTML while completely ignoring the advice themselves. They're supposed to be a site for geeks and tech and everything, but they're using broken code from 1998.

    4. Re:File this in the Irony category by Anonymous Coward · · Score: 0

      In Soviet Russia mileage varies YOU!

    5. Re:File this in the Irony category by critter_hunter · · Score: 3, Informative

      Rob mentionned in his journal not too long ago that he had redesigned his page using HTML+CSS and that he would like to someday do the same for Slashdot.

      --
      Karma: Could be worse (could be raining)
    6. Re:File this in the Irony category by dustinbarbour · · Score: 1

      So the first article was written back in November of 2003 nd we still don't have an XHTML version of Slashdot? WTF? The work was already done for you!

    7. Re:File this in the Irony category by Anonymous Coward · · Score: 0

      Slashdot isn't even valid regular HTML, let alone XHTML, and they're running a story on...

      Really, what does the state of Slashcode have to do with running a story on the needs and status of XHTML?

      It's called practicing what you preach. What good is promoting an article called "Why you should..." when you don't do it yourself?

      It's like telling kids not to do drugs while shooting heroin in front of them.

    8. Re:File this in the Irony category by Saeed+al-Sahaf · · Score: 1
      It's called practicing what you preach.

      Slashdot is not preaching anything. They are running a story for discussion.

      --
      "Who are in control, they are not in control of anything - they don't even control themselves!" - Glen Beck
    9. Re:File this in the Irony category by D'Sphitz · · Score: 1

      Oh yeah, and since they ran a story on PHP 5 last week they're total hypocrites for using Perl. I mean, come on, practice what you preach Slashdot!

    10. Re:File this in the Irony category by sp0rk173 · · Score: 1

      Psh. YOU'RE running a story for discussion....uh....DUMB HEAD!

    11. Re:File this in the Irony category by Anonymous Coward · · Score: 0

      The difference was that story was not "WHY YOU SHOULD SWITCH TO PHP 5", now was it?

    12. Re:File this in the Irony category by Anonymous Coward · · Score: 0

      Go cry some where else noob.

    13. Re:File this in the Irony category by kristaps.kaupe · · Score: 1

      I think main problem is not making Slashdot itself as correct XHTML. Somebody should also make all posted arcticles and comments valid XHTML. Maybe HTML Tidy could help there?

    14. Re:File this in the Irony category by Anonymous Coward · · Score: 0

      Haha, you called me a noob. That's a good one.

    15. Re:File this in the Irony category by Saeed+al-Sahaf · · Score: 1

      I'm not running any story.

      They are running a story for discussion.

      They're is also acceptable, but "they are" is perfectly correct.

      --
      "Who are in control, they are not in control of anything - they don't even control themselves!" - Glen Beck
    16. Re:File this in the Irony category by Grant_Watson · · Score: 2, Informative

      "WTF? The work was already done for you!"

      There's a big difference between converting a staticly-saved page to XHTML and patching up Slashcode to generate the same. The latter would have to be done to make Slashdot use XHTML, and it's a lot more work.

      Still, CmdrTaco expressed interest in patches, if anyone would like to provide them.

    17. Re:File this in the Irony category by Psycizo · · Score: 1

      Incorrect usage of alt property.

    18. Re:File this in the Irony category by critter_hunter · · Score: 1

      Nobody claimed he was good at it. The page doesn't validate at all - heck, he put his STYLE element outside the HEAD! Plenty of incorrect nesting of elements, and he never encloses his URLs in quotes on hrefs...it sucks, but it's still a lot better than the HTML on Slashdot.

      --
      Karma: Could be worse (could be raining)
    19. Re:File this in the Irony category by siliconjunkie · · Score: 1
    20. Re:File this in the Irony category by yourruinreverse · · Score: 1

      Or maybe the PHP solution to malformed HTML, Lib-scrub?

      --
      JeR
    21. Re:File this in the Irony category by Kmos · · Score: 1

      Hi!

      Try this: http://validator.w3.org/check?uri=http%3A%2F%2Fwww .google.com

      Even Google isn't valid html and what's the problem with that!? it doesn't work in your browser well!? so shut ut...

      --

      I'm a Lost Soul in this Lost World...
    22. Re:File this in the Irony category by ssssmemyself · · Score: 1

      Also, Michael filed this under the "life-not-complicated-enough-already-apparently dept." He doesn't seem very happy about XHTML, or valid HTML for that matter, either.

    23. Re:File this in the Irony category by space_man51 · · Score: 1

      Considering how few tags are allowed in comments, this isn't hard in theory:

      • Use HTML Tidy like you suggested to make sure all tags are closed.
      • Replace any remaining
        <b>
        and
        <i>
        tags with
        <span style="font-weight:bold">
        and
        <span syle="font-style: italic">
        .
      • (Optionally) Add an XHTML validator (and auto tag closer) to the Slashcode to parse and fix comments.

      The problem is, this may break a lot of comments were the author was expecting one thing, and now it looks different.

      Maybe if we all start writing well-coded comments, the transition will be easier!

      Here is another idea: instead of allowing HTML in comments, maybe slashdot should switch to something like BB codes, and then just render them as proper XHTML!

      As a representation of the Internet community, Slashdot needs to set the example for the rest of the community to follow.

      --
      Anton Markov
      *** Linux - May the source be with you! ***
    24. Re:File this in the Irony category by space_man51 · · Score: 1

      Appareantly google isn't even trying to be complient... they don't even include a DTD!

      Just because a major website does (or does not) do something, doesn't mean they are right. Standards are there to make sure that "if you do A, everyone who follows the standard will be able to read your page". HTML works 98% of the time, which is why people use it. For the 2% of the time (visually-impared, text-based browsers) it fails horribly. XHTML is supposed to fix that.

      Of course XHTML is just a stricter set of rules designed to make it harder to use sloppy coding. However, it won't prevent you from abusing H1 tags and tables. It is the mindset of web developers that has to shift from "how is this going to look" to "what am I trying to say?"

      --
      Anton Markov
      *** Linux - May the source be with you! ***
    25. Re:File this in the Irony category by space_man51 · · Score: 1

      XHTML will probably make it easier to maintain the Slashcode by stripping out the presentation markup and putting it into a static .css files. Structured sites such as Slashdot a perfect for XHTML.

      I haven't looked at the Slashcode yet, but I would guess it already treats data by meaning (comments, user IDs, slashboxes, etc. are distinguished), so a migration to XHTML would be a natural extention.

      Once the HTML has been stripped down to the basic semantic markup, I can see people writing thousands of different stylesheets for Slashdot... a whole new artform :)

      I am not saying it would be easy, but it's not like we are trying to patch IE to be standards-compliant :)

      P.S. I am willing to help out, but I would not do it alone (not because it's too hard coding-wise; Slashdot is just BIG!)

      --
      Anton Markov
      *** Linux - May the source be with you! ***
    26. Re:File this in the Irony category by kristaps.kaupe · · Score: 1

      Replace any remaining <b> and <i> tags with <span style="font-weight:bold"> and <span syle="font-style: italic">

      That's not required. XHTML 1.1 still have bold and italic tags.

    27. Re:File this in the Irony category by Domo-Sun · · Score: 1
      • Slashdot isn't even valid regular HTML, let alone XHTML, and they're running a story on why we should be using XHTML? I'd laugh if it weren't so sad.


      • The difference was that story was not "WHY YOU SHOULD SWITCH TO PHP 5", now was it?


      No, the difference is that /. isn't saying that you should switch to anything, the w3c is. If /. ran an article about why bill gates wants you to switch to windows, that wouldn't mean that they agree with him.

      Slashdot could achieve bandwidth reduction by adding CSS to their Light version without switching to XHTML. This is what I do with my personal CSS found on my journal. Switching to XHTML for a forum is stupid and wrong.
    28. Re:File this in the Irony category by Domo-Sun · · Score: 1

      Slashdot doesn't need fixing when it comes to B and I tags.

      As a representation of the Internet community, Slashdot needs to set the example for the rest of the community to follow.

      <span style="font-weight:bold">
      <span style="font-style: italic">

      So you think /. should set an example by replacing B and I with meaningless idiotic tags that are 12 times larger than they need to be?!? If anything, Doesn't that send the message that /. is stupid?! There is absolutely no benefit to adding the style attribute to span tags. All meaning is lost, all benefit is lost. There is nothing wrong with using the B and I tags.

    29. Re:File this in the Irony category by space_man51 · · Score: 1

      My appologies. As kristaps.kaupe had already pointed out, B and I tags are OK even in XHTML. That was my mistake.

      However, I would still like to see /. get rid of the table-based layout, because that DOES make the pages 12 times larger!

      --
      Anton Markov
      *** Linux - May the source be with you! ***
    30. Re:File this in the Irony category by space_man51 · · Score: 1
      It looks like this was already discussed and even partially implemented in various projects. See the discussion on Slashcode.

      From the discussion there is an intersting link to a site that shows Slashdot.org converted to XHTML 1.0 Strict, and discusses all the advantages (including like 10Gig/day of bandwidth savings).

      --
      Anton Markov
      *** Linux - May the source be with you! ***
    31. Re:File this in the Irony category by sp0rk173 · · Score: 1

      I wasn't being a grammar nazi.

    32. Re:File this in the Irony category by Domo-Sun · · Score: 1

      I think B and I tags are frowned upon because people use them for the wrong reasons, and I understand this problem when I make user stylesheets, but that's hardly a reason to recode the spec. I think B and I tags are fine for use in forums like /. .

      The workaround for me has been to designate a wider font for Bold.
      body{font-family:"Arial Narrow"}
      b{font-family:Arial}

      The w3c deprecated B in favor of strong, and now people simply abuse the strong tag.

      I would still like to see /. get rid of the table-based layout, because that DOES make the pages 12 times larger!

      If you are logged in, you can enable the Lighter /. Version in your preferences. This will reduce things somewhat. At this point you can enable a user style sheet for your viewing pleasure. I provide one in my journal.

      h1,h2,h3,h4,h5,h6,a[name] b{display:block;
      background:#336699;
      color:white ;
      font-family:sans-serif;}

      I actually fear what the results will be if they switch to XHTML.

  2. XHTML and XML?? by ViolentGreen · · Score: 3, Funny

    Can someone please explain the differences between XHTML an XML?

    --
    Not everything is analogous to cars. Car analogies rarely work.
    1. Re:XHTML and XML?? by Ambrose · · Score: 2, Informative

      XHTML is HTML redone in XML. So XHTML is an XML "language", like MathML, SVG, etc.

    2. Re:XHTML and XML?? by gregarican · · Score: 1, Informative

      XML is a data definition language. XHTML is not.

    3. Re:XHTML and XML?? by typhoonius · · Score: 5, Informative

      XML is a metalanguage; that is, it's a mark-up language for writing other mark-up languages. XHTML is one such language. It's basically plain old HTML but with XML's stricter rules. I like it because it discourages sloppy coding (sort of like preferring Java over Perl).

      Other XML languages include SVG (for vector graphics), WML (for simple web pages designed for cell phones; never really took off), and RSS (for news feeds).

    4. Re:XHTML and XML?? by volteface · · Score: 3, Informative

      While HTML is an implementation of SGML (Standard Generalized Markup Language), XHTML is an implementation of XML (Extensible Markup Language, which is a subset of SGML used for describing different types data).

      Basically as long as HTML follows the syntax structure of SGML correctly it is considered valid, but XHTML must follow the rules of XML correctly in order to be valid.

    5. Re:XHTML and XML?? by Anonymous Coward · · Score: 0

      XHTML is a subset of XML, that is, XHTML is HTML with XML's rules. All tags have to be closed, attribute values quoted, those sorts of things...

    6. Re:XHTML and XML?? by Kentamanos · · Score: 5, Informative

      XML is a pretty generic set of format rules. There are LOTS of various formats that are implemented in XML (SVG, XHTML, XSLT for some popular examples).

      XHTML applies the rules of XML to HTML. For instance you can have one root node, you have to close all tags, attributes have to have single or double quotes around their values, etc.

      Writing something that parses XHTML is a LOT simpler than writing something that parses HTML. It's also easier to confirm you've written it properly (using schemas for instance, which are also written in XML :)).

    7. Re:XHTML and XML?? by pete-classic · · Score: 4, Interesting

      Good answer ;-)

      The grandparent might also interested in the following:

      XHTML is implemented in XML. So XHTML is to XML as OpenOffice.org's writer format is to XML. (Or as HTML is to SGML, or as this post is to English.)

      People often say somthing is XML when it is really implemented in XML. Using that (misleading) terminology XHTML is XML.

      -Peter

    8. Re:XHTML and XML?? by Anonymous Coward · · Score: 0

      How is this a troll? It looks like a legitimate question to me.

    9. Re:XHTML and XML?? by skamp · · Score: 2, Interesting
      Writing something that parses XHTML is a LOT simpler than writing something that parses HTML.

      How do you know that? Did you actually write both an HTML and an XHTML parser? While I didn't, I would also instinctively think that parsing a stricter language would be easier; but David Hyatt, however, who worked on Mozilla and now works on Safari, seems to think otherwise:

      Every modern browser, including Mozilla and Safari, is much worse at XHTML than at HTML. People tend to foolishly gloss over the transition from one to the other, thinking that code you write for one will "just work" when you switch to XHTML. That simply isn't true. If you look at XHTML in both Mozilla and Safari and compare it to HTML, you'll see that it's slower, non-incremental, and generally buggier than HTML.
    10. Re:XHTML and XML?? by Kentamanos · · Score: 1

      I haven't written an HTML parser, but I've looked at the source code to the various HTML validators. They're truly nasty, and for good reason.

      Assuming you have decent XML libraries, an XHTML parser would load the XHTML schema into a validating reader and read it. If you catch a schema problem, you know it's not valid. Assuming you don't accept invalid documents (which I think should be required so we don't have this "this page works in IE, all others f*** off! ;)), your job is really simple.

      As far as your quote, that has to do with the current state of the browsers (which is very important). I'm shocked that it's actually this way (taking him at his word). I'll have to do some experimentation later. If it's really that bad, maybe I'll get motivated :).

    11. Re:XHTML and XML?? by yintercept · · Score: 1, Interesting

      I will be checking out the new specs.

      One of my greatest dislikes of all of the new X-Style languages is that they all seem aimed to cutting human beings out of the web equation. The original HTML is sloppy, but most people can get a decent looking page by typing out code in a text editor or in a little tiny textarea box on a forum.

      The different HTML-Strict DTDs are nit-picking to the point that they preclude humans from writing code. For example, you have to replace all of the ampersands in a URL with an ampersand followed by "amp;". They've eleminated monoid tags; so you have to end img, meta and br tags with a "/". Each nit-picking details decrases the ability for ma and pa kettle to pound out their own web page.

      To a large extent it appears that the primary goal of the W3C is to force the market into the position where people have to buy expensive programming languages to write HTML.

      Personally, I like humans more than machines. I agree with the majority of web pages on the net that we should resist the W3C.

    12. Re:XHTML and XML?? by Sciamachy · · Score: 2, Insightful

      Isn't xhtml an implementation or subset of XML? After all, xhtml pages rely on an XML DTD to define the tags they can use.

    13. Re:XHTML and XML?? by JeanPaulBob · · Score: 5, Informative
      No one seems to have explained this point sufficiently, so I'll give it a go. (The other posts give correct information--but incomplete.)

      XML looks a lot like HTML. If you look at any XML or HTML document, you'll see a bunch of tags--a word or phrase or letter surrounded by greater than/less than symbols--perhaps with text in the middle. For example, here's basic HTML:

      <p>The quick brown fox said, <i>"Lorem ipsum dolor sit amet."</i></p>

      Your web-browser sees the <p> tag and interprets everything between it and the closing </p> tag as a paragraph. The text is formatted accordingly, with line breaks before and after. Similarly, the browser knows to show everything between the <i> and </i> tags--which are nested inside the <p> tags--using italics instead of standard formatting. Other tags include <img> for images; an image tag also has attribute inside the tag to specify the image to be shown. For example:

      <img src="mypic.jpg">

      That's HTML. XML is structured in pretty much the same way. Tags are used to give meaning to text in a systematic way, attributes can be included, tags can be nested, etc. For instance, you might store information for an address book in the following tags:

      <entry>
      <name>
      <firstName>Joss</firstName>
      <lastName>Whedon</lastName>
      <title>Mr.</title>
      </name>
      <address>
      <streetNum>1324</streetNum>
      <street>Mulholland Dr.</street>
      etc.
      </address>
      </entry>
      <entry>
      info for another person
      </entry>

      Then you would write a program that parses the data and displays it onscreen or saves it to your PDA or whatever.

      The key difference between XML and HTML or XHTML is that XML tags have no inherent meaning. You can use any text you want as a tag name, with a few limitations (no spaces, for instance). There are no assigned tag names like there are in HTML, where a <p> mean paragraph, and <b> means bold, etc. In the above example, you could change "entry" to "stickyWicket" if you want. XML data is meant to be interpreted by a machine, not a person--though meaningful tag names are obviously more convienient than random junk like "xkljad".

      As the other posts say, XML has some stricter rules than HTML. For instance, in HTML, there's a tag <br> for a line break. It doesn't have a closing tag--you just put it anywhere you want a new line to start. In XML, every tag has to have a closing tag--though you can combine both the opening and closing tags using the / symbol. You can use that to make your XML more concise. For instance, the <name> tag above with nested <firstName> and <lastName> could be simplified to this:

      <name first="Joss" last="Whedon" title="Mr." />

      People have used XML to define all sorts of formats, from music notation to images. All that means is that they decided on a tag structure with meaningful tag names and nesting, and published the rule set. Then anyone can write applications to deal with that data. XHTML is just the old HTML tag with the strict XML rules. So, in XHTML, a line break is <br />.

      To sum up, XML is just a way to structure data systematically. XHTML is an XML document with particular tags intended for a web browser.
    14. Re:XHTML and XML?? by FyRE666 · · Score: 1

      XHTML is more pointless. At least XML is useful and logical, XHTML is simply a way to bloat scripts and force the client to fight through more layers to render a page/extract data.

      The "advantages" listed are ludicrous - "you can use events with 2 different scripting languages in the same document"??! What sort of moron mixes JS and VBscript in a single document? Besides which, there's no need to specify events in the markup; most scripters worth their deskspace have been attaching events to elements programatically for years.

      Sorry, but this is probably the most pointless new tech/buzzword I've seen since "Linux licence"...

    15. Re:XHTML and XML?? by blanks · · Score: 1

      XML is designed for data. XHTML is designed for structure. XHTML = valid HTML. aka no more tages for text (no font, b, i ,small, strong, etc. use style sheets) all tags are either closed with an ending tag or />. Its not that big of a jump other then just valid HTML. So.... You use XML for your data, HTMLto structure your data, and CSS for appearance and fomatting.

    16. Re:XHTML and XML?? by wampus · · Score: 2, Insightful

      Yes! Viva la ! Death to the w3c infidel!

      Seriously, XHTML is not much different than plain old HTML for basic usage. For advanced usage XHTML is more powerful with CSS, and if you want more power, you have to expect it to be more advanced to use.

      And on a side note, what ever happened to the slashdot xhtml/css retooling? anyone?

    17. Re:XHTML and XML?? by blanks · · Score: 2, Informative

      I can understand your point, but the fact is it is forcing people to follow standards. One reason I test my web apps in many browsers, if it dosent look the same in all of them, I'm not doing something right! If people are not willing to use these standards, then their websites will not look right in most browsers anyways. Just because new browsers let you get away without following standards dosent mean people should be able to write sloppy code, and by this I mean most ma and pa sites dont even follow standard HTML specifications.

    18. Re:XHTML and XML?? by rokzy · · Score: 1

      >sort of like preferring Java over Perl

      no it's not, they are very different. maybe it's like Perl with or without "use strict;"

    19. Re:XHTML and XML?? by garaged · · Score: 1

      You are totally wrong xhtml put strict norms to the coding, and that ends up being more esay to understand and learn. If the definition is clear, you dont need to put 50 [font] tags in a webpage that only uses 3 font types (as comercial programs do). So, in the end, the code is clean, and understandable. Anybody can understand any webpage made in XHTML strict, but not any made on html.

      --
      I'm positive, don't belive me look at my karma
    20. Re:XHTML and XML?? by Anonymous Coward · · Score: 0

      Mod up. Hyatt is pointing out the unfortunate gap between W3C ideology and reality.

      The theory is that New Paradigm W3C stuff will make the web more accessible.

      But, the 'facts on the ground' are that almost every single browser does pretty well with ugly ol' HTML 3.2, and that <table> tags work consistently everywhere, and that's simply untrue for XHTML/CSS-P.

      In the real world WWW, WebTV support is equally important as Mozilla support, and the common point between them are the old specs. There simply has not been the software shift to match the ideology, yet.

    21. Re:XHTML and XML?? by Anonymous Coward · · Score: 0

      expensive programming languages to write HTML.

      Nope. You mean "to write XHTML", right? This is important, because if we have to use another language to generate XHTML, the most appropriate candidate would be.... HTML.

      Thank you, Ladies and Gentlemen!

    22. Re:XHTML and XML?? by Anonymous Coward · · Score: 0

      Not to mention that some very common HTML implementations support mixing scripting languages anyway:
      <script language='PerlScript'>

    23. Re:XHTML and XML?? by daniel_yokomiso · · Score: 1

      It's obvious: the HT in the middle of XHTML..

      --
      Disclaimer: If I disagree with you I'm probably trolling...
    24. Re:XHTML and XML?? by joeljkp · · Score: 1

      Yes, it's HTML implemented in XML. It's an application, like MathML and SVG and DocBook.

      --
      WeRelate.org - wiki-based genealogy
    25. Re:XHTML and XML?? by Christianfreak · · Score: 3, Interesting

      You're kidding right?

      First off, Ma and Pa Kettle haven't cranked out their own web page in notepad since about '97 or so. Nowadays they use FrontPage for that which produces something akin to code soup.

      Secondly I don't understand why new syntax precludes anyone. Learning new things is not difficult. I write valid XHTML 1 code by hand, it isn't very hard, in fact its much easier to control the elements than it used to be, and produce nice looking sites that downgrade nicely for people using broken (IE) browsers.

      It makes everyone's life easier if there is a standard that is followed. You don't expect a programming language to know what to do with invalid syntax do you? Why should your data language be any different?

    26. Re:XHTML and XML?? by canon006 · · Score: 3, Informative

      Good descriptions so far, lemme add my two cents. A professor I had put it this way, "XML is more like a set of rules than a language; XHTML, SVG, etc are languages built using those rules."

      I always thought it was a good way to think of the relationship.

    27. Re:XHTML and XML?? by Cereal+Box · · Score: 3, Informative

      How do you know that? Did you actually write both an HTML and an XHTML parser?

      I'll tell you why it's easier to parse XHTML than HTML: if you're sure you've got well-formed XHTML data, then ALL you need to "parse" XHTML (that is, get it in a document tree format) is an XML parser, which someone else has conveniently written. Compare this with parsing HTML, which requires hacks to compensate for HTML's looser rules (i.e., elements like <p> and <br> which don't need to be closed off, etc.).

      Now rendering XHTML is another story altogether, but there is no doubt that parsing XHTML is FAR easier than parsing HTML.

    28. Re:XHTML and XML?? by RetroGeek · · Score: 5, Insightful

      The different HTML-Strict DTDs are nit-picking to the point that they preclude humans from writing code.

      YES.

      We should get ALL langauge compilers to ignore simple little syntax errors.

      Why should we need a semi-colon to end a statement. The line feed should be enough.

      Why should we need a closing brace. Cannot the compier SEE that it is the end of a block simply because the indenting is different?

      !

      The real problem is that people have been getting away with sloppy HTML. No closing TD, TR, TABLE tags because, hey, the browser allows it, and it works. Don't close italics in a TD cell? No problem!

      MS started this mess when they had IE ignore HTML syntax errors. Netscape (at the time) was still strict. Suddenly many pages would not work in Netscape that worked in IE. This was perceived to be a Netscape problem, where in reality it was the coders problem.

      Would YOU blame a compiler for trapping syntax errors? Of course not. So why should we allow sloppy HTML??

      --

      - - - - - - - - - - -
      I am a programmer. I am paid to produce syntax not grammar. Deal with it.
    29. Re:XHTML and XML?? by pete-classic · · Score: 1

      What is a language if it isn't a set of rules?

      -Peter

    30. Re:XHTML and XML?? by elFarto+the+2nd · · Score: 3, Funny

      Perl I believe

      Regards
      elFarto
    31. Re:XHTML and XML?? by DeComposer · · Score: 2, Interesting

      First of all, I'm of the very-supportable impression that standards are a good thing. Few things in web design are quite as annoying as having to detect and code for different browsers.

      Second, I think we can all agree that--despite the "L" in XML and XHTML that these are not programming languages but markup languages. While there are clever things that can be done to markup, especially with XSLT and XSL:FO, markup languages are not procedural--and therefore not programming lanuguages--the way C++, Basic, or JavaScript (to name a few) are.

      Third, XML and XHTML, especially when used in conjunction with XSLT and XSL:FO, are vastly more versatile than HTML without being much harder to write. Not being programming languages, you can even create XML/XSL/XHTML documents in any text editor and validate them for free at W3C.

      Fourth, every markup language--and every programming language--I've ever encountered has reserved characters that have to be replaced by escapes. Maybe it's just me, but I've seen more than a few instances of & n b s p ;.

      The whole point is to make web pages more friendly to their audiences and, at the end of the day, you're only going to the trouble to even create a web page so that you can reach an audience.

      --


      Karma
    32. Re:XHTML and XML?? by superyooser · · Score: 2, Insightful
      Each nit-picking details decrases the ability for ma and pa kettle to pound out their own web page.

      This is 2004, not 1996. Most amateur web "designers" today and even many (more than you would imagine) professionals (those who are paid) never look at the HTML. "Ma and pa" are using FrontPage or some other WYSIWYG application to create web pages. It is the job of Microsoft and other software companies to make their web page-creating apps generate markup that complies with the new rules.

    33. Re:XHTML and XML?? by pete-classic · · Score: 1

      Brilliant!

    34. Re:XHTML and XML?? by EsbenMoseHansen · · Score: 1

      Why should we need a semi-colon to end a statement. The line feed should be enough.

      Why should we need a closing brace. Cannot the compier SEE that it is the end of a block simply because the indenting is different?

      Here you go: Python!

      /me unable to resist the temptation

      --
      Religion is regarded by the common people as true, by the wise as false, and by rulers as useful.
    35. Re:XHTML and XML?? by wsapplegate · · Score: 5, Insightful

      Pardon me, but I feel you're not being didactic enough in your answer (even though I totally agree with you), and since this issue is a pet peeve of mine, and I really want the message to be heard, I'll take the liberty on expanding on your arguments. I hope you'll forgive my rudeness :-)

      So, why do we need a strict language that will barf at the first syntax error ? Well, it's simple : the current situation is a huge mess. No, wait, it's a *HUGE* mess. Currently, anyone can cobble up some shoddy webpages with some lame software (hint : it starts with "Front" and ends with "page") and slap them up on his Web space. Few will test their pages with more than one browser (namely, Internet Exploder), and even less will think of the implications of their design outside browser-land. What about search engines ? Speech synthesizers ? Intelligent agents who would like to quickly get a summary of the site to syndicate it ? All these systems have to be geared towards correcting user and software-generated mistakes to provide useful results. This demands more sophisticated engineering, render the software more complex, and is an incredible waste of resources. It also ensures that no two User Agents (be them browsers or something else) will have the same idea of a given HTML document. Thus, it renders the job of Web programmers (like yours truly) more difficult, and sometimes just insane (think Netscape 4.x). Another waste of resource, induced by the necessity to circumvent problems in UAs, themselves induced by their necessity to circumvent mistakes in the original code. It's a vicious circle that cannot be stopped, but for a shift to a more sound model. That's exactly what the W3C is promoting.

      Also, I would like to debunk one persistent myth, viz. the idea that laymen would no longer be able to write Web pages when everybody will have switched to send data with a application/xhtml+xml MIME type. Let's be serious one moment : Joe Sixpack doesn't type HTML. Period. Good ol' Joe uses a WYSIWYG authoring tool (like the aforementioned abysmal failure from Seattle). I'm totally confident that these authoring tool will be updated to include support for XHTML, and even for semantic markup. So, Joe will be all of a sudden writing valid pages, without even noticing it. As for the people who write HTML in Vi, I assume they're knowledgeable enough to go read the documentation (I was, and I sure am not the sharpest knife in the drawer[*]), so there's still no problem.

      That's it. I hope you'll see there are indeed reasons to move over to a more rational way of creating Web documents, and I encourage you to try out XHTML, CSS styling, and to validate your pages. Have fun !

      [*] No, I'm totally unrelated to Ken Brown or AdTI :-)

      --
      Xenu brings order!
    36. Re:XHTML and XML?? by Anonymous Coward · · Score: 0

      Here you go: Python!

      Pretty nice actually. But now indentation is a rule to follow. What if people ignored indentation?

    37. Re:XHTML and XML?? by Anonymous Coward · · Score: 1, Interesting

      Both you and the parent poster are wrong.

      It's 2004, and we still need to look at the (X)HTML source as much as ever. Sure, if you're creating some simple static webpage, a WYSIWYG editor is fine. But for any reasonably complex, dynamic website, FrontPage/Dreamweaver/etc just aren't useful.

      However XHTML makes things better for these kinds of sites. By increasing the up-front complexity mentioned by the parent poster, you greatly reduce the effort necessary to debug a problem when things go wrong. For instance, a major headache for websites that pull html from many templates is mismatched table tags. Tracking down a missing closing table tag in code you didn't write when it could be in a dozen different template files can take forever. But with XML, you're more likely to get a meaningful error message which will point you toward the real problem.

      HTML is easy to write, hard to read. XHTML adds more structure which becomes incredibly useful as the complexity of the task increases.

    38. Re:XHTML and XML?? by Metasquares · · Score: 1

      Writing XHTML is nothing compared to writing a semantic web annotated page. Not only do you have to worry about how the content will look, but you have to worry about how other sorts of agents will interpret it. Everything is done in an extended form of RDF (which itself is pretty much an extension of XML). The proposed languages have changed over time, from the (rather easy) SHOE meta-tag language, to the (more difficult) DAML, and finally to the current language, OWL, which is an absolute nightmare to write, especially in the full version, where there is nothing that says a page can be reasoned in finite time.

      The W3C is pretty dead set on transitioning to the Semantic Web over the next few decades. XHTML is just one step on that path.

    39. Re:XHTML and XML?? by darkpurpleblob · · Score: 1
      Actually, closing TR and TD tags is optional in HTML 4.01:
    40. Re:XHTML and XML?? by Anonymous Coward · · Score: 0

      good job at copy-and-paste there. no credit given at all. bet you are proud of yourself.

    41. Re:XHTML and XML?? by JeanPaulBob · · Score: 1

      ??? Uh, I wrote it all myself.

    42. Re:XHTML and XML?? by Anonymous Coward · · Score: 0

      Would YOU blame a compiler for trapping syntax errors? Of course not. So why should we allow sloppy HTML??

      You're missing the point, which is that the HTML specification defines certain blocks, such as <p>, as having closing tags being optional, and certain other tags, such as <br>, as not requiring closing at all. XHTML does away with all that and demands that every tag be matched with a closing tag, the only permitted shorthand being the rather ugly <br /> kludge.

      In other words, XHTML is harder to write (more verbose), but easier to learn (more consistent). Which of those you favour is up to you, but don't go claiming it's a question of syntax errors when it isn't.

      BTW, the only sole reason most languages have semicolons separating statements is because it makes it easier to write an LALR(1) grammar without shift/reduce conflicts. Yup, it's to make life easier for the parser writers, not for the programmers...

    43. Re:XHTML and XML?? by ttfkam · · Score: 1

      You sound like a youngster to me. Table tags did not work consistently. We, the folks who started making web pages before Internet Explorer 1.0, remember when the table tag was introduced. We remember how default rules for cell padding and spacing were different. And how worked for one browser and not the other. And how tags could be used to stretch table layouts with one browser, but not the other. Yep. Good times. Good times.

      And we remember how page margins were not only different, but used completely different body attributes (leftmargin/topmargin vs. marginheight/marginwidth).

      CSS on the other hand has its rendering behavior largely set in stone. Perfectly? No, of course not. There has never been a software spec that was perfect. But 95% of the CSS spec is damn clear on how things should render. If a browser renders different from a reference image, the CSS renderer is wrong. This is in striking contrast to the good old days of Netscape versus Microsoft when rendering tables correctly was simply a matter of discovering where the layout bugs cancelled each other out.

      As for WebTV, some great things about CSS is (a) graceful degradation and (b) alternate stylesheets depending on the client.

      I'll take W3C ideology over your ideology any day.

      --

      - I don't need to go outside, my CRT tan'll do me just fine.
    44. Re:XHTML and XML?? by Anonymous Coward · · Score: 0

      Eloquent rebuttal. And yes, those problems existed.

      However, nowdays almost every browser has coalesced around a common set of HTML3.2 + CSS1 functionality, which, while informal, for the most part "just works". That hasn't happened yet for the newer W3C specs. Which means in the near term, they are less functional and less "accessible" than HTML3.2 (and if only "graceful degradation" was an acceptable response to things like IE).

    45. Re:XHTML and XML?? by ttfkam · · Score: 1

      No, these days the common set is HTML 4, CSS 1, and about half of CSS 2 being safe to use.

      Also, let's be honest: people say "IE" like it's one browser. IE 6, IE 5.5, IE 5, IE 4, IE 4 for the Mac, IE 5 for the Mac, IE 5.1 for the Mac, and IE 5.2 for the Mac all rendered slightly (and sometimes not so slightly) differently.

      Even IE-only sites have had to contend with graceful degradation. Personally, I'm positively ecstatic over standards support today as compared to just three years ago.

      HTML 3.2 and tables are dying. The CSS support to avoid their use is available today. Let them die.

      --

      - I don't need to go outside, my CRT tan'll do me just fine.
    46. Re:XHTML and XML?? by walt-sjc · · Score: 1

      ... And style sheets eliminate the need to use the font tag in your pages at all. Separate presentation from content. It's too bad that crap like FP, and even worse MS Word, do such a horrible job of working with the standards, and create such crappy html.

    47. Re:XHTML and XML?? by torstenvl · · Score: 1

      Hmm. Nope.

      The whole philosophy is to begin markup sections with <whatever> and end with </whatever>.

      <br /> is not a kludge. It's a shorthand. <br> is a kludge to force a line break. A line break is not part of document structure! It has no place in HTML, really. And it's inconsistent with the whole idea.

      I don't really have the knowledge to counter your LALR grammar statement. However, it doesn't seem to make sense. Semi-colons are used on one-per-line statements. Most everything else has some sort of control pass-off to the next statement (or more commonly, next block of statements). This is almost certainly attached semantically to that statement, so a syntactic marker is pretty unnecessary. Also, I would guess that "most" have this syntactic sugar because C does, and so C++ does -- basically, because the most popular programming languages ever do, and probably for no other reason.

      As for the reason for the lack of closing tags in HTML standards in the first place, whether they have none or they are optional, I suppose this is because the W3C people listened to Linus Torvalds ("Sometimes people make standards before the things work, and those standards tend to be really bad. Sometimes people make standards by writing down how things work, and those standards tend to work very well indeed." -- Linux Magazine, December 2000 [US version]) -- or rather, saw things the same way, since HTML 4.01 was around before then IIRC.

      Just some food for thought

    48. Re:XHTML and XML?? by Domo-Sun · · Score: 1

      Anybody can understand any webpage made in XHTML strict, but not any made on html.

      What?! I can understand HTML fine. HTML can be used properly, and XHTML can be used improperly to make pages that are hard to understand. You can't force people to make good webpages. There will always be people who screw up HTML and XHTML.

      HTML is not going anywhere, and it's still useful, such as on forums.

    49. Re:XHTML and XML?? by Fenris+Ulf · · Score: 1
      How do you know that? Did you actually write both an HTML and an XHTML parser?
      Yes, I have. And yes, it is.
    50. Re:XHTML and XML?? by Domo-Sun · · Score: 1

      The real problem is that people have been getting away with sloppy HTML. No closing TD, TR, TABLE tags because, hey, the browser allows it, and it works. Don't close italics in a TD cell? No problem!

      Get your facts straight. It was part of the specification that closing tags are not needed. This included P, LI, TD, TR, HTML, HEAD and BODY. Even the start tags of HTML, HEAD and BODY could be omitted.

      According to you, that means that the W3C was wrong, even though people coded to the specification. And they could also be wrong about something in XHTML. We don't need to follow them blindly, after all, this could be dropped just like HTML 3.0, and then what good is it. When they come out with the next thing, I guess that would mean that all webpages are wrong?

    51. Re:XHTML and XML?? by Anonymous Coward · · Score: 0

      Yeah, you don't get to call cut and paste unless you can actually give a source for the original.

    52. Re:XHTML and XML?? by RetroGeek · · Score: 1

      It was part of the specification that closing tags are not needed.

      So that would mean that Netscape was wrong and IE was right?

      --

      - - - - - - - - - - -
      I am a programmer. I am paid to produce syntax not grammar. Deal with it.
    53. Re:XHTML and XML?? by EugeneK · · Score: 1

      I think your parent is right; you need some 'end-of-statement' syntactic marker to reduce ambiguity that would otherwise result during the parsing...I don't know of any programming language that doesn't have something similar; maybe the sole exception would be assembly language, but assembly is very primitive of course.

    54. Re:XHTML and XML?? by m00nun1t · · Score: 1

      MS started this? That's a bit rich. I remember between IE3 beta and IE3 release they actually specifically broke some rendering to emulate Netscapes broken rendering.

    55. Re:XHTML and XML?? by TheRaven64 · · Score: 1
      markup languages are not procedural--and therefore not programming lanuguages

      I think a lot of LISP, Haskell and Prolog programmers might disagree with you on this definition...

      --
      I am TheRaven on Soylent News
    56. Re:XHTML and XML?? by Anonymous Coward · · Score: 0

      XHTML is for interwebs, XML is for resumes.

    57. Re:XHTML and XML?? by Anonymous Coward · · Score: 0

      is a kludge to force a line break. A line break is not part of document structure! It has no place in HTML, really. And it's inconsistent with the whole idea.
      So is XHTML about meaning or presentation? Ah. Odd numbered version - meaning then.
    58. Re:XHTML and XML?? by mbottrell · · Score: 1

      The main difference is the lack of a 'H'.

      This is H known for humour.
      You'll notice that no XML is funny whilst many items written in XHTML are.

    59. Re:XHTML and XML?? by Anonymous Coward · · Score: 0

      Why should we need a semi-colon to end a statement. The line feed should be enough.

      Why should we need a closing brace. Cannot the compier SEE that it is the end of a block simply because the indenting is different?

      !

      I couldn't help but notice you were talking about Python there. heh.

    60. Re:XHTML and XML?? by Anonymous Coward · · Score: 0

      To a large extent it appears that the primary goal of the W3C is to force the market into the position where people have to buy expensive programming languages to write HTML.

      You mean "expensive programming languages" like their own XML authoring tool, Amaya, which runs on all popular platforms and which can be downloaded for FREE from their web site?

    61. Re:XHTML and XML?? by Anonymous Coward · · Score: 0

      "What sort of moron mixes JS and VBscript in a single document?"

      (raises hand excitedly)
      ME! ME!

    62. Re:XHTML and XML?? by yintercept · · Score: 1

      I work with several amateur web designers...they all make their pages by writing the HTML. If you surf through the net, you will find that there's millions of people who are writing their own code. Even those using frontpage spend a great deal of their time in the HTML edit mode.

      Several years ago I went on the crusade to upgrade amateur coders to the new W3C think.

      I watched a large numbers of people who had little difficulty learning HTML have tremendous difficulties with XHTML. It is from watching people that I realized that the new W3C standards were cutting regular humans out of the equation. The very quirkiness of the Netscape interpretation of HTML fit better with the innate quirkyness of people.

      I agree 100% that XHTML is a better language for machines. But, I see first hand that people have tremendous problems with it.

      The fact that so many real people are avoiding the new think indicates to me that there's problems with the new think. I now agree with and encourage those who resist XHTML.

      Take something simple like centering. The decision to center a paragraph or image is often made at run time. The person designing the CSS style sheet does not know if the icon added by an end user should be right, center or left aligned. In most cases decisions about how an image flows with content are not part of the format of the page.

      I agree that the box model is best for overall page layout, but the deprecated tag attributes are better for run time design decisions.

      Although I am modded a troll for saying it. I think the W3C is still too much under the influence of Microsoft and other big firms and they are not giving enough thought to human needs. The fact that there are open source HTML editors and validation programs does not mean that the industry is not under the influence of organizations that want to sell expensive programs.

      Look at the history of XML...Microsoft was one of the primary pushers of the techniques largely because Netscape's programming model did not fit the new standards. Yes, there are people in W3C who hate Microsoft...that does not mean that they are not working toward the end that MS desires. Again, there are open source HTML editors; however, most mainstream people will be brought under the sway of the big boys.

    63. Re:XHTML and XML?? by aztracker1 · · Score: 1

      VS2005 will use XHTML syntax as a default, I am fairly sure that FP200x will follow suit. ;)

      --
      Michael J. Ryan - tracker1.info
    64. Re:XHTML and XML?? by Christianfreak · · Score: 1

      I agree 100% that XHTML is a better language for machines. But, I see first hand that people have tremendous problems with it.

      Humans who aren't qualified have tremendous problems writing C or Java and yet I don't see anyone trying to make those "quirky". The people you speak of need to learn the new code or use an editor that knows it. As for you resisting it, good luck, even MS sort of supports it. It isn't going away and as a web developer (that codes by hand in XHTML!) you sir are part of the problem. We need a standard, the W3C is it, it isn't perfect but guess what? they take contibutions from developers so if you don't like, tell them and maybe they'll change the spec.

      As for your centering example, I have no idea what you're talking about. Since when does a person other than the person creating the page control the CSS? Nothing is forcing them to import a random stylesheet, they can write their own and they can apply whatever classes to whatever images they want. Also the "style=" attribute can be used on any tag to specify styles for the tag itself (which override anything previously defined). So what if align="center" is going away. How hard is it to write style="float:center" instead?

      As for the rest of your post I think your tin-foil hat needs adjustment.

      If the W3C is so controlled by MS why doesn't their own browser properly support the standards set forth?

      If its all about big companies selling expensive programs to write HTML editors then a) Why does the W3C release an Open Source editor and validator themselves? and b) Why don't the major commercial HTML editors properly support the W3C?

    65. Re:XHTML and XML?? by space_man51 · · Score: 2, Insightful

      Let me put a different perspective on your arguments:

      I work with several amateur web designers...they all make their pages by writing the HTML. If you surf through the net, you will find that there's millions of people who are writing their own code. Even those using frontpage spend a great deal of their time in the HTML edit mode.

      You can edit XHTML just as easily as HTML by hand. In fact, XHTML is probably 2x less code, because you don't have FONT tags everywhere. It's much easier to see the information you are trying to convey.

      I watched a large numbers of people who had little difficulty learning HTML have tremendous difficulties with XHTML...

      It depends on how one approches it. If you think "This text needs to be bold and red," then XHTML is harder. On the other hand if you think "This text is important," and then later decide it should be bold and red, XHTML become easier.

      Take something simple like centering. The decision to center a paragraph or image is often made at run time.

      I am not sure what you mean by "at run time". Run time of what? A web application? A script? It is possible to put styles into a "style" attribute rather than a stylesheet. The scrip can also set the "class" attribute of the P tag, and the stylesheet can specify that that text should be centered.

      The fact that so many real people are avoiding the new think indicates to me that there's problems with the new think. I now agree with and encourage those who resist XHTML.

      People always avoid new things; it is our nature to resist change. People have complained about GUI programming, the "new" taskbar in Windows 95, you name it. Just because the majority is not quick enough to accept something does not mean it's bad.

      I agree that the box model is best for overall page layout, but the deprecated tag attributes are better for run time design decisions.

      Do you even know what the box model is? It has little to do with deprecated tag attributes. The attributes were deprecated for other reasons.

      There are many reasons why the FONT tag and it's attributes were deprecated. Same goes for most of the other tags like B and I.

      Although I am modded a troll for saying it. I think the W3C is still too much under the influence of Microsoft and other big firms...

      I am not were you are getting this information from. The way I see it, Microsoft and other companies that make WYSIWYG editors are interested in the code being too complicated for the M and P to write it out by hand. HTML pages are more complicated, than XHTML (just take a look at cnn.com), so I would think MS is interested in using old relaxed HTML (why do you think IE is so relaxed?)

      Just my two cents (well, maybe four) :)

      --
      Anton Markov
      *** Linux - May the source be with you! ***
    66. Re:XHTML and XML?? by tepples · · Score: 1

      The attributes were deprecated for other reasons.

      Can you explain why the value attribute of <li> and the target attribute of <a> were deprecated way back in HTML 4?

    67. Re:XHTML and XML?? by tepples · · Score: 1

      A line break is not part of document structure!

      Tell that to a poet. How would you format verse in XHTML without <br />?

    68. Re:XHTML and XML?? by yintercept · · Score: 1
      Humans who aren't qualified have tremendous problems writing C or Java and yet I don't see anyone trying to make those "quirky"

      I know you are trying to insult me, but I am not sure what you mean here. Yes, there isn't any group trying to label c or java programmers as quirks. BTW, you do know that the WC3 has labeled HTML 1.0 - 3 as it evolve with Netscape as "quirks mode." Yes, a standards body has actually taken the stance of labeling the coding style used by a large number of people use as "quirky" and there has been a concerted effort to discredit people who use the "quirky" style of coding. The very fact that a standards body is openly insulting the HTML programming base by calling them names shows that they are out of touch.

      BTW, c and java are quirky from end to end. The language has evolved with its user base. c and java programmers seem to like it that way. I would love to go into a litany of all the quirky things in Linux (but I don't want another flaimbait label) If a superior being were to form a standards committee that wrenched out a third of the API and start labeling anyone using the deprecated code as "quirks", you would see a fire storm of protest. The sad fact is that the intelligensia leading the W3C has such ingrained contempt for its user base that they don't even bother listening to large install base using HTML. The W3C simply dismisses the masses with an insult.

      Each and every time Sun or other standards committees try to deprecate an object or function call, there is almost always a collective cry against the action. The only times there isn't is in the rare case that the new version includes something substantially better. In most cases, Sun carries the deprecated API through multiple versions for backward compatibility.

      As for you resisting it, good luck

      If you did a webcrawl, you would find the majority of pages have not adopted the new standards. The intelligensia was predicting that the x languages would have replaced quirks mode by 1999. I haven't seen recent statistics, I suspect the majority of pages on the net are still using HTML 2.x, and less than 5% have gone xhtml-strict or have converted to XML. I was reading through pages published recently by PhDed professors at the local University. They were all written in quirks mode.

      As for centering. If the align attribute were available, I could right align or center this paragraph. W3C has made it extremely difficult to allow the users of a forum like this to change alignment. Likewise, if this forum were to go xhtml strict, then they would have to include code to change ampersands to ampersand amps;.

    69. Re:XHTML and XML?? by space_man51 · · Score: 1
      Can you explain why the value attribute of LI and the target attribute of A were deprecated way back in HTML 4?

      The "target" attribute was deprecated, because its use leads to bad design habits. The "target" attribute is used either in framesets or to open new windows. Both practices are indicators of bad design. See:

      As you can see, this isn't a new problem.

      Unfortunately I can't find were it says the "value" attribute of LI is deprecated.

      --
      Anton Markov
      *** Linux - May the source be with you! ***
    70. Re:XHTML and XML?? by Too+Much+Noise · · Score: 1
      Tell that to a poet. How would you format verse in XHTML without <br />?


      Use verse elements with no margins and padding. Make them children of stanza elements that do have margins.
    71. Re:XHTML and XML?? by generationxyu · · Score: 1
      Why should we need a semi-colon to end a statement. The line feed should be enough.
      Why should we need a closing brace. Cannot the compier SEE that it is the end of a block simply because the indenting is different?

      This must be why all those folks love Python... I get it now...

      --
      I mod down pyramid schemes in sigs.
    72. Re:XHTML and XML?? by Christianfreak · · Score: 1

      No I'm not trying to insult you. What I'm saying is that if you write a C program and don't end your lines with a semicolon you get a compiler error - everytime - no matter what compiler you use. Consistant behavior on all platforms/compilers = not quirky. They follow a standard. HTML 1 - 3 had no set standard so the browsers had/have to render the code the way they see fit. It isn't personal, they aren't calling you quirky, they are calling the code quirky!! No standard = quirks. IE and Netscape released their own extensions to HTML = quirks. I don't care if only two people in the world use the standard, the other way of doing it is still quirky and wrong. And as I said in my earlier post if you don't like the way W3C is doing things then give them your ideas. The idea that because PhD proffessors or anyone else don't want to learn XHTML makes it invalid is ludicrous.

      Besides, XHTML will take off when Microsoft makes IE support it correctly and also when the mainstream HTML editors support it properly.

      And as for forums and alignment, your assertion still makes no sense. align="center" works in HTML, the authors of this forum turned it off because they don't want you to center text. You can't add images or tables either. Their site their choice. If it were written in XHTML I don't see what the difference would be, they would either allow or disallow you to write "style='text-align:center'" or not. That has absolutely nothing to do with the W3C. And personally I think it sounds like FUD to make people think that XHTML and CSS gives you less control over your page which is simply not true in the least.

    73. Re:XHTML and XML?? by Anonymous Coward · · Score: 0

      Thank you for taking the time to sum up and correct everyone. Unfortunately your example is wrong. The translation you did is not the same thing as the original. The former uses only tags, while the latter uses tag attributes. Totally different code to parse the two.

    74. Re:XHTML and XML?? by ynohoo · · Score: 1

      XMHTL is HTML redendered unreadable by humans - i.e. the normal pseudo-mystification apparent in all braches of IT.

    75. Re:XHTML and XML?? by Anonymous Coward · · Score: 0

      Way to completely misinterpret a quote!

      Writing an XHTML parser is without question much, much easier. It does not take much thought to verify this. Just take the simple fact that every tag must be closed in an XML language. You could pretty easily write a recursive descent parser for XML that generates a document tree: read a start tag; recurse, keeping track of the tag that you're inside of; if you find a close tag check to make sure it's for the tag you're inside of, if it is, return back to the calling parser, else bomb out with an error. There's a little bit more involved to handle entities, <!, and <?, but that stuff's really very minor.

      With just that much, you have a document tree that you can walk and display according to CSS style rules. Parsing this stuff is, again, trivial. Of course, you don't even need to write all of that upfront code. XML parsers are readily available. You can get a DOM tree with just a few lines of code, and then walk the tree.

      So what does your quote mean? Well, it means what it says: that modern browsers are worse at XHTML than HTML. Not that XHTML is harder to parse, or that it's inherently worse, just that it's not well supported. It's non-incremental because they haven't written an incremental parser for it, not because it's necessarily hard to do so. It's slow because they haven't optimized their parser, yet, not because it's harder to optimize. It's buggier because they haven't put it through all the rigorous testing, yet, not because it's hard to get it right.

      There are years of engineering behind HTML parsers, tangled webs of quirks and hacks to support broken and legacy code, and countless manhours put into optimization during highly competitive periods. Not even a tiny fraction of that time has been spent on XHTML, but you want to claim that the simple realization that XHTML support simply isn't where it could be means that XHTML is worse?!

      You belong in the pantheon of idiots...

    76. Re:XHTML and XML?? by garaged · · Score: 1

      I didnt said what you are saying

      Re-read my coment if you come back !

      Everybody can read HTML and XHTML if it's well done

      It's quite easy to make a mess on html, not on xhtml strict, THAT WHAT I SAID

      --
      I'm positive, don't belive me look at my karma
    77. Re:XHTML and XML?? by stonecypher · · Score: 1

      Why should we need a semi-colon to end a statement. The line feed should be enough.

      Why should we need a closing brace. Cannot the compier SEE that it is the end of a block simply because the indenting is different?


      Buhuhu. Someone doesn't write Python.

      --
      StoneCypher is Full of BS
  3. You have to wonder... by Dozix007 · · Score: 4, Interesting

    You have to wonder if Microsoft will be implimenting this new standard in IE. I have done some webdevelopment and have really noticed that they rarely impliment any of the standards in there browser. Not to mention that they are on the board that approves these standards :P

    1. Re:You have to wonder... by Anonymous Coward · · Score: 0
    2. Re:You have to wonder... by CaptainJeff · · Score: 1

      Well, they already support XHTML 1.1, which was current when the latest version of IE hit the street...so, my money is on yes.

    3. Re:You have to wonder... by RickL · · Score: 2, Interesting

      The implementation issues primarily affect the generation of XHTML rather than displaying it. As long as IE or any other browser doesn't choke on things like ' />', they won't have any problems. Because the rules of XHTML are so strict, parsing is greatly simplified.

      Now, the question is will Microsoft's various tools that generate HTML be able to generate valid XHTML. Considering the quality of HTML that Microsoft Word generates, I suspect it will have trouble meeting *any* standard.

    4. Re:You have to wonder... by volteface · · Score: 2, Informative

      Well, Microsoft seems to be pretty big on promoting the use of XML as a whole, especially with its integration with their more recent .NET technology. What this means for IE and XHTML I don't know, but it definately seems to be a standard that Microsoft is interested in.

      On a somewhat related note, Longhorn's presentation subsystem (Avalon) will use an XML-based definition language called XAML (similar to XUL, I believe) to define application user interfaces.

      With XML being so common in new MS technologies, I would say they will more than likely adopt XHTML soon enough.

    5. Re:You have to wonder... by Anonymous Coward · · Score: 0

      No they don't. XHTML 1.1 is only valid when served with the application/xhtml+xml mimetype. Try throwing that at any version of IE and see what happens.

    6. Re:You have to wonder... by volteface · · Score: 1

      Microsoft already has tools that generate valid XML. XHTML obviously has further restrictions, and not all valid XML is valid XHTML, but it should not be too be difficult for them to adopt their current XML serialization technology to follow the rules of XHTML.

    7. Re:You have to wonder... by Anonymous Coward · · Score: 0

      I am also one of M$ critics, but there are many smart &/or honest people there. It is the current national business model/standard which makes M$ behave in these ways. I have no doubt that most companies will do the same if given the capabilities of M$.

      Why should they bother wasting money on development of a more standard compliant browser when the market is OK with what is there and they are not loosing any significant market share; many pages have faulty code to accomodate their browser.

      In the future, given the incentive, they may develop a better browser or may even adapt/incorporate an OSS browser as Firefox to avoid any new federal interventions.

    8. Re:You have to wonder... by Anonymous Coward · · Score: 0

      Magic 8-Ball says -> All Signs point to No.

      They haven't supported XHTML1, what makes you think they'll support xhtml2? Currently if you send xhtml1 with the proper xml mimetype IE balks at it. If you send it with an html mimetype it considers it, it's messed up form of IEHTML.

      You're better off just getting everyone you know to switch to another browser that supports xhtml. Until that point though, you have to stick with HTML 4.01 if you want 85%-90% of the people to be able to view your site.

    9. Re:You have to wonder... by jdray · · Score: 1

      I, for one, welcome our new Microsoft-approved XHTML overlords.

      --
      The Spoon
      Updated 6/28/2011
    10. Re:You have to wonder... by Anonymous Coward · · Score: 0
      Microsoft has a reasonable track record of implementing standards when it releases new versions of IE. When IE 6 came out, it was one of the more standards-compliant browsers.

      The problem is that MS has not kept IE current, so that today, it is definitely one of the least standards-compliant browsers! It has been suggested that this is because improving IE would not improve MS' profits (IE already has 95% of the browser market, and probably 99% of the browser market on Windows).

      But, it history is any guide, IE 7 will have better standards compliance than IE 6. The people who actually do the work on IE seem to have more respect for standards than their lords and masters. Of course, that could change...

    11. Re:You have to wonder... by Anonymous Coward · · Score: 0

      You're better off just getting everyone you know to switch to another browser that supports xhtml. Until that point though, you have to stick with HTML 4.01 if you want 85%-90% of the people to be able to view your site.

      Now I know how to protect myself from a good slashdotting.

    12. Re:You have to wonder... by Numen · · Score: 1

      MS has a very good track record for implimenting XML related standards. One only has to look a the adoption of XSL into the browser by MS while the concept of XSL was still nacent and remember that at the time, with out a simple tool (IE) that developers could use to try out and get excited about XSL that very crucial technology might have been still born.

      IE has been frozen since anti-trust activity got serious as there is a compelling interest or even need for MS to allow browser competition on the Web, and more importantly integration of other browsers into products and operating systems.... when it's safe from MS to point and say "look what they're doing!", development of IE will resume.

      When one looks at implimentation of XML standards in the rest of the MS product base one can't turn their nose up at them. Yes occasionaly they do something like InfoPath rather than XForms, but as yet nobody is suggesting that all W3C standards must be adopted by mandate rather than option.... when was the last time you used XPath?

    13. Re:You have to wonder... by DrSkwid · · Score: 1


      There are some other "standards" that perhaps you aren't aware of :

      One has to wonder
      implementing
      web development
      their

      nice try there, uber

      --
      There are places where the networks are not touching,and there are places where they are-Boeing's Lori Gunter
    14. Re:You have to wonder... by kristaps.kaupe · · Score: 1

      "XHTML 1.1 is only valid when served with the application/xhtml+xml mimetype"

      Where did you get that? XHTML 1.0 specification (XHTML 1.1 doesn't say anything about mimetypes) says: "XHTML Documents which follow the guidelines set forth in Appendix C, "HTML Compatibility Guidelines" may be labeled with the Internet Media Type "text/html" [RFC2854], as they are compatible with most HTML browsers. Those documents, and any other document conforming to this specification, may also be labeled with the Internet Media Type "application/xhtml+xml" as defined in [RFC3236]. For further information on using media types with XHTML, see the informative note [XHTMLMIME]."

      MSIE can't handle all valid XHTML 1.1 documents as it's buggy XML parser can't handle XHTML 1.1 DTD, but true is not that XHTML document must be served with "application/xhtml+xml" mimetype. So we can say: MSIE6 has partial XHTML support.

    15. Re:You have to wonder... by plj · · Score: 1

      Well, they already support XHTML 1.1

      Oh, yes, but I think that parsing one new XML variant isn't such a big deal, when you already have an XML parser.

      The shitty thing with MSIE is it's poor and non-standard-compliant CSS support; I've recently been recreating an old HTML webpage with XHTML 1.1 & CSS at work, and it is a *HUGE* PITA to get the same layout in MSIE for Windows as in Gecko, Opera and KHTML; you practically have to load a separate stylesheet for Win IE to get certain things done by its propertiary way.

      Funny thing is, that Mac IE actually has rather good and standards-compliant CSS support, although there are few issues here and there -- but unlike in Win IE, most element positioning and margin-related things work properly, making specific stylesheet unnecessary. And for what it's worth, KHTML also fails in few things, where Gecko and Opera work like a charm.

      --
      “Wait for Hurd if you want something real” –Linus
    16. Re:You have to wonder... by plj · · Score: 1

      propertiary way

      Shit, did it again... I ment proprietary way. Can one have a dyslexia in one language without having it on another...?

      For some reason, I'm making this kind of errors next to every time I write English, but never in my mother tongue or in those other foreign languages, in which I'm actually much worse than in English.

      --
      “Wait for Hurd if you want something real” –Linus
    17. Re:You have to wonder... by Anonymous Coward · · Score: 1, Informative

      I'll grant that XHTML 1.0 doesn't make clear either way whether its text/html compatibility profile extends to future versions, but will assume it does for a moment. So if you wish to use text/html, you must follow the guidelines of Appendix C of the XHTML 1.0 specification.

      One of these (C.7) is to "use both the lang and xml:lang attributes when specifying the language of an element." So if you need to specify a language, you need to do it two ways. Fair enough. Oh, but the section in the XHTML 1.1 specification on changes from XHTML 1.0 Strict says that "On every element, the lang attribute has been removed in favor of the xml:lang attribute." So, there's a simple case where XHTML 1.1 can't be served as text/html.

      Another big one is use of the name attribute as a fragment identifier (C.8 in XHTML 1.0 spec). These are used for such things as anchors within a document. Again, 1.0 Appendix C has a suggestion that one set the id and name attributes together to the same value. And XHTML 1.1 has removed the name attribute from the a and map elements.

      However, all of this is moot as the W3C position seems to be that the compatibility profile defined in XHTML 1.0 does not apply to 1.1. There is even a W3C Note on XHTML Media Types which you may find enlightening (as seems to often be the case, the pretty colors near the end are the important parts here).

      Furthermore, I'd recommend reading Sending XHTML as text/html Considered Harmful by Ian Hickson.

    18. Re:You have to wonder... by Grant_Watson · · Score: 1

      "[I]t is a *HUGE* PITA to get the same layout in MSIE for Windows as in Gecko, Opera and KHTML; you practically have to load a separate stylesheet for Win IE to get certain things done by its propertiary way."

      Dean Edwards has created something called IE7, which was previously mentioned on Slashdot and goes a long way towards solving this problem.

      It uses JavaScript IE "behaviors" to make IE5.0+ do a better job rendering CSS; it's sweet!

    19. Re:You have to wonder... by eggz128 · · Score: 1
      Well, they already support XHTML 1.1,


      No they dont. Try sending it as application/xml+xhtml , which is what you're supposed to be sending XHTML as (rather than text/html). IE is treating your XHTML 1.1 page as badly formed HTML4.01.
    20. Re:You have to wonder... by kristaps.kaupe · · Score: 1

      Furthermore, I'd recommend reading Sending XHTML as text/html Considered Harmful by Ian Hickson.

      Basically I'm not affected by problems described there. I'm always keeping JavaScript in external files (and maximally trying to avoid JavaScript at all), I'm using lower-cased names in CSS. I don't really understand described problems with "The "/>" empty tag syntax", as I don't understand why HTML4 UA should display "<br />" as "<br>&gt;".

      Why I'm using XHTML? Because lot of new cell phones (including cheaper ones, like Nokia 3100) support XHTML and with additional CSS for media type "handheld" I can't make website look good on cellphones and PDAs without the need to fight with WML and it's file size limits.

      Well, some time ago I had the following code in my homepage:

      <?php
      if (strpos($_SERVER['HTTP_ACCEPT'], 'application/xhtml+xml') !== false) {
      header('Content-type: application/xhtml+xml; charset=UTF-8');
      echo '<?xml version="1.0" encoding="UTF-8"?>\n';
      }
      else {
      header('Content-type: text/html; charset=UTF-8');
      }
      }
      ?>

      In theory this should work, but unfortunatelly, this leads to problems with MSIE6 :(. So after two days I removed this code.

    21. Re:You have to wonder... by kristaps.kaupe · · Score: 1

      Oups, correction! Of course I mean "can make website look good" not "can't make website look good" :)

  4. on slashdot? by einstein · · Score: 4, Insightful

    anyone else amused that this article was posted on slashdot? a site who's HTML is so bad they've blocked validator? I'm amused.

    1. Re:on slashdot? by LincolnQ · · Score: 5, Insightful

      Yes. It is starting to really bug me. They could save a lot of bandwidth and make their page far more viewable with stylesheets if they moved the code into proper CSS and XHTML.

      Grr.

    2. Re:on slashdot? by MP3Chuck · · Score: 5, Informative

      You weren't kidding when you said "a lot" ... damn!

      For those who didn't RTFA the parent post had, it restructures /. with XHTML and CSS. Bottom line:
      * Savings per day without caching the CSS files: ~3.15 GB bandwidth
      * Savings per day with caching the CSS files: ~14 GB bandwidth

      And the traffic figure they used was from June 2000. Do the math.

    3. Re:on slashdot? by Anonymous Coward · · Score: 1, Informative

      Not to mention additional savings they could accomplish by using properly compressed PNG files. Also, valid HTML/XHTML tends to compress better (and they do use mod_gzip).

    4. Re:on slashdot? by Anonymous Coward · · Score: 1, Insightful

      It's supposed to be "cool" the way they do that. You know, dumb jokes about the spelling and grammar on the site, repeat stories, etc. -- that's how you know they aren't "mainstream".

    5. Re:on slashdot? by Matt+Perry · · Score: 1

      It's already been done. The Slashdot admins should just ask if they can use the code

      --
      Slashdot: Failed Car Analogies. Amateur Lawyering. Anecdote Battles.
    6. Re:on slashdot? by Saeger · · Score: 2, Insightful
      * Savings per day with caching the CSS files: ~14 GB bandwidth

      Sure, that's a lot of bandwidth, but not in dollar terms.

      Large sites pay less than a dollar per gigabyte xfer'd. So, /. would save less than 5 grand per year. That's a lot of money to me and you, but maybe not to the guy(s) who don't want to overhaul a big site that's "not broken".

      --

      --
      Power to the Peaceful
    7. Re:on slashdot? by jCaT · · Score: 3, Insightful

      14gb * 30 days = 420gb, which equates to about 1.5mbit sustained per month. With what slashdot is paying for bandwidth, that SHOULD be about $150 a month. Not exactly an amazing drop for them in price. It's not hard to see why they haven't bothered.

      However, It sounds like are working on getting slashdot to be more standards compliant.

    8. Re:on slashdot? by liquidsin · · Score: 4, Insightful

      The "editors" here are supposed to be geeks. Every geek I know is all about doing their preferred geeky thing in the most efficient way possible. You'd think they'd want to do it just to say "yeah, we rewrote the site and saved 14GB of transfer PER DAY". Not only does it save them money, it saves the users load times. Besides, it's not like they have any actual editing to do.

      --
      do not read this line twice.
    9. Re:on slashdot? by Anonymous Coward · · Score: 0

      $150/mo is 1000 subscriptions/mo assuming the subscriber uses the normal limit of 10 subscription points per day.

    10. Re:on slashdot? by ncc74656 · · Score: 1
      anyone else amused that this article was posted on slashdot? a site who's HTML is so bad they've blocked validator? I'm amused.

      I'd swear that it worked just a couple of days ago. I tried it and was surprised that it worked...instead of a 403, it cranked out a lengthy list of errors. Maybe the block was switched off for some reason while they were updating Slash.

      (Still had to hit reload six times to get the preview of this message to display properly. That's just lame.)

      --
      20 January 2017: the End of an Error.
    11. Re:on slashdot? by Quixotic · · Score: 2, Informative

      that's assuming those savings are if all client browsers dont support gzip compression... i'm fairly certain slashdot will gzip compress it's pages if the browser will support it.

      since text compresses really well, those savings will probably be quite a bit less...

      --
      --
    12. Re:on slashdot? by Fastolfe · · Score: 2, Insightful

      What I find even more amusing is the lengths they've gone to identify and ban people who request the RSS version of the home page too frequently (once every half hour is the cap).

      Now, the RSS version is extremely lean, and the alternative is hitting the home page, which is not. Why don't they ban people who hit the home page too frequently? I can hit it a hundred times in 10 minutes and they won't care, but the RSS page twice in 30 minutes? Banned for 72 hours.

      Clearly Slashdot is not concerned whatsoever (not even a tiny bit) about their bandwidth consumption, unless it's not earning them ad impressions.

    13. Re:on slashdot? by Anonymous Coward · · Score: 1, Insightful

      My preferred geeky thing to do is to use standards based technologies. Bandwidth savings aren't the only or even biggest reason to do so.

    14. Re:on slashdot? by Anonymous Coward · · Score: 0

      Yes, how hard could it possibly be to convert this satic mockup to a site with tons of legacy code, a hundred thousand different html comments, more than a dozen sections which allow completely different content to be served, etc etc.

      Come on, work is being done on it, but lets not pretend this is a job that takes a few hours on a lazy sunday afternoon.

    15. Re:on slashdot? by blanks · · Score: 3, Informative

      Its been done http://www.alistapart.com/articles/slashdot/ Its happening now http://www.slashcode.com/plugins/04/03/04/0229237. shtml?tid=4&tid=24&tid=28 Big update in next few months in the cvs http://www.slashcode.com/ Yes its not here now, but it sounds like slashdot will be XHTML compliant soon. If you dont like it, fix it, public CVS. Dont bitch, change it your self.

    16. Re:on slashdot? by gilgongo · · Score: 1

      > a site who's HTML is so bad they've blocked
      > validator? I'm amused.

      I'm trying to to toll, but I'm probably going to lose a heck of a lot of karma now...

      In my experience, the sites that have the worst HTML are those written in perl.

      I'm not a coder, so I may be jumping to the wrong conclusions, but is there something about perl that invites awful HTML?

      --
      "And the meaning of words; when they cease to function; when will it start worrying you?"
    17. Re:on slashdot? by sp0rk173 · · Score: 1

      hee hee....420

    18. Re:on slashdot? by jon787 · · Score: 1

      I'm not a coder, so I may be jumping to the wrong conclusions, but is there something about perl that invites awful HTML?

      Sure, you always end up with horribly unmaintainable code. So the HTML never gets fixed up because no one wants to touch the PERL script. I should know, my website is done in PERL and everytime I go to fix the script I end up re-writing the entire script instead.

      OTOH my website is either valid XHTML 1.1 + CSS2 or valid HTML 2.0 depending on my mood. (yes I can flip it back and forth)
      --
      X(7): A program for managing terminal windows. See also screen(1).
    19. Re:on slashdot? by haystor · · Score: 1

      The sites with the worst html are probably the ones that are generated by hand. They are the quick and dirty ones. Perl and PHP would be the first step of generating html. It is a testament to HTML, Perl and PHP that simple hacks that are "bad" can produce something useful. It is not a matter that some other language produces more correct html.

      If your only goal is to get functional (not perfect) html then why expend the effort of using something like Java?

      --
      t
    20. Re:on slashdot? by Anonymous Coward · · Score: 0

      But most of the articles are ads anymore. Maybe we just need more of those in the RSS.

    21. Re:on slashdot? by fejikso · · Score: 1

      You could start buy cleaning up your own posts ;)

    22. Re:on slashdot? by buddha42 · · Score: 1

      Ah but you forget... its much much more "geeky" to look down your nose at that newfangled XML.

    23. Re:on slashdot? by abirdman · · Score: 1

      Someone has to say it: $150.00 won't buy much programming time. Even if it was possible to spread the cost over two years of cost savings ($150 x 24 months = $2,400 total), that's still not a lot of programmer time--maybe 30-40 hours at most. And that would have to include design, planning, programming, testing, etc., etc.. That's one short week of a programmer's time to try and implement the change, and think of the number of browsers that would need to be tested. I propose that maybe a full XHTML facelift for /. is not the best place to invest time, energy, and resources. Now editorial training, spell (and grammar) checking, better dupe-checking... that's where some serious improvements can be made!

      Of course, a full XHTML 2 version of /., with easily replaceable and editable CSS would be truly sweet. Slash code is Perl, and there are great Perl XML and XHTML tools widely available. Maybe someone will volunteer to do the work. Hmmmm... to bad I've got to work this weekend.

      --
      Everything I've ever learned the hard way was based on a statistically invalid sample.
    24. Re:on slashdot? by abirdman · · Score: 1

      Oops, I mean $3,600 total... Arrgh, where's the math checker when I need it?

      --
      Everything I've ever learned the hard way was based on a statistically invalid sample.
    25. Re:on slashdot? by jaylene_slide · · Score: 1

      I modified a Perl search engine script I found at htmlgoodies.com to output perfectly valid XHTML 1.0 Transitional, although the provided examples will output the most basic and invalid HTML.

      It was mostly a matter of escaping all of the quotation marks in any regular XHTML code, along with the
      print "<
      prefix and the
      \n";
      suffix for each line.

      The lines are seemingly only determined by how you want the page's source code to look after the page is rendered.

      (FYI, the htmlgoodies Perl search engine example needs to be modified to search deeper than the current folder and to find page titles in more than just uppercase).



      slide
      --
      "Your proactive bipartisan synergy is indemnifying. Good work, carry on."
    26. Re:on slashdot? by jaylene_slide · · Score: 1

      Grrrrr...

      That should read;

      "...along with the
      print "
      prefix and the..."


      slide
      --
      "Your proactive bipartisan synergy is indemnifying. Good work, carry on."
    27. Re:on slashdot? by liquidsin · · Score: 1

      Granted, if it's not standards-compliant, it doesn't matter how efficient it is. But knowing that the code could be more elegant and more efficient, all while following open standards (thus supporting one of the founding notions of oss) AND saving you that kind of money, what self respecting geek could turn that down? Plus, it looks like somebody's already done most of the leg work.

      --
      do not read this line twice.
    28. Re:on slashdot? by Anonymous Coward · · Score: 0

      Yes they could improve with CSS but unless slashdot is using XML data whats the point of using XHTML?

    29. Re:on slashdot? by Anonymous Coward · · Score: 0

      you have obviously not been to slashcode, have you? if you read the FAQ, you will note that there is a very serious statement there that they will not be making slashcode compatible with HTML, which one can logically extend to XHTML, but you can feel free to twiddle with the source once you download slash for your site and make it compliant. why is this? who knows?

    30. Re:on slashdot? by musicon · · Score: 1

      The issue is, now that Slashdot owned by a corporation, there needs to be a compelling cost reason for them to make the change. Yes, it might save them (pulling a number out of my a**) $250 a day in bandwidth charges, but how much would it cost them in developer and qa hours to make the changes?

    31. Re:on slashdot? by Anonymous Coward · · Score: 0

      who's HTML is so bad

      "whose".

    32. Re:on slashdot? by Anonymous Coward · · Score: 0

      Someone has to say it: $150.00 won't buy much programming time.

      It will if you outsource it to India.

    33. Re:on slashdot? by tf23 · · Score: 1

      That listapart article is crap.

      Look, it's easy to download the src to a few pages on slashdot, throw it all in emacs and clean it up.

      It's another thing to download the sourcecode to slash, keep up with the OSDN author's changes, and try to keep a css'd (html4/xhtml) theme up-to-date. And yes, you'll need to patch the code because there are problems with how sections of it render (x)html and it's validity.

      If the guys over at alistapart had done their research, they'd known that an example conversion was already done way before they ever bothered with it. One was in html4 the other in xhtml. The bandwidth used by the xhtml was slightly less the html4, but either way impressive on how it'd cut down costs (when combined with mod_gzip too). It was done to show 'Taco and the OSDN crew the advantages of css and newer html standards. And the response after that was very positive.

      I found their article interesting, but misleading, because of the above.

      As an aside, like Jamie and others have posted, it's being worked on. It's not funded, so it's being done by volunteers for $0. It's coming down the pipe, eventually... anyone wanting to help can hop on slashcode's irc channel and chat about it.

    34. Re:on slashdot? by ^Case^ · · Score: 1

      Dont bitch, change it your self.

      Guess you didn't read Examining Some Open Source Myths ;-)

  5. Funny quote by slashdevslashtty · · Score: 5, Informative

    Which browsers accept the media type application/xhtml+xml? Browsers known to us include all Mozilla-based browsers, such as Mozilla, Netscape 5 and higher, Galeon and Firefox, as well as Opera, Amaya, Camino, Chimera, DocZilla, iCab, Safari, and all browsers on mobile phones that accept WAP2. In fact, any modern browser. Most accept XHTML documents as application/xml as well. See the XHTML Media-type test for details. Does Microsoft Internet Explorer accept the media type application/xhtml+xml? No.

    --


    M$ Lawyer: But `gcc /dev/random -o kernel.dll` is our trade secret!
    1. Re:Funny quote by Anonymous Coward · · Score: 0

      Does Microsoft Internet Explorer accept the media type application/xhtml+xml? No.

      Nor should it, because it doesn't have an XHTML parser. Opera and Safari actually cheat here by tagsouping XHTML.

    2. Re:Funny quote by waveclaw · · Score: 1

      ...Mozilla, Netscape 5 and higher, Galeon and Firefox, as well as Opera, Amaya, Camino, Chimera, DocZilla, iCab, Safari, and all browsers on mobile phones that accept WAP2...
      Does Microsoft Internet Explorer accept the media type application/xhtml+xml? No.


      So what you're saying is that 86.6% of all (installed) web browser's don't support XHTML?

      And I so loved my Karma.

      --

      "You cannot have a General Will unless you have shared experiences. You cannot be fair to people you don't know."
    3. Re:Funny quote by JamesKPolk · · Score: 3, Informative

      Let's see what the MS apologists have to say about that. If their browser is so great, why can't they handle docs that use the W3C-recommended mime-type?

      Of course, I'd like to see what the people who call Google a great, loving, standards-obeying company would say to the fact that Google can't handle application/xhtml+xml either?

      Before I added a special-case hack to send my pages go Google as text/html (thus violating the W3C mime-type recommendation), Google would not read the content of my pages, and would offer to show an "HTML version" of my XHTML which was actually blank.

    4. Re:Funny quote by Anonymous Coward · · Score: 0

      No he's saying that 86.6% of all installed web browser's do not support XHTML 1.1 or higher, 1.0 still works cause you may send it as text/html :p

    5. Re:Funny quote by The+Cydonian · · Score: 1

      What, are you kidding? Google has LONG ceased to be a standards-obeying company; I mean, just look at Gmail or Blogger for chrissake!

    6. Re:Funny quote by plaa · · Score: 1

      Of course, I'd like to see what the people who call Google a great, loving, standards-obeying company would say to the fact that Google can't handle application/xhtml+xml either?

      Well, if you've found a bug in Google, why don't you report it instead of making a hack and whining on Slashdot? That sounds like such a big, clear bug and quite easy to fix that they'd surely be interested.

      --

      I doubt, therefore I may be.
    7. Re:Funny quote by JamesKPolk · · Score: 1

      I reported it 9 months ago. After waiting a good 6 months and getting no word back, let alone seeing a fix, I just added a hack.

      And yes, I imagine it would take one line of code to treat application/xhtml+xml the way text/html is treated, but clearly they just don't feel like it.

    8. Re:Funny quote by plaa · · Score: 1

      I reported it 9 months ago. After waiting a good 6 months and getting no word back, let alone seeing a fix, I just added a hack.

      That is odd. I've sent one minor bug report and a few suggestions to them, and every time I've first received an automatic confirmation of receiving the email and within a few days a reply. Maybe the message got stuck somewhere, and should be re-reported?

      --

      I doubt, therefore I may be.
  6. Because HTML is ancient... by gnuman99 · · Score: 2, Funny

    Maybe we should use XHTML because HTML is ancient and broken? Furtheremore, CSS must be pushed to replace most of the format specifications. XHTML+CSS actually simplify the rules by which browsers format text.

    1. Re:Because HTML is ancient... by Anonymous Coward · · Score: 0

      Yet the most fundamental promise of the web, conveying ideas and information, can be done quite effectively in HTML versions 3 and 4. The only thing even mildly intriguing about the new technologies is MathML, since plopping in pngs of latex equations is a pain in the ass.

      I'm not going to learn some johny-come-lately technology just because a bunch of computer gurus find it more ascetically pleasing and logically consistent. I have better things to do with my time (wisecrack about posting on slashdot here).

      Before you go harping about the magical world of people browsing on PDAs and 12x4 character resolution cellphones, its again something I simply don't care about. If it works under lynx, then its handicapped-friendly enough for me (cellphone browsers being nothing more than crippled cousins of real browsers).

  7. Is this really going to happen? by Defiler · · Score: 4, Interesting

    I've been using XHTML for some time, but only in the modes that safely fall back to HTML for browsers that don't "speak" XHTML.
    I have to wonder if 2.0 is going to catch on. Internet Explorer isn't likely to support it any time soon, and nobody wants to code two versions of every web application.
    Still, good FAQ on that site. I learned some details that had been hazy.

    1. Re:Is this really going to happen? by zsau · · Score: 1

      You don't have to. God invented this thing called XML. It's convertible into other file formats. It'd be possible to have an XSL transformer convert from XHTML 2.0 into XHTML 1.0 transitional. You would lose all the snazy things like having paragraphs contain tables or the new way of doing images/links, but you could still give IE something it could read.

      --
      Look out!
    2. Re:Is this really going to happen? by DarkVein · · Score: 1

      Personally, I find XHTML to be a spiffy markup language just to write web pages in, all XML-like. It's almost trivial to translate (via XSL) XHTML 2.0 to XHTML 1.1 Strict, and that's only a slight nudge (renaming two attributes) to XHTML 1.0 Transitional.

      There are some things you have to make choices about translating, where a little per-site detailing with classes can help. For example, you can write easily see how to translate:
      <h src="logo.jpg">My Site</h>
      to:
      <h1><img src="logo.jpg" alt="My Site"/></h1>
      but what do you do for something like:
      <p src="MapToMyHouse.svg"><span src="MapToMyHouse.png"><span src="MapToMyHouse.gif">Take a left from the second stop light on main street, right on centerfield road, left on abbey drive.</span></span></span></p>
      Hmm?
      Ostensibly, you could use nested <object> tags, but this only really works in Mozilla at the moment. IE completely barfs on valid <object> tags, and double barfs on nested <object> tags, or <img> in <object>. A better solution is to not write like that in the first place, and use content negotiation. But, this requires server pre-configuration which might not always be an option.
      In the case of content negotiation, you'd write:
      <p src="MapToMyHouse">Blah blah blah blah</p>
      which would be translated to:
      <img class="block" src="MapToMyHouse" alt="Blah blah blah blah"/>

      Anyhow, those are just problems you run into if you fully exploit the options available to you in XHTML 2.0. Otherwise, it's just a much cleaner and easier way to write the web pages you've been writing, and the documents can be easily translated to XHTML 1.x. I really really love the embedding and hypertext attributes being part of every element, and the <h> and <section> elements to use instead of <h1>-><h6> (although those are still there :( )

      --

      I'm as mimsy as the next borogove but your mome raths are completely outgrabe.

    3. Re:Is this really going to happen? by tepples · · Score: 1

      It'd be possible to have an XSL transformer convert from XHTML 2.0 into XHTML 1.0 transitional.

      Where can I download this transformer to put on my web site? Or must each web author duplicate effort in writing such a transformer?

    4. Re:Is this really going to happen? by zsau · · Score: 1

      In the faq there's a link to a site that uses XHTML 2.0 already... I think it has the source there somewhere. No guarantees though. Otherwise they'll turn up soon enough I'm sure. If nothing else I might write one after I've learnt XSLT, and once I've done that it'd be GPLed :)

      --
      Look out!
  8. W3C useless by Anonymous Coward · · Score: 1, Insightful

    lately the W3C is useless and isn't able to produce anything useful. Schema is still horribly limited and doesn't really fit the needs of OOP. Schema should allow a complex type to extend or implement an external class/interface. It can be optional and not required. The current schema sucks. I won't bother with the other specs. Many of them are just as bad, or the specs are so poorly written it's a bitch to understand. XSLT/XPath is a good example of really poorly written specs.

    1. Re:W3C useless by rwiseman63 · · Score: 2, Insightful

      I agree that most W3C specs are horribly written, but your comment that Schema doesn't fit the needs of OOP is just stupid. First of all, XML is not Object-Oriented, so there is no need for an XML validation language (i.e. Schema) to include built-in OO capabilities. On the other hand, XML could be used to implement an Object-Oriented language, and I am 100% sure that you could write a Schema to validate this language.

    2. Re:W3C useless by ViolentGreen · · Score: 1

      On the other hand, XML could be used to implement an Object-Oriented language, and I am 100% sure that you could write a Schema to validate this language.

      Isn't there such a language out there? I seem to remember hearing about one. It stuck out because of the whole LISPish "Data=Code" construct.

      --
      Not everything is analogous to cars. Car analogies rarely work.
    3. Re:W3C useless by Anonymous Coward · · Score: 0

      No the W3C has always been worthless, but I digress.

      The real problem with XHTML is that it only provides syntax not execution. It does not specify the behavior of table layout for example. What information there is at the W3C is not consistent with the behavior of IE or Netscape.

      The people at the W3C have no idea how to standardize things. They seem incapable if grasping concepts like: reference implementation, conformence documentation and tests, nomenclature such as BnF grammers etc. etc. The people at the IETF are light years ahead of the W3C in knowing how to actually write a spec.

  9. Mozilla composer by Danathar · · Score: 3, Insightful

    It would be nice if Mozilla composer could save in XHTML....I'd gladly use it if more editors would save in XHTML format.

    1. Re:Mozilla composer by Anonymous Coward · · Score: 0

      vim supports xhtml just fine ;)

    2. Re:Mozilla composer by dustinbarbour · · Score: 1

      How about using a text editor? Notepad, EditPlus, etc.. You can code to any specification you desire without any hangups.

    3. Re:Mozilla composer by pr0fess · · Score: 1

      i think the mozedit plugin saves in xhtml...

    4. Re:Mozilla composer by Anonymous Coward · · Score: 0

      ed is the standard text editor.

    5. Re:Mozilla composer by Jugalator · · Score: 1

      Some suggestions have already been mentioned, and of course Macromedia Dreamweaver MX also supports XHTML. :-)

      --
      Beware: In C++, your friends can see your privates!
  10. /. should lead the way by pohl · · Score: 5, Interesting

    With all the time we spend hearing about alternatives to IE around here, you would think that slashdot would be compliant to at least some W3C standard. If /. were some tiny hobby weblog this would be forgivable, but /. could use the size of it's audience to actually lead. Why not do it?

    --

    The "cue the foo posts in 3, 2, 1..." posts will commence with no subsequent foo posts in 3, 2, 1...

    1. Re:/. should lead the way by CHaN_316 · · Score: 2, Informative

      There was an article on slashdot a while ago about retooling slashdot with XHTML. A pretty good read that summarizes the benefits of XHTML/CSS. The cost savings pretty interesting too:


      *Savings per day without caching the CSS files: ~3.15 GB bandwidth
      * Savings per day with caching the CSS files: ~14 GB bandwidth

      Most Slashdot visitors would have the CSS file cached, so we could ballpark the daily savings at ~10 GB bandwidth. A high volume of bandwidth from an ISP could be anywhere from $1 - $5 cost per GB of transfer, but let's calculate it at $1 per GB for an entire year. For this example, the total yearly savings for Slashdot would be: $3,650 USD!

      --
      "There is no spoon." - The Matrix
    2. Re:/. should lead the way by Bob+The+Cowboy · · Score: 1

      not to sound like an /. fanboy, but I think its safe to say that at least part of the problem is that /. isn't some tiny hobby weblog. We're not talking an index page with a few intersite links. You've got an entire Website programmed in perl with probably close to a million regular visitors. The vocal majority of which will criticize nearly anything put in front of them. Slashcode is open source. If converting it is so easy, why hasn't it been done by now? But you've got a 3 digit userID. You should know all that.

      If it were me, I'd either do it quietly with no announcments til the day I planned on releasing it, or just not do it at all, and enjoy my evenings knowing that even if I were trying, I'd still get flamed for some little mistake.

      Bill

    3. Re:/. should lead the way by pohl · · Score: 1

      Ok, careless typing is my only excuse. Since you expect perfection, thuogh, I'd like to know how you rationalize using a gerund like "fucking" in a non-gerund context?

      --

      The "cue the foo posts in 3, 2, 1..." posts will commence with no subsequent foo posts in 3, 2, 1...

    4. Re:/. should lead the way by minister+of+funk · · Score: 1
      Perhaps you could clarify which of the follow are properly constructed sentences:
      • It belongs to them.
      • It's their camper.
      • The camper is their's.
      Isn't the last statement a valid use of the word "their's" or am I completely off?
    5. Re:/. should lead the way by o0zi · · Score: 1

      Ah, but you could regard Slashdot as some sort of test - the ultimate website to find out a rendering engine's mettle, as it were. For instance, oddly enough Dillo didn't become very mainstream (defining mainstream in a certain context) until it could render Slashdot.

      Anyway, the people who visit Slashdot are most likely the only ones to care about its sourcecode, let alone the articles and comments. The Slashdot development team, it seems, has a sense of irony.

    6. Re:/. should lead the way by n8_f · · Score: 1

      There is no "their's". There is "there's" and "theirs".

    7. Re:/. should lead the way by Nosf3ratu · · Score: 0

      You're completely off.

      (1) is perfectly correct.
      (2) is perfectly correct, because it is the assembly of "it is".
      (3) is completely off. See parent post.

      p.s. I love the fact that I get modded down as -1. Anyone that understands basic third-grade English should be just as annoyed by horribly grammar as I am.

      --
      The old Lie: Dulce et decorum est Pro patria mori
    8. Re:/. should lead the way by minister+of+funk · · Score: 1

      You probably get modded down because this topic's thread is not grammar. I used to get really upset when people wouldn't take the time to spell-check or at least proof-read their posts/email/instant messages. My anger would be reflected in my reply because I would not proof-read it (anger = haste for me) and correct their spelling with errors of my own.

      Grammar and spelling is a point of contention between my wife and I. She'll ask me to proofread an email she's about to send out to make sure iit "sounds good". To me, "sounds good" means: properly constructed, formatted correctly, and "get's the point across" (in that order). The problem is that she writes like she speaks, illustrating emphasis with initial capitals. It bothers her when I correct her grammar/capitalization/etc. I needed to learn to read so that I could look past the presentation and determine the meaning.

      I've found that I think faster than I type and my fingers effectively "drop frames" and the meanings of sentences shift mid-sentence... unless I proofread it. Truly, haste makes waste.

      According to a grammar site, sentence 3 would be proper as "The camper is theirs", so thank you.

      Thanks for the reply and the correction!

  11. Why You Should Use XHTML 2.0 ???? by stonebeat.org · · Score: 4, Informative

    XHTML 2.0 almost forces you to seperate "content" from "presentation". Which is a good thing.

    Something better would be to use pure XML for creating content and then let the browser apply a CSS to present the content.
    See Mozilla + CSS + XML = Structured + Formatted Content for more info.

    1. Re:Why You Should Use XHTML 2.0 ???? by JimDabell · · Score: 3, Interesting

      Something better would be to use pure XML for creating content and then let the browser apply a CSS to present the content.

      No, that would be very much worse. The whole point of a publically specified XML application like XHTML is that everybody understand what the element types mean. If you go around inventing your own element types, nobody will no what you mean. Google understands <h1> as being more important than normal text. It won't understand <my-fancy-heading> in the same way.

    2. Re:Why You Should Use XHTML 2.0 ???? by AuMatar · · Score: 1

      Its a good thing for giant websites and businesses. Its needlessly complex for small websites. And its something that non-technical people won't understand at all. As I posted in another thread- the point of HTML was to be an easy to use markup language for the masses, so anyone could make a webpage. XHTML is beyond most non-programmer's capabilities.

      --
      I still have more fans than freaks. WTF is wrong with you people?
    3. Re:Why You Should Use XHTML 2.0 ???? by Billobob · · Score: 1

      Not to mention XML already has XSL instead of CSS to format and describe its data...

      --
      If you have to ask, you'll never know.
    4. Re:Why You Should Use XHTML 2.0 ???? by jdh-22 · · Score: 1

      Even though this site doesn't use XHTML 2.0, it does show the importance, and the amazing things that can be done when content and presentation have properly been seperated.
      CSS Zen Garden ... if you haven't seen it, check it out!!

      --
      Every Super Villan uses Linux.
    5. Re:Why You Should Use XHTML 2.0 ???? by Stuart+Gibson · · Score: 3, Insightful

      OK, I'm sure you're trolling, but how is XHTML any harder to understand than HTML 4?

      Since they use practically identical tags and are structured in the same way, a well written (ie compliant) HTML 4 page will comply to XHTML with a change of doctype and a few minor tweaks (<br> to <br /> etc).

      Anyone who is in any way competent with HTML can switch to XHTML with no problem. In fact, for less technical people, XHTML will be easier to understand as the reams of presentation code will have been shifted to the CSS file, making the underlying (X)HTML easier to read and understand document structure.

      If I'm completely off base about where you're coming from, please enlighten me.

      Stuart

      --
      It's all fun and games until a 200' robot dinosaur shows up and trashes Neo-Tokyo... Again
    6. Re:Why You Should Use XHTML 2.0 ???? by Malc · · Score: 1

      And as I said in response: non-technical people don't look at nor understand HTML either. Your point is moot.

    7. Re:Why You Should Use XHTML 2.0 ???? by gillbates · · Score: 1, Insightful

      XHTML 2.0 almost forces you to seperate "content" from "presentation". Which is a good thing.

      In theory, but not in practice. What happens is that more often than not, you end up with encoded XML in a database, which means that your data is no longer separate from presentation; access to your data now requires an XML parser as well.

      Furthermore, you are forced to hardcode the relationships between elements. If your data is XML based, the only possible view is heirarchical; IMS was heirarchical, and look how long it lasted.

      XML (and XHTML by extension) is the new COBOL. It isn't a smart idea by any standard:

      • It is far more verbose than delimited text files.
      • It isn't interoperable - if one company lists book authors as 'authors', and another as 'writers', you still can't do a meaningful comparison between the two documents. You'd do just as well with flat files and field descriptions.
      • It does not separate presentation from content, but rather enforces the presentation model on content . You can't arbitrarily structure your content - it must conform to the DTD. You're stuck if one department wants your books listed by author and another by title - you can do one or the other, but not both. A relational database where HTML is built on the fly would be a far better option - for you could at least use different queries.
      • You can't build a database with XML. A validating parser must read the entire file in order to extract even a single element. And searching and XML document for a particular record is horrendously slow - you must use a sequential text search.
      • Even if one did use XHTML for content storage, it would be read-only. Because it isn't a database, no two users could modify a record in the same document at the same time - it need not even be the same record; any record would lock out all others.

      I'd like to hear from someone who is actually using XHTML to store content. My guess is that XHTML is being used more as a presentation kludge than as a content storage system.

      --
      The society for a thought-free internet welcomes you.
    8. Re:Why You Should Use XHTML 2.0 ???? by weston · · Score: 1

      The bad thing is that while CSS has given us a good (and sometimes more powerful) set of tools, there really is something good about tables. They're easy to grasp, a grid is a natural fit for layout tasks, and that's why people keep using them.

      Sure, there are table quirks across browsers, and CSS makes some things much, much cleaner. But sometimes, tables do to, and the only real sin involved in using them comes from the fact that it ruins the semanticity of tabular markup.

      See this Metafilter thread or this one for more discussion.... or some of my comments.

    9. Re:Why You Should Use XHTML 2.0 ???? by Anonymous Coward · · Score: 0

      > but how is XHTML any harder to understand than HTML 4

      For one, it's very fugly to inline CSS or Javascript in XHTML.

      Also the content/presentation issue is really orthogonal to XHTML itself -- table layouts, spacer gifs etc are all still possible

    10. Re:Why You Should Use XHTML 2.0 ???? by Princeofcups · · Score: 1

      The reason that XHTML is more difficult than HTML is that most of the "simple" tags such as b, big, h1, etc are depricated. In HTML you can take a text document and mark it up pretty quickly using the simple tags.

      The reason for XHTML is that most pages these days are not so simple. For a complicated page, XHTML is much cleaner than HTML. For a simple page, the opposite is true.

      jfs

      --
      The only thing worse than a Democrat is a Republican.
    11. Re:Why You Should Use XHTML 2.0 ???? by Stuart+Gibson · · Score: 1

      Well, the h1-h6 tags are still available. The likes of b, i etc have been removed as they were presentation. XHTML does have useful things like 'em' and 'strong' which are much more semantic and can be styled with CSS to take on those attributes if you so which. Simple tags all the same, just requires a little change in thinking, but doesn't make the reasoning or coding any more difficult.

      Stuart

      --
      It's all fun and games until a 200' robot dinosaur shows up and trashes Neo-Tokyo... Again
    12. Re:Why You Should Use XHTML 2.0 ???? by Anonymous Coward · · Score: 0

      Trying to get pages to look right with float/clear and the various DOM methods is a lot more complex than using HTML tables and not always possible if you want anything complex.

      If thats where the pre-parent is coming from then I agree.

      Theres also no GUI tools that support XHTML for designers to use, so dreamweaver junkies can't get into it. I suspect thats what the pre-p actually meant.

      I love XHTML but as I've said before until IE and its shite support has dissapeared completely from the market it is pretty much useless for any professional sites unless they want real basic layouts.

    13. Re:Why You Should Use XHTML 2.0 ???? by Too+Much+Noise · · Score: 1

      True, but for too many things XSL would be overkill. CSS is simple and fits a specific purpose quite well.

    14. Re:Why You Should Use XHTML 2.0 ???? by Anonymous Coward · · Score: 0

      is deprecated. Use . and are not. Get a clue kthxbye

    15. Re:Why You Should Use XHTML 2.0 ???? by aardvarkjoe · · Score: 1
      OK, I'm sure you're trolling,
      Please don't use the word "troll" until you learn what it means.
      --

      How can we continue to believe in a just universe and freedom to eat crackers if we have no ale?
    16. Re:Why You Should Use XHTML 2.0 ???? by Anonymous Coward · · Score: 0

      <BIG> is bad. If I can't use it I ain't playing.

    17. Re:Why You Should Use XHTML 2.0 ???? by iabervon · · Score: 1

      What I want to know is why they didn't make "b" a synonym for "strong" and "i" a synonym for "em". Might as well make use of the one-letter tags that people know. Of course, this would change the effects of nested "i" tags, and may surprise the occasional person when they find that "i" comes out as underline in a manuscript.

      Of course, there's also the issue of how to quote formatted text. What am I supposed to do if I want to transcribe a letter I got on paper where the author used bold for something? What if I want to point out that they used bold for a book title, where it wouldn't be an accurate representation of the quotation to use the accurate content tag, and would be entirely inappropriate to use a content tag which happens to tend to give the formatting which the letter used?

    18. Re:Why You Should Use XHTML 2.0 ???? by chrwei · · Score: 1

      you meanlike XSLT? which, btw, IE does support.

      --
      - Disclaimer: Information in this post deemed reliable but not guaranteed.
    19. Re:Why You Should Use XHTML 2.0 ???? by Stuart+Gibson · · Score: 1

      With regards to the first point it is to get away from the explicit formatting and move to descriptive, at this point it really is arguing semantics.

      For point two, ideally you want to mark up the quote as a quote and, for the given example, use a semantic span for the bold text. EG Quoted text here. This allows you to suggest to browsers using CSS that the text should be in bold whilst also maintaining semantic meaning for that particular use. Note that the descriptive would be acceptable in this case because you were semantically describing other content and want to show that it was bold text, it would not be ideal just to make some text bold as it is semantically presentational, not structural.

      It all comes down to whether you do things "properly" or in a way that mostly gives the results. I prefer the idea of semantic markup and seperate presentation as much as is feasible given the current tools and browsers.

      Stuart

      --
      It's all fun and games until a 200' robot dinosaur shows up and trashes Neo-Tokyo... Again
    20. Re:Why You Should Use XHTML 2.0 ???? by Stuart+Gibson · · Score: 1

      Whoops, plain text strips html. That should have been Quoted text here

      Sorry.

      Stuart

      --
      It's all fun and games until a 200' robot dinosaur shows up and trashes Neo-Tokyo... Again
    21. Re:Why You Should Use XHTML 2.0 ???? by Feztaa · · Score: 1

      You can't build a database with XML.

      Oh, and you can with HTML? Stop trolling, XHTML is a markup language for defining the content of your website, while leaving the details of presentation to the external CSS file. This allows the page to be more accessible to people using screen readers in the sense that they no longer have to parse font tags just to find the content.

    22. Re:Why You Should Use XHTML 2.0 ???? by Anonymous Coward · · Score: 0

      My guess is that XHTML is being used more as a presentation kludge than as a content storage system.

      What? Maybe I missed something but, I think XHTML is for web presentation. If you had a database why would you store your data in XHTML? Why wouldn't you create the XHTML from the database rather than the other way around which you seem to be implying is the correct use?

    23. Re:Why You Should Use XHTML 2.0 ???? by ttfkam · · Score: 1

      As opposed to the divine elegance of nested tables and font tags? Please.

      By the way, if you don't like inline CSS, don't inline it. Make it a separate stylesheet file or at least put all declarations in the style element in the document head. Inline CSS is just an indicator of a web coder who's not yet ready to give up on font tags. Let them go!

      --

      - I don't need to go outside, my CRT tan'll do me just fine.
    24. Re:Why You Should Use XHTML 2.0 ???? by ttfkam · · Score: 1

      Three words: CSS Zen Garden. Or do you consider those "real basic layouts"? ...and they work in IE.

      The only reason you think tables are easier is because you already know how to make layouts with tables (and have learned the necessary cross-browser hacks), but you haven't learned CSS to the same extent.

      CSS can do anything a table-based layout can do AND can do a few things that tables cannot. And please don't bring in comparisons or DOM/CSS to HTML. The DOM has nothing to do with it unless you're scripting. If you're scripting, then yes, DOM/CSS is worlds better than document.write()/HTML.

      Oh yeah... Dreamweaver does XHTML now. So I guess that makes your entire post wrong. A shame that.

      --

      - I don't need to go outside, my CRT tan'll do me just fine.
    25. Re:Why You Should Use XHTML 2.0 ???? by Anonymous Coward · · Score: 0

      His point is that your content is already structured (in a database) -- structuring further just to send to a web browser is a pointless presentation detail.

    26. Re:Why You Should Use XHTML 2.0 ???? by Anonymous Coward · · Score: 0

      How does XHTML prohibit table layouts? That's a design practice, not a spec issue. Everyone here is under the deluded assumption that XTML is the magic content/presentation bullet, but the facts are that the same crowd of Dreamweaver-using doofs will be creating pages, XHTML or not.

      (The CSS issue is that XHTML is more than a doctype and matched tags -- some pages will have to change their structure by moving to external CSS/JS files.)

    27. Re:Why You Should Use XHTML 2.0 ???? by vrt3 · · Score: 1

      The default one uses a scalable design, but as far as I know it's the only one that does. The others use a fixed-width design. Apparently it's not easy to create a multi-column scalable design using CSS, which really is a shame.

      The reason is simple: everyone says CSS should be used for the presentation of your documents, which means styling and layout. But in fact it's only good for styling (as the name implies: cascading style sheets), not for layout. Tables are not perfect either, but they sure as hell are a lot easier to create scalable designs with.

      --
      This sig under construction. Please check back later.
    28. Re:Why You Should Use XHTML 2.0 ???? by Anonymous Coward · · Score: 0

      On the very first page of csszengarden, narrow your browser down to under 700 pixels wide and the japanese logo overlaps the text. That is the kind of thing I'm talking about.

      Using hacks to get around problems with browsers is not really a good solution imo. It seems to go against the purpose of XHTML/CSS. Tables haven't needed any hacks since ns4.7 went out of favour.

      There are things CSS has trouble with, in particular using position: absolute then getting the rest of the page to resize nicely into different sized browser windows, as demonstrated by the page you linked.

      And why not mention the DOM since it affects the order things are shown and the layering of them.

    29. Re:Why You Should Use XHTML 2.0 ???? by gillbates · · Score: 1

      HTML, no.... But I've never heard of anyone trying to build an HTML database. However, our vendor is pushing XML and XHTML as a replacement for existing database systems. Seems kind of stupid to replace a database with a markup language. For presentation, yes, it is fine, but it doesn't separate presentation from content any more than HTML did - unless you consider separation on the client to be something of interest. When people speak of separating presentation from content, it usually means one of two things:

      1. For enterprise systems, it means that you don't need an IBM terminal to connect to your mainframe database; your data is reformatted according to the particular needs of the client by an intermediate server.
      2. For web shops, it means that the client is free to reformat the data to their liking once the page has been returned to the client. They let the client do the rendering, rather than the server.
      The first definition is the more common one, because it affects the bottom line of the firm. The first is favored in some cases because it optimizes bandwidth; the second in cases where the client is unknown. XHTML only helps in the second case, and it hinders the first by increasing the cost of data access - both in bandwidth and development time.
      --
      The society for a thought-free internet welcomes you.
    30. Re:Why You Should Use XHTML 2.0 ???? by ttfkam · · Score: 1

      Yes, and when you drop slashdot down below a certain threshold, it condenses the content to an unreadable width and puts in an unsightly scrollbar. C'mon. Give me a break. Graceful degradation doesn't mean "expect a desktop browser to view a page at 200px wide." Just about every Windows computer since 1998 has used at least 800x600. Most are much larger. Have you heard? They make 17" monitors now too.

      And what about WebTV and cell phones and text browsers, etc. etc. etc.? Where's your table layout? Do your table-based pages scale to under 600 pixels wide gracefully? What about phones that can only show four lines at a time? How well can you navigate your page with lynx? What about printable versions? What do you do with your table-based layouts then? Make whole separate pages? With CSS, it's just another stylesheet. No need for substantial rewrites of logic that made your XHTML for each view nor for site graphic redesigns.

      The point of CSS is that you can make a different stylesheet tailored to each client. You'll note that on CSS Zen Garden, all of the different examples are the exact same markup underneath. EXACTLY THE SAME. Some of them even resize below 700 pixels wide. Wow! It's like they separated the content from the layout.

      Also check out Mezzoblue, made by the same guy who started the CSS Zen Garden. Go ahead, resize it down below 700 pixels wide. Hmmm... Still looks okay.

      And with regard to the DOM, I misunderstood before. I see what is meant now. And... well... DOM affects the default order and layering of things. Even that's not set in stone if you set the position and/or z-index.

      Take a look at the rest of the designs on CSS Zen Garden. Look at the sites linked from Mezzoblue. Check out Meyerweb. Welcome to the 21st century. We're waiting on you.

      --

      - I don't need to go outside, my CRT tan'll do me just fine.
    31. Re:Why You Should Use XHTML 2.0 ???? by ttfkam · · Score: 1

      Yes, most of them are fixed width -- just like most of the table-based layouts on the web are also fixed width. This is a design choice, not a technical constraint. CSS can do the standard three column layout on all browsers through a variety of methods.

      No, it's not the only layout on CSS Zen Garden that does. In fact my favorite, Bonsai Sky is quite flexible in addition to being visually stunning.

      Then again, I think that quite a few of the fixed width layouts are great too. So they don't scale out to 1000px wide. In my opinion, some of them don't have to; It doesn't detract from the experience.

      But the moral to the story is that every layout on that site is the exact same XHTML markup. The exact same. Only the CSS stylesheet changes. Can your table-based layouts do that when your company decides the web site needs a facelift, or are you hacking and slashing your logic, scripting, and markup to get it done?

      --

      - I don't need to go outside, my CRT tan'll do me just fine.
    32. Re:Why You Should Use XHTML 2.0 ???? by vrt3 · · Score: 1

      Yes, most of them are fixed width -- just like most of the table-based layouts on the web are also fixed width. This is a design choice, not a technical constraint. CSS can do the standard three column layout on all browsers through a variety of methods.

      Next time I need a webpage, I'll try it out. Last time I did, I didn't succeed without using a number of hardcoded width specifications that I didn't want to use.

      Then again, I think that quite a few of the fixed width layouts are great too. So they don't scale out to 1000px wide. In my opinion, some of them don't have to; It doesn't detract from the experience.

      That's a matter of opinion of course. But I absolutely hate fixed-width designs.

      But the moral to the story is that every layout on that site is the exact same XHTML markup. The exact same. Only the CSS stylesheet changes. Can your table-based layouts do that when your company decides the web site needs a facelift, or are you hacking and slashing your logic, scripting, and markup to get it done?

      I'm not doing anything, since I almost never design websites and when I do it's only for fun.

      I agree 100% that separating content from presentation is the Right Thing. But I think that presentation consists of two different things, namely style and layout, and that trying to stuff layout in a stylesheet is not the best way it could be done. I might be wrong though: next time I need a 3-column website, I'll try to find a design that scales nicely. If it works without all sorts of ugly hacks, I'll change my opinion and live happy ever after.

      --
      This sig under construction. Please check back later.
    33. Re:Why You Should Use XHTML 2.0 ???? by ttfkam · · Score: 1

      It doesn't prohibit table layouts. No technology can prohibit misuses. Tables in HTML were never intended for layout. They just ended up being the only way to do certain things at the time. However they were and are a hack.

      Using (X)HTML as a semantic markup with a separate styling specification is the attempt at cleaning up these hacks. Table elements are still there, but intended for their original purpose: tabular data not cut up graphics and info boxes.

      Yes, people who use WYSIWYG tools don't know the difference. That doesn't mean that those of us who do know the difference should turn a blind eye. We know better. That is the competitive advantage. It'd be a shame to squander it.

      --

      - I don't need to go outside, my CRT tan'll do me just fine.
    34. Re:Why You Should Use XHTML 2.0 ???? by ttfkam · · Score: 1

      What exactly are you looking for in a multi-column layout? Most of the time, I want the side boxes to remain a fixed width while just the content area grows. Otherwise, percentages can work to enforce proportions.

      Note: a fixed width does not necessarily have to mean pixels. More often than not, I use "ems" as they allow a layout to stretch as needed to account for varying font sizes both by me and by the remote client browser. Perhaps this can help with your multi-column layout woes.

      --

      - I don't need to go outside, my CRT tan'll do me just fine.
    35. Re:Why You Should Use XHTML 2.0 ???? by iabervon · · Score: 1

      On the first point, I think that to most people "bold" and "italic" are more descriptive terms for the semantics than "strong" and "emphatic", even if the "bold" content were formatted in all caps and the "italic" content were underlined. For that matter, the defintion of emphatic in Webster's includes "strong". Obviously, those terms are not particularly contrastive.

      For point two, you're missing the point. In order for the quotation to be accurate, the text which was bold must be bold. If I'm citing an unusual use of bold text, it is part of the semantics that the text be bold.

    36. Re:Why You Should Use XHTML 2.0 ???? by vrt3 · · Score: 1

      What exactly are you looking for in a multi-column layout? Most of the time, I want the side boxes to remain a fixed width while just the content area grows.

      Yes, that's what I want too.

      Otherwise, percentages can work to enforce proportions.

      I know, that's something I got to work.

      Now I'm in quite a difficult position since I only remember I couldn't get it to work, but I forgot exactly why it was. Perhaps I should have shut my mouth, but this is slashdot after all.

      --
      This sig under construction. Please check back later.
    37. Re:Why You Should Use XHTML 2.0 ???? by Anonymous Coward · · Score: 0

      700 pixels wide is a reasonable threshold to have the page work properly, I'd agree that 200px isn't.

      Yes I have heard they make 17" monitors, I also read statistics on visitors screen resolutions published on a few sites. Only recently has 800x600 started dropping below resolutions above 1024x768 in terms of popularity so its reasonable to make pages that would work for them.

      what about WebTV and cell phones and text browsers
      Yepyep, tables suck for such things agreed.

      Welcome to the 21st century. We're waiting on you.
      Hrm, I still reckon you (and me) are waiting on IE. I've used meyerwebs seashell idea to create a beautiful CSS site for a recent client only to find it broke in either IE6 or IE5.5 depending on which hack I used. After spending an few hours trying to get the design to function I made a hybrid tables/CSS design which took less time in total than trying to fix up the CSS hacks for IE. Maybe I'm just bitter.

      I still feel that it takes a lot of extra time to get a CSS layout working properly in moz and IE and time is money. Of course it also takes extra time to get tables working properly in IE so maybe I'll just shut up :)

  12. Re:Are You Reading This, Editors? by Anonymous Coward · · Score: 0

    Haha, like the editors actually read Slashdot anymore.

  13. So Slow ... by johnhennessy · · Score: 2, Interesting

    (Before I'm completely slaughtered for complaining about performance, a disclaimer: I haven't done strict benchmarks)

    Is it my imagination or are XSLT transforms very slow. I know this will depend on what engine you use to transform, but during the course of designing a website for a friend I tried several Java based transforms to go from XML to an XHTML page.

    Why are these operations so slow - I thought XML (and therefore XHTML) was supposed to be straight forward and easy to parse.

    In my limited experience XHTMLs benefits seem to be "weakened" by parsers/transformers that are still a bit away from maturity (speed-wise).

    (Hint: if anyone knows a lean, mean transformer nows the time...)

    --
    [ Monday is a terrible way to spend one seventh of your life. ]
    1. Re:So Slow ... by Anonymous Coward · · Score: 0

      I think you know this, but just in case:

      You don't HAVE to use XSLT to to do XHTML.

      You could parse the XML yourself (or start with it straight from the data layer as non XML) and generate the XML yourself.

    2. Re:So Slow ... by Zaiff+Urgulbunger · · Score: 1

      MSXML is fast!

      If that isn't suitable for religious, other reasons, then I believe that Saxon is now fairly fast provided you can keep it in memory; being Java based, start up times can be a bit pants.

      Beyond that, you might need to take care with how you write you XSL as this can impact performance, and also your XSLT transformer might provide a way to store "compiled" XSLT's (MSXML does).

    3. Re:So Slow ... by pohl · · Score: 1

      Where I work, our major custom web platform is entirely XSLT-driven and written as a java servlet (and myriad helper classes). For each HTTP hit, I take a milliseconds-to-process measurement from the moment we're in the entry-point for the servlet to the moment that we close the output stream. Each measurement goes into a histogram bucket (with buckets arranged at one-millisecond resolution) and the shape of the resulting curve is one tall peak centered about 110 milliseconds. 94% of all requests are processed in under 300 milliseconds. Only 1% of requests take longer than 1.3 seconds.

      This includes everything: detecting who the user is, fetching persistent session values, connecting them to a specific application built on the platform, scraping HTML forms, deciding how the application should respond, rending objects to a StringBuffer that contains some xml, transforming that xml to HTML using XSLT, writing changed session variables back to the database, frequent database interactions that don't follow under the previous category, and streaming the resulting HTML.

      If you can't do this, then you either have an architectural problem, or you're not giving your process enough memory/CPU, or you've got some other bottleneck, such as a slow interaction with your databases.

      You might try to make yourself a simple Histogram object using some sort of Map with Long (milliseconds) as the keys and Long (count) as the values, and then use it to measure various points along your path. You may find the real culprit is not XSLT. Or, you may find that you're not using XSLT in the best way.

      Hope this helps.

      --

      The "cue the foo posts in 3, 2, 1..." posts will commence with no subsequent foo posts in 3, 2, 1...

    4. Re:So Slow ... by Deraj+DeZine · · Score: 1

      Yeah, someone should write and XSLT engine in assembly. Really, what are you looking for? There's a reason that faster computers are a good thing. The faster the computer, the less cryptic all input/interaction has to be.

      --
      True story.
    5. Re:So Slow ... by Anonymous Coward · · Score: 0

      "(Hint: if anyone knows a lean, mean transformer nows the time...)"

      What about client-side XSLT in Windows IE and Gecko? Those are pretty darn fast.

      XML-XSLT-Schema-CSS does work in web pages. The only problem is with browser support. Currently, Windows IE5+, Mozilla, and Firefox are the only browsers that support the full spec of XSL 1.0.

    6. Re:So Slow ... by the+endless · · Score: 1
      during the course of designing a website for a friend I tried several Java based transforms to go from XML to an XHTML page.

      May I ask why? There are three situations I can imagine here:

      1. You have a bunch of static XML files that you want to display in a browser as XHTML. In which case, write a script to transform the XML files into XHTML, and then put the XHTML files on your web server. Rerun the script when you change the XML. There is no need to be recreating your XHTML for every page request when the XML isn't changing!
      2. You're grabbing data from e.g. a database and creating an XML file from it, and then transforming this to XHTML. Believe me, I've seen this done - just use the data to generate an XHTML file instead. There's no need to generate XML as an intermediary format when you can just as easily generate the final output you want anyway. Once again, if the data doesn't change frequently, consider just creating the XHTML files and storing them statically, recreating them when the data changes.
      3. You're grabbing an XML file from a remote location (and therefore the format is out of your control) and using it to generate XHTML. In this case, you're pretty much out of luck - although, yep, you guessed it, consider creating the files only as necessary.

      Another thing to bear in mind is that some browsers (Internet Explorer 6.0, Mozilla (I forget from which version)) can understand XSLT themselves. You could do some server-side browser detection and, if the client can support it, farm out the XSLT processing to them.

      Moral of the story: if you don't need to do it, don't!

    7. Re:So Slow ... by copypaste · · Score: 1

      I've written a lot of transforms and in my experience, one of the main causes of poor performance is poorly written xpath expressions that have to perform global document searches.

    8. Re:So Slow ... by prockcore · · Score: 1

      Is it my imagination or are XSLT transforms very slow. I know this will depend on what engine you use to transform, but during the course of designing a website for a friend I tried several Java based transforms to go from XML to an XHTML page.

      It is your imagination. Well, more likely it is your Java. We use libxslt to convert from XML to XHTML on our site. Our site has handled several slashdottings no problem.

      Our benchmarks show that we can apply a 30k XSLT to a 20k XML document around 300 times per second on an E210.

    9. Re:So Slow ... by Anonymous Coward · · Score: 0

      I agree I have found the transalation from XML / XSLT to be very slow. But perhaps that will improve. CSS replacing tables in your pages on a good app language (PHP,ASPX) coded well is nice and fast.

  14. I dont know... by boomgopher · · Score: 2, Interesting

    I dif XML and all, but things like replacing tags with stuff like:

    <p src="map.png"><span src="map.gif">Exit from station...</span></p>

    seems a bit too... anal? or purist/academic at best.

    I suppose it's a moot point if MS/Macromedia/Adobe comes out with a great XHTML2.0 WYSIWYG editor, then 95% of the developers out there wouldn't even care...

    --
    Your hybrid is not saving the environment. Its purpose is to make you feel good about buying something.
    1. Re:I dont know... by slungsolow · · Score: 1

      It would be nice to be able to throw in some formated alternate text that isn't limited in length. Accessibility standards are a pain in the ass now a days, so the more you can add to an image the better.

    2. Re:I dont know... by renderhead · · Score: 2, Insightful

      This is only a problem for pre-existing code and for people who already know HTML. If I were teaching a brand new user to write markup, this method makes just as much sense as the img tag, if not more.

      I've given people introductory "crash courses" in HTML before, and they often go something like this: "A tag is used to format content. Except for the img tag. That one IS content. And you should always close your tags. Except the img tag. It stands alone because it's an object not a formatting tag."

      Not terribly confusing, but it is inconsistent that tags in HTML represent formatting in some cases and content in others. This new method makes more sense to me, especially coming from a CSS-heavy background.

      --
      I wish that my inferiority complex were as good as yours.

      -RenderHead

    3. Re:I dont know... by JimDabell · · Score: 1

      The examples you gave are not equivalent. The equivalent of:
      <img src="foo.png" alt="foo" />
      ...is:
      <p src="foo.png">foo</p>

      The complicated example you gave is merely an example of how you can provide multiple fallbacks.

    4. Re:I dont know... by jandrese · · Score: 1

      You know, this reminds me of something Larry Wall pointed out.

      From an academic perspective, there is no need for the + (Match one or more of the previous token) operator in regular expressions, since a+ is equivelent to aa*. In fact, if you want to make a language more elegant you would drop the + as it is redundant. In the real world nobody wants to retype a 14 character long token.

      --

      I read the internet for the articles.
    5. Re:I dont know... by m50d · · Score: 1
      No, it doesn't. Html 3.0 was easy for new people because the tags had sensible names which reflected what they did. Average Joe could see where the names come from.

      for paragraph. for heading 1. for image. for font. and for bold and italics. I still use these tags because they *make sense*. I can never understand what I'm supposed to do these days instead of .

      --
      I am trolling
    6. Re:I dont know... by p3d0 · · Score: 1
      No, for elegance you'd drop both "+" and "*", and use a{1,} and a{0,} respectively. Then Mr. Larry Wall's straw-man argument falls apart.

      I don't know any jackass dumb enough to think that aa* is elegant, since "a" could actually be arbitrarly long and complex.

      --
      Patrick Doyle
      I mod down every jackass who puts his moderation policy in his sig. Oh, wait a sec....
    7. Re:I dont know... by Anonymous Coward · · Score: 0
      I dif XML and all, but things like replacing tags with stuff like:

      Exit from station...



      seems a bit too... anal? or purist/academic at best.

      [reply]

      I think the issue was that they tried to put it in the object element, and discovered that Microsoft's "enhancements" made it completely unworkable. So they stuck it in everywhere. Seems like a fairly reasonable response to me.

      John Roth
    8. Re:I dont know... by Anonymous Coward · · Score: 0

      The *language* would be elegant you dumbass, and elegant from a purely academic point of view.

      No one claimed the resulting code (regular expressions, whatever you want to say) would be more aesthetically pleasing.

      The whole point is that doing things from an academic point of view is stupid.

    9. Re:I dont know... by horigath · · Score: 1

      XHTML 1.0/1.1 is pointing in this direction, and in many cases it is already preferable to use container objects (I usually use divs) with css-set backgrounds rather than images. It makes the page deal with multiple stylesheets much more effectively, for instance - and so I regularly do so, at least in the layout portions (as opposed to the content portions) of my pages. This "new way" is great. Hopefully the src can be altered with css in some way - but even if I still use background-image:, it will still be more evenly implemented on my pages.

    10. Re:I dont know... by Anonymous Coward · · Score: 0

      pwnt

    11. Re:I dont know... by superyooser · · Score: 1

      How does it make sense to use a paragraph element to insert an image? A paragraph, by definition, is comprised of text.

    12. Re:I dont know... by JimDabell · · Score: 1

      It doesn't, that's not what is happening. There is a paragraph "foo", and if it is possible to replace it with the content indicated by the src attribute, it will be replaced.

    13. Re:I dont know... by transient · · Score: 1

      Why didn't you just use an <object> tag?

      --

      irb(main):001:0>
    14. Re:I dont know... by superyooser · · Score: 1
      I certainly understand the desire for formatted alt text, but it seems wrong to use the p element in this way. It is not a generic element like div. P means paragraph, and an image is not a paragraph. If they're willing to add a src attribute to p to make it insert images, why don't they just change img to better support text?
      <img src="tux-doll.jpg">
      A <span class="smalltxt">little</span> stuffed Tux is sitting on <strong>my</strong> computer monitor.
      </img>
      That would've been a more intutuitive modification. The tag's name should reflect the tag's purpose (img for image), not its fallback feature.
    15. Re:I dont know... by p3d0 · · Score: 1
      You're still wrong. If you can find just one single person who thinks aa* is elegant then I will concede the point. I don't care how academic you are; aa* is not elegant.

      It's a staw-man argument: you're claiming that some fictitious set of people possess some absurd belief, and then proving them wrong. Well, sorry, but academics are not idiots.

      --
      Patrick Doyle
      I mod down every jackass who puts his moderation policy in his sig. Oh, wait a sec....
    16. Re:I dont know... by JimDabell · · Score: 1

      P means paragraph, and an image is not a paragraph. If they're willing to add a src attribute to p to make it insert images

      You still aren't getting it. The src attribute is generic - it's not a new attribute for the <p> element type, it's a new attribute for most element types. It's a generic way of replacing existing content with external resources.

      The example in question starts out like this:

      <p>foo</p>

      It's a paragraph of text. That is correct markup. Then, when the src attribute is added, the resource replaces that entire element if possible. The fact that the element happens to be a <p> element is irrelevent; it could be a <table> element, an <h1> element, or whatever. The element type with the src attribute isn't describing the resource pointed to by the src attribute, you are looking at it backwards.

    17. Re:I dont know... by superyooser · · Score: 1

      Oh, I didn't catch that src was a generic attribute. It still seems strange. Is src used to insert only images? If so, it would be better to name the attribute img. Src means image file to us only because it has been used within the context of the img element. "Src" by itself could mean anything.

    18. Re:I dont know... by tepples · · Score: 1

      Is src used to insert only images?

      Or sounds. Or video. Or applets, whether Java or Flash.

    19. Re:I dont know... by renderhead · · Score: 1

      I disagree. The tag for a link is an "a"? That only made sense before documents could be linked together (which means pre-version 3.0). Until Netscape muddied the waters, the only way to make text bold was with the "strong" tag, and italics were defined by the "em" tag. Neither of those were intuitive to anyone used to word processing or typesetting of any kind.

      Besides, if you can use the same code you used in HTML 3 on your web page today and get the same results, what are you complaining about? If you want your page to be fancier, naturally that will involve learning more complex markup. You can't have it both ways.

      --
      I wish that my inferiority complex were as good as yours.

      -RenderHead

  15. Standards work now by cubicledrone · · Score: 2, Insightful

    The reason most HTML is not valid is because browsers have generally not supported CSS completely, which makes it necessary to replace DIVs with tables, add huge browser functions to Javascripts, etc.

    Now, Safari, Mozilla and Opera support about 98% of CSS-1 and parts of CSS-2, so it becomes possible to actually develop a working web site without spending 10 hours of testing and debugging (yes, debugging HTML) for every one hour of actual development.

    --
    Business isn't willing to pay for products, innovation and careers, so we get brands, mortgage commercials and layoffs.
    1. Re:Standards work now by arkanes · · Score: 1

      It'd help if the CSS box model wasn't almost totally useless and broken, too. To say nothing of it's support on browsers (ie, minimal and varying between implementations), which makes it even more useless in reality than it is in theory.

    2. Re:Standards work now by Anonymous Coward · · Score: 0

      the box model WILL work if you apply the good DTD (yes, even with MSIE).

      sorry, don't have the URL at the moment

    3. Re:Standards work now by evolve75 · · Score: 1

      Except that probably 90% of the users *would* be using a Browser that doesn't. This is a constraint every web developer would have dealt with, with the corresponding compromises. Users do not want to know about browsers, compatibility, standards and other geek-gobbledegook. They want to click on a link and see the information they want. Its that simple.

      Standards are fine, but finally the web is about disseminating information. What we need to see is perhaps a composite markup model which allows deprecated standards to coexist (for some time at least) along with the shiny new Next Thing. This would allow the content to be switched to the newer standards as and when wider support becomes available (and I am not talking about the "TRANSITIONAL" DTDs or the ECMAScript hacks to switch content).

  16. Ah yes, SVG and MathML. by Anonymous Coward · · Score: 0

    Do ANY web browsers support those out of the box yet?

    1. Re:Ah yes, SVG and MathML. by Linegod · · Score: 1

      For SVG, Konqueror 3.2.3 - not perfect, but supported 'out of the box'.

      Theory has it that Mozilla/Firefox can be compiled with SVG support, but I've yet to see anyone do it.

      Downloading the Adobe SVG plugin will not make you go blind though....

      .

      --
      -- I care not for your foolish signatures.
    2. Re:Ah yes, SVG and MathML. by oddtodd · · Score: 1

      i built mozilla w/SVG support, not trivial, but not impossible.

      --
      I have plenty of common sense, I just choose to ignore it. -- Calvin
    3. Re:Ah yes, SVG and MathML. by Anonymous Coward · · Score: 0

      Now distribute your binaries! Let the weenies try SVG!

    4. Re:Ah yes, SVG and MathML. by Faust · · Score: 1
      k, gentoo zealot:
      USE="SVG" emerge mozilla-firefox
    5. Re:Ah yes, SVG and MathML. by Lennie · · Score: 1

      You should be looking here.

      --
      New things are always on the horizon
  17. Re:A model XHTML site check by the W3C by Anonymous Coward · · Score: 0

    I wouldn't cry fowl about being modded as a troll when you post offensive web pages and say "see how W3C clean it is?"

  18. It's always the way. by caluml · · Score: 5, Informative
    From the FAQ:
    Which browsers accept the media type application/xhtml+xml?

    Browsers known to us include all Mozilla-based browsers, such as Mozilla, Netscape 5 and higher, Galeon and Firefox, as well as Opera, Amaya, Camino, Chimera, DocZilla, iCab, Safari, and all browsers on mobile phones that accept WAP2. In fact, any modern browser. Most accept XHTML documents as application/xml as well. See the XHTML Media-type test for details.

    Does Microsoft Internet Explorer accept the media type application/xhtml+xml?

    No. However, there is a trick that allows you to serve XHTML1.0 documents to Internet Explorer as application/xml.

    Include at the top of your document the line in bold here:

    <?xml version="1.0" encoding="iso-8859-1"?>
    <?xml-stylesheet type="text/xsl" href="copy.xsl"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transition al.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>

    where copy.xsl is a file that contains the following:

    <stylesheet version="1.0"
    xmlns="http://www.w3.org/1999/XSL/Transform">
    &am p;n bsp; <template match="/">
    <copy-of select="."/>
    </template>
    </stylesheet>

    Note that this file must be on the same site as the document referring to it.
    1. Re:It's always the way. by Zaiff+Urgulbunger · · Score: 1

      Not wishing to defend MS in anyway [and suffer the Wrath Of /.] but although I find it a total PITA making websites work with the various vintages of MSIE, IE6 isn't too bad..... I'm not saying its good, and obviously it *should* be much better, but even if MS had continued browser development and created a 100% CSS1, CSS2 and XHTML 1.x compliant IE7, we'd *still* have people running older versions so we'd *still* have to code websites to work with those versions.

      The thing that I find takes the most time during website development is testing and fixing issues in IE5 and IE5.5; they are both fairly different from IE6 and are both generally far worse. But users still continue to use them (albeit in far fewer numbers these days) so I still have to build sites that work with them.


      Right all that said, the example code given above to allow content delivered as application/xhtml+xml, does that work in IE5.x ? I know that some people run IE5.5 but don't have MSXML installed but I'd imagine you need that in order for this code to work.

      Has anyone tested this?

      TIA!

    2. Re:It's always the way. by sjames · · Score: 1

      I know that some people run IE5.5

      What we need is an IE exploit that upgrades bthe browser.

    3. Re:It's always the way. by Anonymous Coward · · Score: 0

      btw, here's a very nice review of one of very few CMS systems (GNU GPL) that support application/xhtml+xml natively, called BLOG:CMS :)

      See review at http://www.literarymoose.info/-/item/log-inaugurat ion

    4. Re:It's always the way. by Zaiff+Urgulbunger · · Score: 1

      I so so *sooo* wish that would happen!!

    5. Re:It's always the way. by FictionPimp · · Score: 1
      Which brings up an important question. How long do you support these browsers? I'm not trying to troll or anything. I try to support as many browsers as possible, but I tell my clients I can only confirm ie6, safari, mozilla, and opera in my standard quotes. Anything more will require more debuging time.

      At what point would you say we should stop supporting browsers that have much newer versions at no cost. I personally think we should support technology for a max of 3 years. On my personal website I display a page that tells IE users that they are using a insecure browser and my site may not display properly and I provide links to opera and firefox. But that is my personal site, and I know commercial sites can not do this. I just find it interesting we talk about all this new technology, but we never talk about when is the right time to abandon old technology. We just say, well when its supported, or well when most people use X. But most people will never use X product without any reason to. In the computer world software lives forever, it has no natural shelf life. We have to plan its obsolescence (I have no clue if I spelled that right). So what time is the right time to abandon old technology? When should we stop supporting IE5. Does anyone still code for NCSA Mosaic?

    6. Re:It's always the way. by Zaiff+Urgulbunger · · Score: 1

      I try to support as many browsers as possible, but I tell my clients I can only confirm ie6, safari, mozilla, and opera in my standard quotes. Anything more will require more debuging time.

      I think thats a good strategy. There are costs involved in the additional testing and associated CSS/hacks etc to make the older browsers work, so being able to present these costs to the client (as in the person paying for web-dev.) has got to be a good idea!

      I believe that IE5.x is used by approx. 20% of users depending on whos figures you believe. Mac users will migrate to Safari, and *a lot* of Windows users have migrated to XP and IE6.

      Annecdotally (hmmm... dodgy speeeling?), IE5.5 use seems to be dropping away compared with IE5.01. I think 'cos Windows 2000 shipped with IE5.01 and since thats still a current OS, people still seem to run that browser. Whereas I don't think IE5.5 shipping with anything? Maybe Windows ME - but that OS doesn't seem to have shipped as many copies. Anyway, I'm rambling!!

      I think you have to continue developing for browsers people are using unfortunatly! IE5.x usage at ~20% is still far to great a market share to ignore, but it will gradually slip away and having development costs to show will help make the case to ignore it.

      I find it easiest to guarantee that a website will be accessible in older browsers, but state that the layout *might* be less that 100% perfect in older browsers. That way the cost of web development stays sensible, whilst the users of older browsers should still be able to access information.

    7. Re:It's always the way. by ttfkam · · Score: 1

      IE 5.5 is workable though. It definitely has some hefty warts, but it's serviceable. IE 5.0 and below contain some show-stoppers. Luckily 5.0 and below have dropped below the 10% level, and they will continue to fall.

      If more people drop direct support for them, more web pages will break for these people, and sooner or later they will upgrade or someone else will upgrade for them.

      Also note that users of IE4 and IE 5.0 (and 5.5) obviously aren't using Windows Update. Honestly, I say "fuck 'em!" These are the people that have been taken over by worms, are partly responsible for a good portion of the viruses that end up in my inbox everyday, and probably have some much of their bandwidth taken up by those worms/viruses that the web isn't enjoyable for them anymore anyway.

      Honestly. Less than ten percent. Worm food. Fuck 'em.

      --

      - I don't need to go outside, my CRT tan'll do me just fine.
    8. Re:It's always the way. by tepples · · Score: 1

      Then why not have your employer (or, if you do not work in IT, the employer of a relative who does work in IT) buy an Authenticode certificate and then make an ActiveX control that downloads and installs the latest stable release of Mozilla Firefox?

    9. Re:It's always the way. by Hobophile · · Score: 1
      Annecdotally (hmmm... dodgy speeeling?), IE5.5 use seems to be dropping away compared with IE5.01. I think 'cos Windows 2000 shipped with IE5.01 and since thats still a current OS, people still seem to run that browser. Whereas I don't think IE5.5 shipping with anything?
      Microsoft has dropped support for IE 5.5, per this page.

      Users with IE 5.5 installed who visit Windows Update are, as I recall, prompted to install IE 5.01 SP4 as a Critical Update, and IE 6 SP1 as a recommended update.

      So usage should continue to decline at an appreciable rate.

  19. Ugh by jandrese · · Score: 2, Insightful

    Man, do you remember when writing a webpage by hand was easy? Back in 1996 or so when just about anybody with a text editor and a link to that excellent Netscape HTML manual could write a decent page without spending hours poring over obtuse documentation?

    Now you have to figure out what Doctype to set, learn CSS, enter some sort of weird workaround for IE, etc... Worse, HTML used to be fairly forgiving for the author so Newbies could get a decent page without spending hours and hours trying to figure out why their page is coming up blank or trying to figure out why the validator is complaining at them. (I really hate when it says stuff like: Illegal use of <B>. And I'm left scratching my head as to why it is illegal.). It's no wonder newbies choose instead to write their webpage in Word and use the horrible "export to HTML" feature.

    --

    I read the internet for the articles.
    1. Re:Ugh by slungsolow · · Score: 1

      XHTML is still pretty easy to remember (and learn). Its the same tags as HTML, except it requires a stricter syntax.

      XHTML and CSS could be taught to middle school/junior high students. Its no harder to grasp than BASIC was 15-20 years ago.

    2. Re:Ugh by Ambrose · · Score: 3, Insightful

      It is because HTML is so lax that we have the browser support nightmare we're in today. I would trade making it harder for the average newb to make a web page for consistent (or at least predictable) rendering across browsers.

      Not to mention accessibility. The vast majority of sites out there are all but completely useless to the blind, or those who require very large print, or who are browsing on PDAs, cellphones, or other small devices.

      The new standards are a Good Thing, and if that means gramma can't hand-code her photo gallery page (and you know, there are a lot of grammas out there that do that know) I'm not going to lose any sleep over it.

    3. Re:Ugh by JohnnyCannuk · · Score: 3, Insightful

      Do you remember that web pages in 1996 look like shit?

      Do remember that web development these days cannot rely on simple static text?

      Do you realize that with HTML/XHTML editing tools around these days, it doesn't matter?

      Right tool for the job, my friend. A text editor is for writing static text. HTML/XHTML tools are used for making web pages and interfaces.

      Just because there's "doc types and CSS" out there doesn't mean you have to use them - go ahead and write crappy looking pages in notepad, just becasue you can. But if you are going to do proper, standard, stylish web development that is a good experience for the user, you may need to know some of this stuff.

      Clearly you aren't a web developer.

      --
      Never by hatred has hatred been appeased, only by kindness - the Buddha
    4. Re:Ugh by BlaKnail · · Score: 3, Insightful

      "Worse, HTML used to be fairly forgiving for the author so Newbies could get a decent page without spending hours and hours trying to figure out why their page is coming up blank or trying to figure out why the validator is complaining at them."

      HTML being forgiving is a bad thing. Sure, it's easier for the average person to crank out a homepage, but without strict standards, we ended up with a myriad of browser incompatibilities and mountains of sloppy coding that can't be parsed correctly.

      XML and XHTML really are a godsend.

    5. Re:Ugh by pjt33 · · Score: 1

      I learnt basic HTML in 1996 from a three-page magazine article, learnt a bit more (tables, lists, etc) from an NCSA tutorial, that's all I use nowadays. I'm not going to bother learning any of these new-fangled standards until the average browser won't support HTML 3.

    6. Re:Ugh by kfg · · Score: 1

      Its no harder to grasp than BASIC was 15-20 years ago.

      The fact that you are equating a markup language with a programing language is part of the problem.

      KFG

    7. Re:Ugh by Kentamanos · · Score: 4, Interesting

      I would argue learning XHTML is easier than HTML since the rules are a LOT more straightforward.

    8. Re:Ugh by slungsolow · · Score: 1

      I never said that XHTML is the same as BASIC. I only said that its as easy to learn. Don't read into things so much. Things are sometimes more innocent then they look.

    9. Re:Ugh by jandrese · · Score: 2, Insightful

      My big point was that the original web standards were pretty egalitarian, with just about anybody with a good (or not so good idea) able to toss up a halfway decent looking page. Nowadays the standards are becoming rather elitist, and unless you're already a master of XML and know the W3C's technical jargon well enough to read their documentation, you stand little chance of just picking up XHTML from reading the documentation.

      I know the pages won't be very accessable, but the kind of people who need this are the kind of people for whom accessability is not a huge issue (these people never set ALT tags for instance). Unfortunatly, is is also these people who really made the web explode in the early days by filling the WWW with an enormous assortment of information and services. Nowadays it seems that far fewer people are creating novel services or information stores. Unusual webpages are getting harder and harder to find, and most of the content added is in the form of Blogs, which are annoyingly transitory.

      I guess I've ranted enough on this for now.

      --

      I read the internet for the articles.
    10. Re:Ugh by Kentamanos · · Score: 0, Redundant

      Well said!

    11. Re:Ugh by renderhead · · Score: 1

      It's still easy to make a web page that looks like it was made in 1996...if that's what you really want. The problem isn't that coding is harder than it used to be, the problem is that people's expectations have started to exceed their abilities more and more.

      Back in 1996, the really "fancy" pages tended to suck, either because they were poorly designed or bloated and slow. The really streamlined, simple pages tended to be really nice and accessible, and even if they weren't pretty, they weren't ugly either.

      Guess what? In 2004 those same streamlined pages still look just as good as they did in 1996. The fancy ones have all been replaced because they were so god-awful. Want to make an easy site that doesn't make people's eyes bleed? Stick to one font, a light background color (preferably white) with NO background image, and avoid all of the blinking, scrolling, and music-playing pageantry that is so popular among newbies. Surprise! You'll find that a page like that is really really easy to make - even now in the age of XML.

      --
      I wish that my inferiority complex were as good as yours.

      -RenderHead

    12. Re:Ugh by Octos · · Score: 1

      Don't read the W3C docs if you want to do XHTML. Those docs are primarily written for the engineers that are going to implement the spec.

      CSS is easier to learn/use than any table layout ever was. There are still a few kinks, but stick to CSS1 and you won't have problems. CSS also works just like styles in popular DTP and word processing programs, which users tend to be familiar with.

      You also ignore the possibility that a strict markup may be harder for a newbie to code, but make it much easier for programmers to write WYSIWYG tools that will spit out proper, unbloated code.

      As for creative web projects, there's still plenty around. Flash has taken over a bit. Information stores need a database, so aren't very doable by grandma anyway.

      --

      "I am not a number! I am a free man!"-- The Prisoner

    13. Re:Ugh by Anonymous Coward · · Score: 0
      HTML being forgiving is a bad thing.

      Only if you actually care MORE about the presentation than the content. I've read several webpages obviously designed by 'clueless newbies' but which provide great information in their field. I think it's fantastic that 'the average person' has an easy way to tell us about their area of expertise without having to wade through the W3C's ridiculously technical documentation. Observation indicated that people who have interesting content on their webpages tend not to mess things up code-wise that the content is inaccessible (to most).

      Standards are very important, and we should definitely work to enhance awareness of them, but should not be the first and only benchmark we use!

    14. Re:Ugh by FuzzyBad-Mofo · · Score: 1

      Great, have fun with your nested <TABLE>s, maze of <FONT>s, and <img src="spacer.gif">s. I'll be busy getting stuff done with XHTML+CSS.

    15. Re:Ugh by ryantate · · Score: 1

      Agreed. And I do remember those days.

      It was also nice when the Web browser could lay out the page as soon as it was downloaded, even *as* it was downloaded. Now it needs to fetch the page, parse it, request all the embedded CSS sheets and JS files, all before it can lay out a single pixel. Ick.

      Also, CSS in my experience degrades far less gracefully than tables, despite all the hooplah to the contrary. Anyone who thinks CSS is cross platform should try using an iMac that can't be upgraded to Mac OS X. Yahoo Calendar was redesigned with CSS, and it actually will not display on my computer any more, even with the latest IE. Other CSS-driven sites squeeze text into columns that are two characters wide, or send images way off into space ...

      The problem isn't with HTML, it's with all the crap people are trying to do with the presentation layer. Everyone has to change the link colors and position things just so -- get over yourselves. Create some new tags for navigation menus and wrap everything in the tags that worked on Netscape 1.1. And keep HTML HTML.

    16. Re:Ugh by 1110110001 · · Score: 1

      and shouldn't be used any longer because they mean _b_old and _i_talic. This means their content should be bold or italic. Now they are called and and you have to choose how they should look like with your CSS. It's just a naming-thing.

      b4n

    17. Re:Ugh by trisweb · · Score: 3, Insightful

      Clearly you aren't a web developer.

      Most of the web developers I know (and I know a lot) started out using tools like Dreamweaver and GoLive etc, which now output decent XHTML, but now they are starting to move toward XHTML and CSS in their designs (which are some of the best on the net, might I add), and they're switching to using text editors exclusively for writing the code, plus your standard graphics programs for the images. I do the same.

      The great thing about XHTML is that is separates the content from the design, which in turn makes your code beautiful and easy to write and maintain. I was looking at an XHTML page I had written the other day, and I thought, gee, I could just put this up as plain text and people would still understand it. It was free of all that contextual crap (tables, font tags, one-pixel spacer images) that heavily-designed HTML pages of two years ago were full of. So no, a text editor is not just for writing static text. I use mine for every aspect of the design process, though, admittedly ConTEXT is not notepad, it's pretty close. And I would contest that the sites I develop aren't crappy looking.

      You may be able to design sites with a tailored WYSIWYG HTML editor, but you usally have little control over how everything fits together, and it results in messy code that is hard to understand. If that works for you, then fine, great. All I can say is that you better "know some of this stuff" and how to do it without your XHTML editor -- learn it in notepad -- and then, once you see what was output by your editor, and if you have any respect for the XHTML standard and the ideals that the W3C had in mind when they thought of it, I have a feeling you won't go back.

      --
      "!"
    18. Re:Ugh by pjt33 · · Score: 1

      Fonts? Spacers? What are you talking about? Nested tables don't bother me either - I only have one or two, and the nested is due to a script I wrote to bung a standard header and footer around a file containing the page contents.

    19. Re:Ugh by kirkjobsluder · · Score: 3, Interesting

      Gee, am I the only one who has been writing xhtml in vim for a while now?

      It's not that hard to do.

      1: add the doctype at the top.
      2: always close your tags.
      3: check you work with a validator.

      html tidy will also identify and clean up any mistakes.

    20. Re:Ugh by delus10n0 · · Score: 1

      Don't blame a webpage for not working just because you're using a crappy web browser.

      --
      Not All Who Wander Are Lost
    21. Re:Ugh by Princeofcups · · Score: 1

      I would argue that XHTML has a lot more rules.

      jfs

      --
      The only thing worse than a Democrat is a Republican.
    22. Re:Ugh by Anonymous Coward · · Score: 0

      The great thing about XHTML is that is separates the content from the design

      This is equally possible with screwy HTML4 and CSS. Doing this is a 'best practice' and not a 'technology'.

      Content/design seperation is a non-argument in favor of XHTML.

    23. Re:Ugh by sjames · · Score: 1

      A good rule of thumb for web pages, if you can't do it with VI, simplify. Otherwise, for most content, you've placed form over substance, and the web (like everything else) is already way too full of that. A nice side effect of simple but functional layouts is that they tend to work in all browsers and need less tweaking to make them accessable.

      The new standards aren't too bad, but it is clear that simplicity wasn't a priority. For example, why not only require DOCTYPE and xmlns if they differ from the boilerplate defaults? Result? One less reason for a perfectly good document to fail because of a typo.

    24. Re:Ugh by Anonymous Coward · · Score: 0

      I write XHTML with a text editor all the time. It's no big deal.

    25. Re:Ugh by Anonymous Coward · · Score: 0

      Its no harder to grasp than BASIC was 15-20 years ago.

      The fact that you are equating a markup language with a programing language is part of the problem.


      The fact that you are equating BASIC with a programing language is a problem ;).

    26. Re:Ugh by Anonymous Coward · · Score: 0

      XHTML has more consistent rules. The actual number of rules might be more using some "silly" counting method, but the fact is they're more consistent, and therefore MUCH easier to remember.

    27. Re:Ugh by kfg · · Score: 1

      Touche!

      KFG

    28. Re:Ugh by 4Lorn · · Score: 1
      Why do I have to use up to five extra letters and remember to add some lines to a CSS if I DO want my letters to be Bold or Italic!?

      There's a nice thing called backwards compatibility (which doesn't hurt in this prticular case). Most browsers display really simple pages the same way and differ on the CSS, Javascript and whatever part. Now an HTML tells me tables don't have images for backgrounds... sheesh!

    29. Re:Ugh by the+endless · · Score: 1
      Back in 1996 or so when just about anybody with a text editor and a link to that excellent Netscape HTML manual could write a decent page without spending hours poring over obtuse documentation?

      The W3C specs for XHTML, CSS and the DOM aren't obtuse - I understand them just fine. You're just not thinking about their target audiences. Joe Schmoe has about as much need to read the XHTML specs in order to write XHTML documents as he does to read the TCP/IP RFCs in order to set up a home network.

      Joe Schmoe will instead read a beginners tutorial on the web, or buy "a dummies guide to XHTML", or (more likely) use a WYSIWYG tool.

      The specifications are primarily for implementors, i.e. writers of browsers and parsers and other such tools, and secondly for those users that are advanced enough to want to read the actual spec.

    30. Re:Ugh by 1110110001 · · Score: 1

      1) The default CSS in most browser display strong like b and em like i. If you forget to add something to your stylesheet.

      BTW opening and closing tag of strong means 10 letters more. So what? I don't care about typing more and it really doesn't matter if you got used to it.

      2) XHTML 1 Transitional still exist, HTML 4 too. Use it if you like to. It's still supported by your favorite browser. If there is a tag they don't know it gets ignored. If your browser supports XML you could even use XHTML 2 and convert it to XHTML 1 as example in the FAQs show.

      b4n

    31. Re:Ugh by ttfkam · · Score: 1

      Sort of... XHTML 1.0 Strict, XHTML 1.1, and XHTML 2.0 do not have presentational elements in the DTD.

      In HTML, it's a best practice. In most XHTML, it's a technology.

      --

      - I don't need to go outside, my CRT tan'll do me just fine.
    32. Re:Ugh by prockcore · · Score: 1


      HTML being forgiving is a bad thing. Sure, it's easier for the average person to crank out a homepage, but without strict standards, we ended up with a myriad of browser incompatibilities and mountains of sloppy coding that can't be parsed correctly.


      Not only that but when you need to edit your pages you have to spend hours trying to figure out why your tables are breaking, and then find out it is because you didn't close a font tag earlier. You always run into code that worked fine before, but you make a few minor changes and it all falls apart.

      Anyone who has ever worked on a complicated site (and slashdot is not considered complicated) would agree that xhtml is a godsend. It makes it easier to edit your pages later on when the bosses want to add another sidebar or a slashbox or something.

    33. Re:Ugh by gagol · · Score: 1

      You are not the only one who belive in "manual" coding. In fact it happens to ma that I work faster and ways of magnitude better in hard coding than in nightmareweaver. Those people are not webmasters.

      --
      Tomorrow is another day...
    34. Re:Ugh by ryantate · · Score: 1

      IE for Mac is a fairly nice browser actually. And the Mozilla team stopped supporting my platform long ago.

    35. Re:Ugh by OSSMKitty · · Score: 1

      IE for Mac used to be a fairly nice browser. There was a time when it set the standard for CSS support. Unfortuntely, the world moved on, and IE for Mac didn't. It's too bad, really...

    36. Re:Ugh by ryantate · · Score: 1

      If most proponets of CSS would admit CSS restricts Web compatibility to only the latest and greatest browsers on only the latest and greatest platforms, your (accurate) observation would not be so ironic. Instead they pretend it's about broadening access and criticize people for using FONT, B, TABLE, etc, as though these tags were somehow evil.

  20. XML vs. XHTML vs. HTML by diagnosis · · Score: 2, Informative
    A quick summary of XML, and XHTML vs. HTML:

    XHTML is the next iteration of HTML. It is more formal and more strict, and (hopefully) more consistent. From http://www.w3schools.com/xhtml/xhtml_html.asp:

    XHTML vs. HTML:
    • XHTML elements must be properly nested
    • XHTML documents must be well-formed
    • Tag names must be in lowercase
    • All XHTML elements must be closed

    XML:
    XML is not really parallel to XHTML/HTML. It is more useful for defining data containers and storing data. It is another step along the path to separating content from presentation.

    From from http://www.ucc.ie/xml/#acro:
    "XML is actually a `metalanguage' --a language for describing other languages--which lets you design your own customized markup languages for limitless different types of documents."

    ---------------------
    Dr. Movie Movie: DrMovieMovie.com
    Tomorrow's media behemoth -- today's independent voice.
    1. Re:XML vs. XHTML vs. HTML by volteface · · Score: 2, Informative

      "XML is not really parallel to XHTML/HTML. It is more useful for defining data containers and storing data."
      Not sure this is not entirely true. Technically, a strictly conforming XHTML document is an XML document. If you think of an XHTML document like a hierarchy (which is in fact what it is in the Document Object Model), it becomes clear that a website is made up of data and data containers. This is my interpretation of it at least.

      You are right that HTML and XML are really not parallel, though, other than they share the same SGML syntax.

    2. Re:XML vs. XHTML vs. HTML by poot_rootbeer · · Score: 1


      Or, to put it succinctly, XHTML is an XML-compliant implementation of the markup language HTML was supposed to be before browser coders kludged it up with style information.

    3. Re:XML vs. XHTML vs. HTML by Thuktun · · Score: 1

      You are right that HTML and XML are really not parallel, though, other than they share the same SGML syntax.

      HTML is an application of SGML. XHTML is an application of XML, which is derived from SGML but is simpler to allow easier parsing.

      XHTML is to XML as HTML is to SGML.

  21. But can it resist commercialization? by kindbud · · Score: 4, Insightful

    Meaning it is to be used for document structuring which is why it does not have presentation elements.

    That's what they said about HTML in 1992. Look what happened to it when it got popular: bastardized so badly with presentation elements that it lost almost all of its structuring features. Remember <fig>? It was obsoleted before it even made it out of draft status because commercial browser vendors (*cough* Netscape *cough*) pushed <img align> on everyone instead, because it was quick and easy. That's just one example. Who's to say this new XHTML won't be spoiled the same way? We could say "Use HTML if precise control over layout is needed" but back in the HTML days, we were saying "use PDF if precise control is needed" and we were ignored, and HTML was destroyed so badly that XHTML is now needed to fill the role HTML had to abandon.

    What's to prevent lather/rinse/repeat?

    --
    Edith Keeler Must Die
    1. Re:But can it resist commercialization? by slungsolow · · Score: 1

      Who's to say this new XHTML won't be spoiled the same way?
      The wc3 is completely independent of all browser development (except amaya). Their whole purpose is to create a standard language that isn't special to one browser. Netscape and IE did kind of get out of control for a while with their proprietary tags.

      What IE and Netscape did is comparable to a customer telling the 5 star chef what to use as ingredients. Its ass backwards.

    2. Re:But can it resist commercialization? by haijak · · Score: 1

      At that time, that was one way web browsers were trying to gain market share. if the created their own "cool" features for web devs the developers would use their "cool" things and the end user would like all the prety colors and flashy lights.

      But then the web devs learned that all of the propritary goodies would work the same or at all on other browsers. But it was to late the exects loved them and forced the devs to continue using them.

      Then Microshit glued IE and Windose together, and the war was over. Now all the devs had to write "IE Compliant" code that most other browsers don't support.

      The XHTML1.0 and 1.1 standards are finished. You can write your code to meet them and every "modern" browser will be fine with it. XHTML1.0 "Transitional" is vurtualy identical to HTML4.01, all the same tags are supported. The only changes are minor. So at this point no corprate influence can effect them. Nore has any before they were finalised. As others have said the W3C is an organisation of promarly web developers, who simply want to end the conflict tifrent browsers have in rendering pages by setting rules for developers and browsers makers to follow together in perfect harmony. Course that is a little idealic, but they have defentaly made large steps in that direction.

      -----------

      --
      Don't judge me by my spelling
    3. Re:But can it resist commercialization? by ttfkam · · Score: 1
      Who's to say this new XHTML won't be spoiled the same way? We could say "Use HTML if precise control over layout is needed" but back in the HTML days, we were saying "use PDF if precise control is needed" and we were ignored, and HTML was destroyed so badly that XHTML is now needed to fill the role HTML had to abandon.
      Making PDFs required more than a tutorial and a text editor back in HTML days. As for presentational issues, as long as the presentational hacks show up in the CSS and not the markup/content, I'll be satisfied. For this point alone, I am grateful for CSS as a separate language.

      PDF on the web also failed because, contrary to popular belief at the time, the requirements for viewing documents on the web was not the same as print publishing. RBG vs. CMYK was the least of worries.
      --

      - I don't need to go outside, my CRT tan'll do me just fine.
  22. Re:A model XHTML site check by the W3C by Anonymous Coward · · Score: 0

    Offensive? I (and the First Amendment) call that free political speech. It's no secret that moderators' respect for free speech rights ends at valid dissent.

  23. XML on web sites sucks by laird · · Score: 3, Informative

    Nope, you're right.

    I'll go out on a limb and say that using XML as the document format for web site production is a terrible idea. XML is a great data exchange language between systems, but it's insanely inefficient for use within a single system. All of XML's positive attributes (self documenting, robust, extensible, supports encodings, validation, use XSLT to do transforms between arbitrary XML representations of data, etc.) are all important between loosely coupled systems. But those issues don't occur within a single system, and the overhead of using XML is immense. It's orders of magnitude faster to query a datbase directly than to parse XML, transform, etc.

    1. Re:XML on web sites sucks by Kentamanos · · Score: 4, Insightful

      You guys are both essentially complaining about the speed of XSLT transforms. While XHTML makes "HTML" a valid XSLT target target document (in other words, it makes HTML XML compliant), nobody is forcing you to use XSLT.

      XHTML is still completely valid on its own. It's a HELL of a lot easier to validate for one thing. Ever looked at the sourcecode to HTML validators?

    2. Re:XML on web sites sucks by duffbeer703 · · Score: 1

      As the other poster said, your complaint mostly applies to the XSLT transform engines.

      But keep in mind that the industry heavyweights who back these standards are all in the business of selling you hardware.

      IBM, Sun, etc see a slow app as an opportunity to sell computers. If you can lower the cost to produce applications significantly by using XML, you can afford to buy more computers from IBM, HP, Dell, Sunc, etc.

      --
      Conformity is the jailer of freedom and enemy of growth. -JFK
    3. Re:XML on web sites sucks by kelzer · · Score: 1

      In addition to what's been said by the 2 previous replies, you can also use XSLT to generate static XHTML pages from your XML source documents, and then deploy those to the live webserver, rather than dynamically generating XHTML for each request.

      This is the approach taken by the Apache website.

      --

      ---------------------------------------------
      SERENITY NOW!!!!!!!!!!!!!!!!
    4. Re:XML on web sites sucks by RickHunter · · Score: 1

      Okay, so how does XML compare to HTML? Remember that HTML does not require closing tags, nor does it require tags be closed in the same order they're opened, nor does it require combo end/begin tags to be explicitly noted.... Are you claiming this is somehow easier for the browser to parse than XHTML?

      Or are you proposing that all web servers be replaced with databases, with their horrifically insecure client/server interfaces exposed to the world?

    5. Re:XML on web sites sucks by Eric119 · · Score: 1

      Okay, so how does XML compare to HTML? Remember that HTML does not require closing tags, nor does it require tags be closed in the same order they're opened, nor does it require combo end/begin tags to be explicitly noted.... Are you claiming this is somehow easier for the browser to parse than XHTML?

      Actually, HTML requires closing tags for most elements (some, like P, are an exception), and elements must be properly nested. e.g. <B><I>xyzzy</B></I> is not allowed.

    6. Re:XML on web sites sucks by laird · · Score: 1

      To be clear, I'm saying that using XML as a document format in web site production is insanely inefficient. That is, people author XML documents that are then transformed into a presentation format (e.g. HTML) for delivery. XML authoring tools mainly suck, it's hard to enforce business rules on the data, and the transforms are painfully slow.

      I'm not complaining about XHTML at all -- XHTML is a great presentation language, specifically because it's less tolerant of sloppy coding than HTML, so it weeds out broken web sites. It also makes it easy to build lightweight "web services" by parsing the XHTML (assuming it's nicely tagged), which comes in handy from time to time.

      But the data behind those web sites should be in a database, not XML. :-)

    7. Re:XML on web sites sucks by laird · · Score: 1

      Yeah, making the transforms a pre-process addresses the performance issues with doing real-time transforms. But I'll point out that many vendors sell real-time transforms as a "feature" of their XML-based app servers, claiming that you can support arbitrary new devices by writing XSLT's to transform your site into WML, SHTML, etc., as needed. This is admittedly true, if you don't need your site to run quickly, or have dynamic content. But if your site is truly dynamic (i.e. it has personalized components on web pages) you can't pre-generate the pages. (OK, I'm simplifying...), so it still only works well for relatively static sites. For example, you could author doc's in docbook, then transform to HTML, XHTML, PDF, WML, etc., flavors of your site, but you'd end up with a bunch of copies of a static site. If your site is interactive (think games, or TV listings, etc.) this approach breaks.

    8. Re:XML on web sites sucks by laird · · Score: 1

      "Okay, so how does XML compare to HTML? Remember that HTML does not require closing tags, nor does it require tags be closed in the same order they're opened, nor does it require combo end/begin tags to be explicitly noted.... Are you claiming this is somehow easier for the browser to parse than XHTML?

      Or are you proposing that all web servers be replaced with databases, with their horrifically insecure client/server interfaces exposed to the world?"

      I'm a little confused by this post, but I'll try to respond.

      XML isn't a presentation layer technology -- you don't send (generic) XML to browsers unless you're a sadist. But you can send XHTML, which is a re-spin of HTML that's more strict, which I agree is a distinct improvement.

      The model that I was saying was broken was using XML for authoring the web site. Think "interwoven" for example. That model involves people authoring XML documents for all content, with the web site doing XSLT transforms to generate the presentation layer of the web site from the XML. This in intellectually an interesting approach, but ends up creating a huge number of complexities and performance problems when compared to the "traditional" method of generating complex web sites, which is to have authors pump information into a database, which is used to dynamically populate web pages (think PHP, JSP, ASP). In either case, what the browser receives is some flavor of HTML; the question is how that HTML is generated.

      This doesn't have anything to do with client/server interfaces.

    9. Re:XML on web sites sucks by MrBandersnatch · · Score: 1

      Bah! Sorry, rubbish!!

      XHTML *IS* XML. Yup theres various semantic niceties to be argued but at the end of the day XML is being used as the document format for *numerous* websites.

      XML != Data Interchange.

      Now as to XSLT being slow...well it can be and it depends on what your doing and how youre doing it. With well written stylesheets, a good architecture to offload transforms onto, decent cache management etc. etc. a pure XSLT application can CURRENTLY equal or outstrip the performance of the equivilent perl/php/asp etc. approach. When and if the potential of XSLT is actual realised (i.e. distributed parallerl transformations), XML+XSLT should have significant performance advantages over alternative approaches.

      Would like to have a good romp on this but its late...

  24. No, XHMTL is broken by AuMatar · · Score: 3, Interesting

    You forget the original purpose of HTML. HTML's purpose, and the reason it grew so quikly, was to be an easily understood markup language that could be used by less technical people. The reason so many people were able to make their own homepages and grow the web like they did was that HTML could be easily learned.

    Now we have XHTML and CSS. Neither of these are easy to learn. Neither of them is easy to use. Less technical people are incapable of using either. This is great for job security for webmasters, but for the growtrh of the next and for the internet as a medium of free and easy communication its horrible. XHTML is broken as an HTML replacesment because it does not meet the original purpose of HTML- to be something that anyone can easily learn and use.

    --
    I still have more fans than freaks. WTF is wrong with you people?
    1. Re:No, XHMTL is broken by Anonymous Coward · · Score: 0

      How is XHTML hard to learn? XHTML 1 isn't really much different from valid HTML 4.01.

    2. Re:No, XHMTL is broken by AuMatar · · Score: 2, Informative

      For me, you, or anyone reading slashdot, it probably isn't. Remember, this is the average Joe we're talking about. Ok, perhaps the slightly above average. The XHTML spec is far more complicated than HTML was. CSS and stylesheets is something they just don't understand, they don't get the idea of separating content from presentation (in fact to many of them, the two are equivalent), and they don't understand the idea of abstraction that they represent.

      HTML 4 was worse for the average guy than previous incarnations, but XHTML is terrible for them.

      --
      I still have more fans than freaks. WTF is wrong with you people?
    3. Re:No, XHMTL is broken by Anonymous Coward · · Score: 0

      I still don't see that. The major changes invovle end certain tags with a / (br, img, etc) and using lowercase tags. Using CSS is still optional.

    4. Re:No, XHMTL is broken by Tumbleweed · · Score: 1

      Actually, Berners-Lee has been quoted as saying he never imagined people would hand-write HTML, but that people would use HTML editors. Unfortunately, Berners-Lee didn't foresee the horrible mess than most HTML editors (hello, FrontPage, you bastard child, I'm talking to you!) would produce. Blech.

      Am I the only one who can see value in an HTML '5' that would clean up the problems with HTML 4.01, and add some easy-to-use ideas from CSS?

    5. Re:No, XHMTL is broken by AuMatar · · Score: 2, Interesting

      He also didn't forsee the rise of blogs, forums, etc. I write more html for forum and blog posts than I do for websites. Sometimes quite complicated html for tables. I suppose I could use an editor, save the file, open it in a text editor, and paste the result in the form, but that seems like more work than just writing the html in most cases.

      --
      I still have more fans than freaks. WTF is wrong with you people?
    6. Re:No, XHMTL is broken by Allistair · · Score: 2, Insightful

      I don't know. It seems to me that the average Joe/Josephine is going to be using some editor (graphical would be my guess) to do the editing for him/her. So, the only people that really need to be fluent in those rules are going to be the creators of those tools.

      Perhaps I am just being negative, but I really don't see many average users opening up a page in Vi, Emacs, or TextEdit. If you can get Frontpage, Dreamweaver, and the various blogging applications and services to use valid XHTML, you are going to take care of most of your "average" users.

      Beyond those "average" users, you probably have people who can grok XHTML.

    7. Re:No, XHMTL is broken by mikeswi · · Score: 1

      I disagree entirely. If someone can learn to do html, they can learn to do xhtml as well. It's not like teaching someone to read binary. It's just html set to certain rules. I taught myself how to do both and xhtml is a lot easier as far as I'm concerned.

      CSS is trickier to learn, especially if you want multiple columns or other cute tricks. It *is* learnable however, especially if you can find the right references online.

    8. Re:No, XHMTL is broken by Anonymous Coward · · Score: 0

      XHTML is not hard to use. Period. To a non-technical person, its just a slightly more formalized version of HTML 4 (all lowercase elements, must close all tags, and so on). CSS is not that complex either, especially given tools like Dreamweaver.

      Even without special tools, I'd say any reasonably intelligent and motivated person (not necessarily technically inclined) would be able to pick up CSS from searching the net, following tutorials, and playing with it for a few days. We can't dumb *everything* down for the masses. At some point you have to just expect people to be able to learn something (meaning people need to be motivated damn it).

    9. Re:No, XHMTL is broken by Malc · · Score: 1

      Less technical people don't write HTML. They use the WYSIWYG features of FrontPage or Word or DreamWeaver, etc. They don't even look at the HTML.

    10. Re:No, XHMTL is broken by T-Ranger · · Score: 3, Interesting
      I dont know that that was HTMLs purpose. I keep hearing people say that, and it being "easy" may be true, but I dont know that that was its goal.

      HTML is NOT easy. Writing a valid HTML documenta 20-30 lines long by hand is possible, but for any non-trivial page it is near impossible. (that there are no good HTML editors is besides the point). Any website containing more then 1 page should use some kind of automation to create HTML, be that continiously generated dynamic pages, or generating the HTML once per change. Spreading the rumor that HTML is easy to learn and that anyone can, and should, use HTML is a disservice to humanity.

      If you are a non-technical person, or even a technical person whose job is not specificly HTML creation software writing, then you should not generate HTML by hand. Use some kind of CMS. Use some HTML editor. Use Docbook and "compile" HTML.

      Why are Wiki's popular? Because they use a markup language that actually is easy, one that is hard to screw up.

      Please, pleae, please, dont continue to spread the lie that HTML is easy enough for anyone to learn.

    11. Re:No, XHMTL is broken by Anonymous Coward · · Score: 0

      FUD.

      XHTML is not broken. It is actually a work of beauty, and I'd like to see support for anything else phased out of all web browsers (yes, MS, I'm looking at that one you've been refusing to admit the existance of, too).

      Why?

      (A) It's much, much easier to learn. Yes, the initial overhead is greater, but after you've written a basic hello world page everything else falls into place. It's easy to abstract, conceptualize, whatever.

      (B) It's easier on browsers.

      (C) It takes away people's ability to write pages with approximately no knowledge. They don't need MUCH more knowledge, but they do need some. All of the web pages written with minimal HTML knowledge are utter junk that few look at (and those who do look at them regret it) anyway.

      The few people who could learn HTML but not XHTML shouldn't be writing web pages in the first place. A barrier to entry increases the signal/noise ratio substantially, and if someone doesn't understand XHTML they should simply use an automated tool to generate it and save us all a lot of grief.

      As this barrier to entry was the only "valid objection" to XHTML, I will continue to consider a great improvement in HTML standards.

    12. Re:No, XHMTL is broken by hobbit125 · · Score: 1

      HTML is exteremely easy to learn. Write your text, put tags around it to stylize it. What's hard about that?

    13. Re:No, XHMTL is broken by RWerp · · Score: 1

      they don't get the idea of separating content from presentation (in fact to many of them, the two are equivalent)
      If this were true, Plain TeX would be more popular than LaTeX (the latter separates context from presentation).

      --
      "Long run is a misleading guide to current affairs. In the long run we are all dead." (John Maynard Keynes)
    14. Re:No, XHMTL is broken by Pont · · Score: 1

      There's nothing wrong with plain-old-HTML when used as a simple way to publish documents.

      However, if you want tight control over it, you're in trouble. Newbies writing pages by hand don't need to worry about exact, perfect layout.

      For everyone else, the more limited and structured XHTML is easier to write than plain-old-HTML. You see, limitations and structure make it more predictable. That's a good thing.

    15. Re:No, XHMTL is broken by untermensch · · Score: 1

      Writing XHTML manually is more difficult that writing HTML manually, but the average joe can always use a pointy-clicky front-end to write XHTML.

    16. Re:No, XHMTL is broken by Laebshade · · Score: 1

      I definitely call BS. XHTML is not much different than HTML (it is based on HTML, after all). CSS is very, very easy to use and much easier to keep track of than making changes to the presentation via HTML. It is also much more powerful. The W3C validators help a lot.

    17. Re:No, XHMTL is broken by AuMatar · · Score: 1

      Except that they do. Look at the number of geocities pages, homepages, etc on the web. Very few of them were made by computer people, and many were made before editors were commonplace. Heck, evennow they aren't commonplace- unless they have Office 2K or later they won't likely have frontpage, and the others cost money.

      --
      I still have more fans than freaks. WTF is wrong with you people?
    18. Re:No, XHMTL is broken by AuMatar · · Score: 1

      Sure they do. How many personal websites were on the web in 97, 98? This was before widespread use of editors, and editors definitely needed hand hacking to look ok. Even now, most home users probably don't own one, as Dreamweaver etc aren't cheap.

      --
      I still have more fans than freaks. WTF is wrong with you people?
    19. Re:No, XHMTL is broken by T-Ranger · · Score: 1

      "Easy to learn". and "easy to learn correctly" are not the same thing.

    20. Re:No, XHMTL is broken by AuMatar · · Score: 1

      Writing HTML is easy. Thats why thousands of personal homepages existed. That most of them were boring as hell is irrelevant. While not everyone could learn HTML, the vast majority of people can.

      Dynamic content creation? Why? Its overkill for most things, and its far more difficult to set up and learn. The value of the web is that it allows anyone to easily and cheaply spread their ideas. Part of this is an easy and cheap method of communication- HTML. Complicating it with XHTML is counterproductive.

      --
      I still have more fans than freaks. WTF is wrong with you people?
    21. Re:No, XHMTL is broken by AuMatar · · Score: 1

      A)The initial overhead is the most important. If its too difficult, people will give up. On top of which, CS nad IT is all about abstracting and conceptualizing. Most careers are NOT. While its easy for us to do, the average Joe doesn't think that way

      B)Immaterial to the argument, if its even true

      C)The web is about free information flow. Increasing any barrier to entry is a bad thing. Just because you don't like their design doesn't mean that their ideas or their communication is useless.

      --
      I still have more fans than freaks. WTF is wrong with you people?
    22. Re:No, XHMTL is broken by AuMatar · · Score: 1

      But common people don't use latex or plaintex. THose are specialty programs used by publishers (more correctly- members of their staff) and authors, usually by technicly profficient publishers and authors

      --
      I still have more fans than freaks. WTF is wrong with you people?
    23. Re:No, XHMTL is broken by AuMatar · · Score: 1
      If it can display on most/all common browsers, its correct. Minor things like including tags and

      tags only matter to people with phds in language theory.

      --
      I still have more fans than freaks. WTF is wrong with you people?
    24. Re:No, XHMTL is broken by Allistair · · Score: 1
      You are comparing apples and oranges. The number of personal websites in '97 and '98 doesn't really matter. How many people were using the web at that time?

      I would hazard a guess that the average personal website in '97/'98 was put up by someone more technically inclined than the average personal website put up today. Even the more technically inclined today are writing their own Python/Perl/PHP scripts to handle much of their HTML coding.

      I will still put up a hand-coded page. But I usually run it through HTML TIDY first. Most other people I know who have some sort of web presence wouldn't dream of using a text editor to fiddle with the HTML source. But, maybe I'm just hanging around with people who are below average.

    25. Re:No, XHMTL is broken by Anonymous Coward · · Score: 0

      Have you looked at the XHTML spec? Is it really so much more complex? It essentially says "do things XML-link" (use a DOCTYPE, properly nest tags, ...) and then points you at the HTML specification for everything else. And there are only 12 differences from regular HTML.

      The hardest part of this isn't XHTML. It's getting *any* of this to work simultaneously with IE and Mozilla. That's were *all* of the pain comes. And it doesn't matter if you are using HTML, XHTML, or whatever.

    26. Re:No, XHMTL is broken by Anonymous Coward · · Score: 0

      Yeah I have to agree. When I got into making web pages it wasn't that complicated. HTML scales towards your abilities pretty well. Back when HTML editors sucked, it was easy to say "just learn HTML" - and many did. Nowdays telling someone to learn modern XHTML/CSS is getting closer and closer to being a programmer. I'm seeing more of an elitist attitude twards doing (X)HTML by hand, and the entry level of learning it yourself is too hard.

      Just get a program to do it? Well that's a nice hobbiest attitude. Now you can't just make a webpage, but you have to learn a program to make a webpage - and pay for the privelege.

      My friend makes web pages using GoLive. He's always showing me "see I just click this, and drag this.." etc. He'll then sit there for hours trying to fix a problem because the program won't do something that he needs it to (and I usually have to manually fix). New version of GoLive, time to learn new tricks. Funny, HTML didn't change, but now you have to learn stuff all over again and pay Adobe more money.

      I think the problem here is that tech people are the ones driving the bus. Tech people have different needs as opposed to regular people who just want to make a couple web pages. We really need a new format for tech people that allows webapps, dynamic stuff, and overly complicated garbage - and then just leave HTML alone for the rest of the population. Regular people have a lot to contribute to the internet, and it's not a good thing when you deny those people simply because a certain segment wants to make everything complicated so they can do some extra stuff.

    27. Re:No, XHMTL is broken by RWerp · · Score: 1

      Are people who write HTML pages that common? It's still a minority of the society, I think (at least in Poland, but somewhat backwards w/r to the USA in this area). Besides, we're confusing two things: writing actual text in latex and designing latex styles. The first is easy (except maybe for the math and laying out of figures), the second much more difficult. When you write a book in latex, you usually do it in the style some other person has written for you. This quite different than from the page design, where you always want to do your own design, usually either reproducing some well-known standard or creating some horrible mess. I think that the magic could be taken out from CSS and XHTML if somebody produced a 'standard' CSS styles (like Leslie Lamport did with latex) which anyone could take as a basis for their web page and modify later. I know that it sounds dreadful, but after 10 years of the WWW popularity we have some knowledge what is good web page design and what is not. vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvkl

      --
      "Long run is a misleading guide to current affairs. In the long run we are all dead." (John Maynard Keynes)
    28. Re:No, XHMTL is broken by Malc · · Score: 1

      There's always been editors. I remember searching the Yahoo HTML editors directory listing and downloading and trying them out back in 1996. That was before Joe Bloggs even heard of Geocities personal web pages. Some of them were free, some not. Most of them I didn't like. At some point in the mid to late 90's Netscape started shipping with a usable composer, and I don't know anybody who paid for that as it was freely downloadable. Netscape was of course the number one web tool for a while.

    29. Re:No, XHMTL is broken by delus10n0 · · Score: 1

      You apparently don't remember all the "site builder" type apps that existed on the internet years and years ago.

      There were also quite a few HTML editors around "back in the day", such as Hotdog and HoTMetal, which are still around to this day. People used those to make some pretty cheesy sites.

      --
      Not All Who Wander Are Lost
    30. Re:No, XHMTL is broken by subVorkian · · Score: 2, Interesting

      The XHTML spec is far more complicated than HTML was.

      Far more complicated? I don't agree. The benefits you gain from a tighter spec are well worth the trouble of adapting to the new technology.

      For instance, changing a style within a single file and watching those changes cascade effortlessly through the site is much more elegant than the old ways. This makes updating your site easier and may actually increase adoption by mom and pop.

      I think if people see the benefits, they will invest a little energy in learning new tech.

    31. Re:No, XHMTL is broken by Rie+Beam · · Score: 1

      The original purpose? Are you telling me that technology hasn't changed since the early 90's? Sure, the ease of use helped it grow - but it's over ten years old now, it's time for it to mature and grow up like the rest of the world. Listen, no one is forcing you to learn every little use of XHTML ever possible - that's like saying a person who wants to write a "Hello World" program has to learn how to program drivers for the various hardware components first - you can if you want, but there's no real need.

      I'll be honest - it has gotten a bit harder since it's inception. But it's really not as hard as you're claiming - I have friends who are still in Middle School, and have mastered XHTML/CSS. The only real argument here is that people don't want to learn new skills for something they self-taught themselves five or so years ago. Just change with the times, that's all there is to say about it.

    32. Re:No, XHMTL is broken by Anonymous Coward · · Score: 0

      None of you people actually seem to understand XHTML. Here's the fundamental difference:

      XHTML: If the markup is invalid, the page rendering FAILS, and you see nothing but an error message.

      HTML: If the markup is invalid, the page rendering may be goofy, but it's usually approximately correct.

      It's unarguable that HTML is "easier" for causal users. It's much harder for implementers, but that does not matter because the work's already been done.

    33. Re:No, XHMTL is broken by adpowers · · Score: 1

      The only reason bad code works on good browsers is because they jump through hoops to accommodate bad code.

    34. Re:No, XHMTL is broken by FictionPimp · · Score: 1
      I thought my girlfriend how to write simple webpages in xhtml 1.0 trans in about an hour. She mostly uses dreamweaver MX to do the layout, but makes any after the fact adjustments by hand. xhtml is not hard at all. CSS really isn't hard at all either.

      Besides, a lot of people wrote broken, or nasty code back in the past with html 3 - 4. If you can't take the time to properly learn how to use the tools you are creating with, you shouldn't be creating in the first place.

    35. Re:No, XHMTL is broken by Anonymous Coward · · Score: 0

      But that work is already done. Nobody's going to remove "bad markup" support from Mozilla anytime soon. You can't wish away the crappy HTML specs and implementations of the past -- they'll haunt browser software forever.

    36. Re:No, XHMTL is broken by Anonymous Coward · · Score: 0
      Writing HTML is easy

      Let me throw this out here.

      nested tables.

      there, i said it.

    37. Re:No, XHMTL is broken by Anonymous Coward · · Score: 0
      Even if that was once the purpose of HTML, for all practical purposes, it isn't the purpose of HTML anymore, at least for most people out there.

      In a sense, HTML is the ISA bus of the web; a lingua franca that has many redundant and outdated features whose main compelling reason to exist is the fact that everyone uses it. Authoring tools target it. Everyone's browser (mostly) read it.

      The fact that HTML was originally indended to be a simple markup language is now irrelevant. Once the idea of a road was that anybody from a legionaire to a horsemen could use it, but that certainly isn't the case for modern expressways.

    38. Re:No, XHMTL is broken by Anonymous Coward · · Score: 0

      CSS != XHTML.

      It seems like 50% of the dumbasses here are (intentionally?) trying to confuse this point. Probably because XHTML is largely useless, so they have to change the argument to CSS.

    39. Re:No, XHMTL is broken by Anonymous Coward · · Score: 0

      This is a bunch of crap.

      First off, if your XHTML is invalid the browser will render handle it like it handles broken HTML. It'll still render.

      Second, you can validate it before you publish it to ensure that will not happen.

      Third, XHTML isn't a completely new language. Like I said above, it refers directly to the HTML specification. The major difference is that you have to use lower case tags and they have to properly nest. And guess what happens if you don't do that? Your document still renders just fine (just as plain HTML).

    40. Re:No, XHMTL is broken by wfberg · · Score: 1


      Now we have XHTML and CSS. Neither of these are easy to learn. Neither of them is easy to use. Less technical people are incapable of using either. This is great for job security for webmasters, but for the growtrh of the next and for the internet as a medium of free and easy communication its horrible./i>

      Actually, if Microsoft would just play ball with Internet Explorer, XHTML could be the best thing that ever happened for John Q. Average. It's vastly more easy to write a half-decent (quasi)WYSIWYG editor for XHTML with all that CSS jazz etc. than it is for the broken mess of HTML and half-assed tries at CSS that Internet Explorer supports. Webstandards are a great thing, if only the 95% marketshare dominant browser would adhere to them.

      Making pages in XHTML using CSS and even javascript to manipulate CSS properties, all nice and standards based, is a breeze, even to do by hand, for Mozilla etc. It's just Internet Explorer that's being a bitch.

      As for newbies hand-crafting stuff; well, the stuff that's on geocities isn't valid HTML either. There will always have to be a quirks mode for that stuff.

      --
      SCO employee? Check out the bounty
    41. Re:No, XHMTL is broken by Anonymous Coward · · Score: 0

      You are wrong. Let me quote the spec:

      the user agent must parse and evaluate an XHTML document for well-formedness. If the user agent claims to be a validating user agent, it must also validate documents against their referenced DTDs

      If you are arguing that browsers should fall back to "HTML Tag Soup", then you completely missed the entire point of pushing XHTML in the first place.

    42. Re:No, XHMTL is broken by ttfkam · · Score: 1

      And you forgot history. Those of us who started writing HTML back in the early days were already technically saavy. The ones who had a real problem with writing HTML didn't really start until WYSIWYGs like Frontpage hit the scene. Today, the number of people who know HTML versus knowing Dreamweaver is quite small. If the tools switched to XHTML, I doubt most users would see the difference, and any standards-based rendering bugs would be indistiguishable from all the other rendering bugs that crop up.

      As for simplicity, XHTML (strict) has fewer tags than HTML. In addition, fixing one page with CSS is easier than fixing the equivalent using tables, font, and bold tags. For a multi-page site, it's no contest: CSS wins hands down.

      And as for "something that anyone can easily learn and use," nowhere in the HTML spec did it ever say that title tags could go inside the body tag or any of the other inane combinations of incorrectly embedded tags in common usage. (I've seen it happen on more than a few pages.) That isn't HTML. That's a series of hacks on top of hacks that have made development for the web a living hell sometimes for the last ten years.

      Want to make something easy? Standardize it so that all browsers have a clear target, document it thoroughly, and make easy-to-understand, step-by-step tutorials and other training materials.

      --

      - I don't need to go outside, my CRT tan'll do me just fine.
    43. Re:No, XHMTL is broken by kryptkpr · · Score: 1

      HTML's purpose, and the reason it grew so quikly, was to be an easily understood markup language that could be used by less technical people.
      [snip]
      Now we have XHTML and CSS. Neither of these are easy to learn.


      One of my tutoring clients is a woman in her 50s. She's not computer illiterate, having been using macs since before I even saw a PC. I've been slowly working with her to design a website for an organization she's involved in.

      We first started with HTML. She simply couldn't wrap her head around the idea of nested tables. They frustrated her to no end, and we gave up on it.

      A few months ago, she expressed a growing interest in getting the new website project done, and we decided to use XHTML+CSS. Once I had explained the box model, and she had purchased a good CSS reference, she actually understood it. We've now got a basic layout done, and most of what's left is the final graphics and content.

      In summary.. With original HTML, it was not possible for this everyday-person to learn how to make an attractive looking page, the hacks required were too un-natural. With XHTML+CSS, a few hours of going through how CSS works and the mindset needed to seperate content and layout, and now she's very excited about making her standards-compliant pages in a text editor, and all the neat stuff she can do without learning JavaScript!

      --
      DJ kRYPT's Free MP3s!
    44. Re:No, XHMTL is broken by indiechild · · Score: 1

      You have gotta be kidding right? There is very little difference between HTML and XHTML. If the "average joe" could use HTML, he certainly can use XHTML.

      XHTML is not hard to learn. Creating page layouts that work well is harder, but that's always been the case regardless of whether you used HTML, or XHTML & CSS.

      One thing I love about table-less page layouts using CSS is that you no longer need a WYSIWYG editor like in the days of table-based layouts (some people never did use WYSIWYG, but they're in the minority). A text editor works great, and you can get those for free -- you don't need fancy stuff like Dreamweaver. Barrier to entry is much lower.

    45. Re:No, XHMTL is broken by Grizzlysmit · · Score: 1
      You forget the original purpose of HTML. HTML's purpose, and the reason it grew so quikly, was to be an easily understood markup language that could be used by less technical people.
      Bollocks show me one reason to believe that this rubbish had anything to do with the purpose of html. You just made that up to suite you're hatred of xhtml.
      --
      in my life God comes first.... but Linux is pretty high after that :-D
      Francis Smit
    46. Re:No, XHMTL is broken by Anonymous Coward · · Score: 0

      He also didnt forsee that the internet and HTML would become a laymans tool. The point about HTML is that it is easy to use for the most part, and that good software browsers can render the pages loosely. Its easy and therefore it grows and becomes popular.

      XHTML is kind of like the EDI/unixesque way of thinking. Yes strict requirements (that always get fragmented) sound good in theory, but it never thrives. And you wonder why MS is eating all those big Iron Enterprise companies alive and why bigtime linux advocates are creating MONO for .NET on Linux. XML is good (.NET is built around its use). but if you arent using any XML data translation/transaction within your web application whats the point of using XHTML?

      Better to use CSS in place of tables etc to make your pages smaller and faster.

    47. Re:No, XHMTL is broken by metamatic · · Score: 1

      I've been writing web pages since HTML 1.0. If you restrict yourself to the functionality that was in HTML 1.0, XHTML is just as easy as HTML 1.0. The only difference, in fact, is that for XHTML you need to close each element and write the element names in lower case. Big deal.

      The "problem" is that the web has gained an enormous amount of functionality, ranging from Unicode to typographical symbols to ways to specify margins, padding and border colors of elements. That's why there's more complexity in the XHTML spec.

      Once you've got a good style sheet or two, writing pretty web pages is trivial--it's just H1, P, UL, exactly like HTML 1.0 except you have to close the elements. There are sites out there with free style sheets you can use, so there's really no excuse.

      --
      GCHQ Quantum Insert installed. If only our tongues were made of glass, how much more careful we would be when we speak
    48. Re:No, XHMTL is broken by jred · · Score: 1

      As someone who struggles occasionally to learn CSS (when I have the time), do you have any sites to recommend?

      --

      jred
      I'm not a mechanic but I play one in my garage...
    49. Re:No, XHMTL is broken by mikeswi · · Score: 1

      This site is really good for learning tricks. HTML Help also has some good stuff. W3C is useful if you're stuck on something, but it's awful technical.

      There are some good message boards where you can ask for help too.

    50. Re:No, XHMTL is broken by Doppler00 · · Score: 1

      Does anyone else find it annoying that CSS is so much unlike HTML? I don't understand why CSS wasn't designed to be another XML format. It certainly would make it easier to work with. Instead, you have to learn entirely new rules for CSS.

    51. Re:No, XHMTL is broken by tf23 · · Score: 1

      The columns, when viewed by a myriad of browsers, can become a real PITA!!

      And most of that, imho, now-a-days is because of ie5/6 quirks.

  25. IMG is valid in XHTML by TrentL · · Score: 1

    The IMG tag is perfectly acceptable in XHTML.

    1. Re:IMG is valid in XHTML by slungsolow · · Score: 1

      The new spec gets rid of the img tag in all doc types except for transitional.

  26. WYSIWYG Implementation by beejay54 · · Score: 4, Insightful

    I think that so long as the WYSIWYG community keeps implementing these standards into their applications, web developers will follow suit. The latest version of Dreamweaver codes excellent XHTML and almost forces designers/developers to use CSS to incorperate presentation elements out of the box. For those who code 100% manually XHTML is an easy thing to tackle. The big issue it seems is that, like many web developers out there, I am getting quite sick of the frustration in multiple browser support. While it may be the most popular browser, IE is quite possibly one of the worst for supporting standards. I don't mind Microsoft trying to develop their own web standards so long as they are 'implementable' in other browsers/systems, but that never happens.

    --

    -- Bored? Check out my Portfolio
  27. Most web developers don't need it by JimDabell · · Score: 4, Insightful

    The only version of XHTML that is suitable for transmission as text/html is XHTML 1.0 following Appendix C. XHTML transmitted in this fashion doesn't have any of the benefits of mixed namespaces, stricter parsing, etc.

    You get these benefits when you serve XHTML as application/xhtml+xml, and your visitors use browsers that support those features (such visitors are extremely rare - SVG isn't even in main Mozilla builds yet). But many legacy user-agents require text/html. Search engines would probably be the most important ones.

    So unless you are willing to set up content-negotiation, sending different document types to different browsers, and unless you have a niche market that use browsers that understand these new features, you really aren't going to get anything from XHTML. Not for a few years, anyway.

    1. Re:Most web developers don't need it by htmlboy · · Score: 1
      So unless you are willing to set up content-negotiation, sending different document types to different browsers...

      it's not really that bad. i do the content-negotiation in two lines of php:
      if(stristr($_SERVER['HTTP_ACCEPT'], "application/xhtml+xml"))
      header('Content-Type: application/xhtml+xml');
      (php defaults to text/html if that's not matched)

      as far as i can tell, this does a good job of sending my xhtml correctly to browsers that can handle it while other browsers deal just fine (if incorrectly). the content/display separation makes it a small thing, anyway... my problems with browsers behaving differently have always come from the stylesheet rather than the content.
    2. Re:Most web developers don't need it by JimDabell · · Score: 1

      You see, that's just the problem: firstly, that's far out of reach of the average web developer. But more importantly, the ones who know enough to get by, but not all the issues, will write code like this.

      Problem number one: your code will incorrectly serve application/xhtml+xml to browsers that specifically say they don't want it under any circumstances.

      Problem number two: your code will also favour application/xhtml+xml to browsers that support it, but explicitly say they prefer text/html (e.g. if they can get by, but have poor support compared with normal HTML).

      Problem number three: in situations where caching takes place, your code can be responsible for serving application/xhtml+xml to browsers that can't handle it and don't mention it in their Accept header at all.

      In the first and last cases, problems result in an utterly broken website. In the middle case, users may get a suboptimal experience compared with if you didn't try and serve application/xhtml+xml.

      Read RFC 2616, and pay close attention to the Accept header and the Vary header.

      What does XHTML support actually bring you? Is there any benefit, or are you just doing it because it's there?

      Given that bugs like this are going to crop up as developers don't really know the edge cases in content negotiation or XHTML, is it worth advocating that people move to XHTML when there is virtually no benefit and plenty of places to trip up and cause severe problems?

    3. Re:Most web developers don't need it by htmlboy · · Score: 1
      Problem number one: your code will incorrectly serve application/xhtml+xml to browsers that specifically say they don't want it under any circumstances.


      i'm curious about this one. i hadn't read the rfc before, but going through it now, i'm not seeing how this would happen. if i'm reading correctly, the presence of "application/xhtml+xml" means that the content-type is in the list of acceptable types (even if it's not preferred, as in #2). how does it go into that list noting it's absolutely not wanted?

      i agree with your other points and i've actually worked around them but didn't think that part was relevant here :)

      since you asked, i use xhtml+xml because the content part i write comes out a lot cleaner and easier to maintain. that may well be a fault in the habits i've developed for writing html 4, but it's a reason none the less. it's also handy that firefox is so picky with it -- if i screw up, it tells me right away.
    4. Re:Most web developers don't need it by JimDabell · · Score: 1

      how does it go into that list noting it's absolutely not wanted?

      If it has a quality value of 0 (application/xhtml+xml;q=0). In practical terms, it just has to have a lower quality value than */* (which, in a decent browser, would have a low quality value itself).

  28. Why you shouldn't use XHTML (yet) by Ben+Hutchings · · Score: 1

    Sending XHTML as text/html Considered Harmful

    Besides which, XHTML 1.1 and 2.0 aren't even vaguely backward-compatible.

    1. Re:Why you shouldn't use XHTML (yet) by p3d0 · · Score: 1

      Executive summary: because IE can't handle text/xhtml+xml.

      --
      Patrick Doyle
      I mod down every jackass who puts his moderation policy in his sig. Oh, wait a sec....
    2. Re:Why you shouldn't use XHTML (yet) by Anonymous Coward · · Score: 0

      Sending a text/html content type to broken browsers and the correct MIME type to modern UA's is trivial, it's a single line of code in most web scripting languages or CGI programs and can also be done with an apache module.

    3. Re:Why you shouldn't use XHTML (yet) by Ben+Hutchings · · Score: 1

      XHTML won't work properly in older browsers (broken or not), whatever you label it as. You would have to give them regular HTML while giving the newer browsers XHTML. Then you would have to have two versions of your client-side scripts and stylesheets to work with the HTML DOM and the XML DOM, or try to find techniques to work around the differences. So it's a whole lot of work, not just one line of code.

  29. The CmdrTaco Response by goldspider · · Score: 0, Flamebait
    I'm always abused by the standard CmdrTaco response to calls to improve the Slashcode:

    "Feel free to submit patches back to us if you come up with anything useful."

    In other words:

    "This clusterfuck is roping us a comfortable enough income from ad revenue that it's not worth our time to deliver a better product to you, our customers. If you want a better site, YOU do the work!"

    --
    "Ask not what your country can do for you." --John F. Kennedy
    1. Re:The CmdrTaco Response by ceswiedler · · Score: 1

      Do you really care whether Slashdot is implemented with CSS? The savings mentioned would be for OSDN, Slashdot's parent. Apparently they don't care enough about the potential savings to make the change, and while that may be a bad business decision, unless you're an investor in OSDN I really don't see why you should care.

      It isn't like a puppy is killed every time a GB of OSDN bandwidth is wasted.

    2. Re:The CmdrTaco Response by Anonymous Coward · · Score: 0

      It's not so much that I have a personal stake in the matter. I just find it ironic that a site that advocates (among many things) web standards compliance can't be bothered to make/keep their own code compliant.

    3. Re:The CmdrTaco Response by RWerp · · Score: 1

      Of course some people have 1Mb/s connection and don't care, but for me 2KB/page less means something. Slashdot pages feel 'heavy' when downloading with ADSL connection. It shouldn't be so.

      --
      "Long run is a misleading guide to current affairs. In the long run we are all dead." (John Maynard Keynes)
    4. Re:The CmdrTaco Response by Cyberax · · Score: 1

      We pay 10 cents per megabyte of Internet traffic in Russia. So crappy bandwidth-burning sites is a reason to care.

      Especially then you read them every day.

    5. Re:The CmdrTaco Response by swb · · Score: 1

      Apparently they don't care enough about the potential savings to make the change

      There's probably a bunch of secret contractual language that mandates a "hands off" approach to Slashdot's editorial content and its code development and keeps OSDN from hammering them about their bandwidth usage.

    6. Re:The CmdrTaco Response by cakoose · · Score: 1

      I think he meant to say that that Internet traffic pays 10 cents per megabyte of him.

    7. Re:The CmdrTaco Response by Cyberax · · Score: 1

      No. I'm not joking.

      We pay about 8-10 cents per megabyte. Here's price list of our local ISP: Price list. It's in Russian, of course, but you can use something like Babelfish to translate it.

    8. Re:The CmdrTaco Response by Anonymous Coward · · Score: 0

      OSDN uses slash on other sites as well. It's more likely that a PHB ran the numbers, and the bandwidth cost savings can't justify a rewrite.

    9. Re:The CmdrTaco Response by Anonymous Coward · · Score: 0

      So, how do they justify turning down people like me who offer to convert their graphics to PNG to save them bandwidth? All they'd have to do is a search and replace with .gif to .png.

  30. What's to prevent lather/rinse/repeat? Nothing. by Animats · · Score: 2, Insightful
    We've now come full circle. First there was SGML, which is a "general purpose markup language for representing documents". Then HTML. Then XML. Now, XHTML, which is a "general purpose markup language for representing documents". What's wrong with this picture.

    "Structured documents" for public distribution usually don't work. The problem is that the costs of tagging are incurred by different people than those who benefit from it. Unless you have some enforcement agency that makes people tag their data, it doesn't happen. Even then, the data quality tends to be terrible. The SEC used to require financial statements in a rigid SGML form, in the EX.27 schedule of 10K and 10Q filings. Companies hated that. Not only did they get the numbers wrong, they hated having to express their numbers "uncreatively".

    There are ways it might happen. If Google said that "You must tag all "buyable things" in this format, or you don't get into our index", we'd see it happen. That's how a few big retailers forced manufacturers to bar code, two decades ago.

    1. Re:What's to prevent lather/rinse/repeat? Nothing. by slungsolow · · Score: 1

      If Google said that "You must tag all "buyable things" in this format, or you don't get into our index", we'd see it happen.

      Putting your documents into well marked-up documents like XML and XHTML actually makes it easier for search engines (and other user agents as it says in the FAQ linked on in the /. article.) to get to your content.

    2. Re:What's to prevent lather/rinse/repeat? Nothing. by Animats · · Score: 1

      Yeah, right. What invisible content really does is make it easier for search engine spammers. Most of the major search engines now ignore META tages for that reason.

    3. Re:What's to prevent lather/rinse/repeat? Nothing. by slungsolow · · Score: 1

      I'm not talking about meta tags. I am talking about the search engine actually knowing the difference between site content and site resources (navigation, images, etc.. ).

    4. Re:What's to prevent lather/rinse/repeat? Nothing. by Nurgled · · Score: 1

      Unfortunately, since the vast majority of current documents are purely presentational markup, current search engines just seem to strip the tags and treat the result as one big bag of words.

      If headings had an advantage, you'd suddenly see thousands of porn/spam sites enclosing the entire page in an H1 element and optionally using CSS to override the default presentation of common browsers.

    5. Re:What's to prevent lather/rinse/repeat? Nothing. by Thuktun · · Score: 1

      We've now come full circle. First there was SGML, which is a "general purpose markup language for representing documents". Then HTML. Then XML. Now, XHTML, which is a "general purpose markup language for representing documents". What's wrong with this picture.

      HTML is an application of SGML. Later, XML was derived from SGML to make parsing simpler, and it became radically more popular than SGML. XHTML is reinvention of HTML using XML instead of SGML to leverage the success of XML as well as continue the separation of content and presentation.

      This does not represent a single-path progression in a circle, as you suggest, but refinement of an older standard using a newer one.

  31. extra quotes by hey · · Score: 2, Funny

    Regular HTML:

    <img src=logo.gif width=10 height=10>

    XHTML:

    <img src="logo.gif" width="10" height="10">

    I hate those extra quotes. Why is this progress!?

    1. Re:extra quotes by gphinch · · Score: 1

      XHTML 2:

      <p src="logo.gif" type="image/gif" id="logoImg" />

      #logoImg {width:10px;height:10px;}

      Now that's progress!

      --
      in bed.
    2. Re:extra quotes by gphinch · · Score: 1
      whoops forgot the
      <style type="text/css"></style>
      tags, but you get the idea.
      --
      in bed.
    3. Re:extra quotes by haplo21112 · · Score: 1
      Actually you didn't format the xhtml correctly its


      Not



      The trailing slash is required since its a single tag with no closing tag...

      --
      Power Corrupts,Absolute Power Corrupts Absolutely, leaving one person(group)in charge is absolutely corrupt.
    4. Re:extra quotes by Anonymous Coward · · Score: 0
      Not quite right, XHTML requires you to close every tag, so your example should be
      <img src="logo.gif" width="10" height="10" />
    5. Re:extra quotes by Anonymous Coward · · Score: 0

      I hate no quotes. What's your point?

      And btw you missed the alt="" for the XHTML version. ;-)

    6. Re:extra quotes by HarveyBirdman · · Score: 1
      Why is this progress!?

      Or these:

      <br />

      <hr />

      <img src="pr0n.jpg" />

      That's just... wrong, somehow.

      --
      --- Ban humanity.
    7. Re:extra quotes by glenstar · · Score: 1

      Whoohooo! XHTML is going to be even easier than I thought! Thanks for that telling example.

    8. Re:extra quotes by haplo21112 · · Score: 1

      yeah yeah yeah....I hit submit instead of preview sue me...

      --
      Power Corrupts,Absolute Power Corrupts Absolutely, leaving one person(group)in charge is absolutely corrupt.
    9. Re:extra quotes by Laebshade · · Score: 1

      You have it wrong actually. They are both HTML.

      This:

      <img src="logo.gif" width="10" height="10" />

      and this:

      <img src="logo.gif" style="width: 10px; height: 10px;" />

      Are valid XHTML 1.1 Transitional. Notice the slash on the end of each of those? You have to close tags this way that do not have a closing tag (img, doctype, few others).

    10. Re:extra quotes by zonix · · Score: 1

      I hate those extra quotes. Why is this progress!?

      They're required for sanity. That is, if you're going to process your pages with XML tools (that's progress) and want the input to these tools to be unambiguous.

      If you don't have a need for this, then by all means, stick with HTML (Strict DTD, preferably). No one is forcing you to use XHTML.

      z
      --
      What would an EWOULDBLOCK block, if an EWOULDBLOCK could block would? -- me
    11. Re:extra quotes by Anonymous Coward · · Score: 0

      But that's his/her issue. Why don't XML tools handle cases like that. If there's no quote then the field is terminated by whitespace. Not that tricky.

    12. Re:extra quotes by Anonymous Coward · · Score: 0

      XML exists so cases like that don't have to be handled by the parser. Also, "field terminated by whitespace" wouldn't work at all, dumbass.

  32. XHTML/CSS is picking up steam... by Saeger · · Score: 3, Interesting
    I've been "coding" to XHTML transitional for a few years now, and have noticed recently that a lot of the sites being created or redesigned now are also opting for it rather than the old HTML401.

    There's really not much to it:

    • All tags are lowercase, which is easier to type anyway
    • All attributes have to be "quoted" for sanity
    • All tags have to be terminated, like this lists </li> which makes the browsers job of rendering much easier since it doesn't have to play the guessing game. This is especially handy on lowend devices like PDAs.
    • All the old bandwidth-wasting presentation elements (like <FONT>) are now CSS presentation ATTRIBUTES of any element by using id= class= and style=

    Firefox's WebDeveloper extension makes XHTML/CSS validation (among other funcs) so easy that there's no excuse to be lazy about it.

    --

    --
    Power to the Peaceful
    1. Re:XHTML/CSS is picking up steam... by dtdns · · Score: 1

      We've started using FireFox along with the Web Developer extension over the last couple of months, and have made XHTML/CSS the standards by which we work. The result has been web sites that comply with current standards, are more accessible, and are far easier to read and understand by more members of the team. Here are a few samples of what can be done using basic XHTML/CSS without a lot of additional training...

      I'm certain that we still have some things to integrate to make everything truly usable, but the model we work with now is far better than the way it was with table layouts and HTML4.

      Of course if anyone has suggestions for improving the technical standards of these sites, by all means, please let me know.

    2. Re:XHTML/CSS is picking up steam... by Anonymous Coward · · Score: 0
      https://www.immigrantadvocate.com/index.cfm?page=h ome.request

      your textarea is too wide on this page and screws up the formatting

    3. Re:XHTML/CSS is picking up steam... by Anonymous Coward · · Score: 0
      http://www.backyard-experience.com/

      You need to fix the zindex for the white navbar tabs. they are hidden behind the greenbar in Opera.

  33. why you should NOT use XHTML by Phantom+of+the+Opera · · Score: 1


    Why should you not encourage XHTML?
    • Unreadability : XML is
      often touted as a 'human readable' data format.
      Did you ever take a peek at it recently? Its completely cluttered and unreadable.
    • Use of special editors. Writing out XHTML by hand is going to be a pain, even for very simple content. Writers will be forced to use crazy tools just to say 'hello world'.

      Yes, this will allow web designers to handle special cases that rarely come up.

    1. Re:why you should NOT use XHTML by Roguelazer · · Score: 1

      Have you ever written an xhtml page? Because if you have, you are a very stupid person, and if you haven't, you're a classic Slashdot troll.

    2. Re:why you should NOT use XHTML by Anonymous Coward · · Score: 0

      "Use of special editors. Writing out XHTML by hand is going to be a pain, even for very simple content. Writers will be forced to use crazy tools just to say 'hello world'."

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd ">
      <html xmlns="http://www.w3.org/1999/xhtml">
      <head>
      <ti tle>Hello World</title>
      </head>
      <body>
      Hello World
      </body>
      </html>

      Seems easy enough.

    3. Re:why you should NOT use XHTML by Slayk · · Score: 1

      I handwrite XHTML quite a bit, and it's rather easy.

      What is so damn hard about closing what you open, quoting attributes, listing a doctype, nesting properly, and writing tags in lowercase?

    4. Re:why you should NOT use XHTML by Anonymous Coward · · Score: 0

      I find XML as readable as HTML was. Even more so in fact, since you're forced to have better structure.

      You want to say "hello world" in XML? It's as easy as it was in HTML. In fact it's nearly the exact same document. The "hard" part is putting in the correct headers, but you had to do that in HTML too unless you didn't mind writing broken HTML.

    5. Re:why you should NOT use XHTML by Anonymous Coward · · Score: 0

      It's not "hard," it's just pointless busywork.

      Let's convert the site to XHTML! Then we can bill our client for another 100 hours and have no new functionality whatsoever!

    6. Re:why you should NOT use XHTML by Laebshade · · Score: 1

      What is so damn hard about closing what you open, quoting attributes, listing a doctype, nesting properly, and writing tags in lowercase?

      Maybe he was born in a barn.

    7. Re:why you should NOT use XHTML by trisweb · · Score: 2, Interesting
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd ">
      <html><head><title>Hello World</title></head>
      <body>
      <h1>'hello world'</h1>
      </body>
      </html>

      Know any other programming languages that can do a completely understandable and arguably human readable 'hello world' like that? Yeah, I know there are probably a few. But that's not hard, man, I'm sorry. The doctype tag is the hardest part. Try searching for 'xhtml doctype' on google and copy-paste. Not hard.

      If you know anything about software development, you'll no doubt be familiar with the idea of abstraction. You know, splitting a complex or redundant thing into parts to better understand it and make it simpler (loosely defined, anyway). XHTML does exactly the same thing. It abstracts the Content away from the Structure away from the Design. It takes away all the crap that existed in HTML4 pages from all those being mashed together, making XHTML far more readable and easier to code. If you can't see that, then you've never actually tried coding a bit of XHTML.

      "Writing out XHTML by hand is going to be a pain, even for very simple content." -- I responded to something like this earlier, but I'll say it again -- people coding XHTML are throwing away the old WYSIWYG editors in favor of a better program -- a simple text editor. XHTML is so easy to code by hand that you don't even need a program to help you do it. Any old text editor will do. Just shows again, you've never actually had experience coding XHTML. The web is moving in this direction. If you're not going with it, then stop holding it back by saying unfounded things like this.

      --
      "!"
    8. Re:why you should NOT use XHTML by Anonymous Coward · · Score: 0

      You have literal text directly contained in the body element which is not allowed in XHTML 1.0 Strict. I hesitate to mention this since I also believe that XHTML is easy to create by hand but would add the proviso that one must understand it first.

  34. make it strict!!! by eille-la · · Score: 1

    Why the hell should the browsers accept a messed-up page?
    Think about a C compiler who could be as error tolerant as a web browser is for the html. This would result as a huge ridiculous lost of performances, pure counter-optimization!

    If you are not enough skilled to learn a language as simple as x(html) can be, then use any of the wysiwyg apps out there. This will at least generate valid markup.

    Microsoft was usefull to bring personal computers into the home of everybody, but now it is fucking slowing down how the web and the computer technology could evoluate. We already know it, but IE and Frontpage is the worst thing happening these days to the default end users.

    1. Re:make it strict!!! by Anonymous Coward · · Score: 0

      XHTML is easy to parse. A browser doesn't have to make guesses about how to display it, like sloppily coded HTML. Part of the bulk to today's browsers is to figure out how to display crappy HTML. Bulk is tolerated for PC's, but what about a browser for a cell phone or other devices that will be used to surf the web in the future?

    2. Re:make it strict!!! by eille-la · · Score: 1

      You make the erratic tag and every tag in it, not displayed graphicaly, and display the parsing error at the top of the page.

  35. XHTML limits functionality by Anonymous Coward · · Score: 0

    I remember developing one application in XHTML, only to find that it has no support for the javascript OnLoad page event which completely broke what I was trying to do. I was forced to go back to strict HTML for my application to work. I probably won't be using XHTML until it's compatible with all the DHTML elements I can currently use.

    1. Re:XHTML limits functionality by Just+Some+Guy · · Score: 1
      I remember developing one application in XHTML, only to find that it has no support for the javascript OnLoad page event which completely broke what I was trying to do.

      If that's what stopped you, then you weren't ready to be writing JavaScript anyway. I wrote this today:

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd ">
      <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

      ....

      <script language="JavaScript" type="text/javascript">
      function primeRedirect()
      {
      window.location.replace( some long formula to calculate a redirect );
      status = 'Now loading the page you requested...'
      }

      window.onload = primeRedirect;
      </script>

      In other words, I used onload in an XHTML 1.0 STRICT document, and the results validated and worked correctly in IE 5.5, IE 6.0, Konqueror, and Mozilla. That's good enough for my purposes.

      --
      Dewey, what part of this looks like authorities should be involved?
  36. Re:XHTML is great... for me to poop on by alex_ware · · Score: 1

    1) why is that a bad thing always remember to validate
    3)http://sourceforge.net/projects/tidy/ *shoud* correct that for you

    xhtml isn't a format it's a type of XML

    --
    If you have nothing useful to say post as AC.
  37. Warning: not for real web designers! by orthogonal · · Score: 4, Funny

    Also they have a FAQ about why you should use XHTML over HTML.
    Meaning it is to be used for document structuring which is why it does not have presentation elements.


    What! No <blink> tag?? No

    No way I using it!11!1 I'm a serious web designer!

    (This comment looks best at 717x913 resolution, using Internet Explorer for the security holes and that essential <marquee> tag. Page designed in Microsoft Word, because that HTML stuff makes my head swim. Enhanced with buggy JavaScript we stole off some Russian porn site, to resize your browser window, make its controls inaccessible, ensure the "security" of our images by disabling right-click, and to reject any browsers other than Netscape 4.72 and IE 5.5. Please bookmark this comment and come back when we've made the entire comment one big Flash animation completely inaccessible to anyone not running Flash or running Flash but on dial-up. PS: we appreciate your business.)

    1. Re:Warning: not for real web designers! by Anonymous Coward · · Score: 0

      Good stuff :)

    2. Re:Warning: not for real web designers! by Anonymous Coward · · Score: 0

      What! No <blink> tag?

      Never fear, blinking CSS is here.

    3. Re:Warning: not for real web designers! by shift1978 · · Score: 1

      blink is possible with CSS.

      The porn sites are saved \o/

    4. Re:Warning: not for real web designers! by Anonymous Coward · · Score: 0

      Or just a big annoying window that pops up in the middle of your screen that says, "Sorry, your browser is Microsoft compatible."

  38. Long time before XHTML 2 has large market share by imnoteddy · · Score: 1
    Many postings have pointed out that IE is not likely to support XHTML2 and CSS2 any time soon and quite possibly not until Longhorn in 2006 (maybe).

    If MS waits for Longhorn then they''re unlikely to upgrade IE on Win XP or earlier. Longhorn will take some time to be adopted. As a point of reference, Google's June zeitgeist shows Wiin XP with 51% of Google requests - this is about three years after it came out.

    Unless MS upgrades current IE or Longhorn is adopted much faster than XP or compliant browsers are adopted at a much faster rate it could easily be 4 to 6 years before XHTML2+CSS2 have 50% market share.

    --
    No electrons were harmed creating this post, though some may have been subjected to electrical and/or magnetic fields.
  39. Re:extra quotes..damn forget to format. code by haplo21112 · · Score: 1
    Damn forgot...
    <img src="logo.gif" width="10" height="10"/>
    Not
    <img src="logo.gif" width="10" height="10">
    --
    Power Corrupts,Absolute Power Corrupts Absolutely, leaving one person(group)in charge is absolutely corrupt.
  40. XML is not XHTML by Run4yourlives · · Score: 1

    And XHTML is actually easier to write than HTML.

    Thanks for your opinion though.

  41. Actually Slashdot saves a whole lot of bandwidth by Anonymous Coward · · Score: 0

    by sending out simple 503 Service Unavailable responses.

  42. Re:XHTML is great... for me to poop on by Run4yourlives · · Score: 1

    Amen.

  43. Um by Run4yourlives · · Score: 1

    The box model is only broken on IE5. It's even been correctly implimented in IE6. CSS is for all practical purposes fully supported by modern browsers.

  44. Oh God, not again... by JakeisBland · · Score: 1

    No! NO!! Why are they wasting time on this stupid, non-usable language?!?! It makes me want to rip out my face and say "BLAAHAHA". Geez, why don't they fix CSS first and try doing something GOOD, like making the id and name attributes the same or both handled in CSS and javascript. Pathetic. I hate life. XHTML gets the official *thumbs down*!

    1. Re:Oh God, not again... by Jerf · · Score: 1
      I'm not sure what you mean by "making the id and name attributes... both handled in CSS and javascript", but are you aware of the
      [name="blah"]
      selector in CSS?

      (Javascript can already "handle" both, and the support has been in the DOM for everything past Netscape 4, which foolishly insisted on only reflecting "official" attributes.)
    2. Re:Oh God, not again... by JakeisBland · · Score: 1

      I hadn't realized they invited people with no clue to the conversation...ummm...yeah, anyhow... I would assume you would know that id and name attributes are the same thing in what their purpose is...though why does javascript only "getElementById()" and not name? What about DIV tags not fully implementing CSS styles and javascripts for both name and id? There is zero point for having both name and id in the languages, but no...instead the W3 needs to invent useless languages that no one except the "extreme-I'm going on 30 and need to feel like I'm catching on the big wave of programming again-careless of limitations until it's a failed project" programmers will use. Good job Tim Berners-Lee. Making me proud (tool).

    3. Re:Oh God, not again... by the+endless · · Score: 3, Informative
      why don't they fix CSS first and try doing something GOOD, like making the id and name attributes the same or both handled in CSS and javascript

      The id and name attributes aren't meant to be the same. The name attribute is used for naming form controls, and (for example) this means that all radio buttons that are meant to be part of the same set all have the same name. Since the id attribute is meant to contain a unique identifier, making them the same would mean either [a] making it impossible to group radio buttons, since their names would need to be unique, or [b] making it impossible to grab an element by it's unique identifier, since ids can't be unique if you want to group radio buttons. Which would you prefer, exactly?

    4. Re:Oh God, not again... by shift1978 · · Score: 1

      id and name the same ?

      No ! "id" represent an item of your page and "name" the name used to transfer the data in the HTTP request. It is totally different !

    5. Re:Oh God, not again... by LordLucless · · Score: 1

      Only because the way radio groups are setup in HTML/XHTML sucks. This is a NESTED STRUCTURE! Make a bloody tag and stick your radio button inside that.

      --
      Just because you're paranoid doesn't mean there isn't an invisible demon about to eat your face
    6. Re:Oh God, not again... by LordLucless · · Score: 1
      Two things that irritate me about XHTML/CSS:

      Why does an id have to be unique in the page? XHTML is designed to contain nested elements - surely you could use nested IDs. So that, for example, you could have a
      <input type="text" id="username" />
      inside both a
      <form id="logon">
      and a
      <form id="register">
      and reference one as logon.username and the other as register.username in CSS? (OK, . is already taken, but you get the point).

      Secondly, the positional layout is a pain in the butt - and that's not even taking into consideration the browser problems. When designing a layout, it's conceptually much easier to divide the page into cells, and fit elements into the cells. Now, I agree using table tags for this is a hack, but why can't we have something like:
      body {
      columns: 3;
      rows: 2;
      }

      #heading {
      column: 1;
      row: 1;
      column-span: 3;
      align: centre;
      }

      #menu {
      column: 1;
      row: 2;
      }

      #main {
      column: 2;
      row: 2;
      stretch: fill;
      }
      Chuck in something to let you set the size of the columns/rows, and you're done. Oh, and give me some way to set the horizontal alignment of a non-text element inside its container - I find myself using transitional simply so I can add an "align" tag to images and suchlike.
      --
      Just because you're paranoid doesn't mean there isn't an invisible demon about to eat your face
  45. Efficiencies by A+nonymous+Coward · · Score: 2, Interesting

    doing their preferred geeky thing in the most efficient way possible

    Now maybe your preferred geeky thing is minimizing bandwidth over the short term.

    And maybe others' geeky things include minimizing over a longer term.

    I could spend $10K in time to save $5K/year in expenses, or $10K on some other effort that will have a better long term payoff.

    The "editors" here ARE in fact geeks, and they know what they are doing behind the scenes, which you do not. Maybe you should assume they have some idea of what they are doing, and that as you have said, since they have little actual editing to do, maybe, just maybe, they actually do some geeky things that you know nothing of.

    1. Re:Efficiencies by Anonymous Coward · · Score: 0

      $10K is a ridiculously low figure to rewrite slashdot. Try $100K. If the $5K bandwidth costs are correct, that put the payback period long past the point where VA Linux has gone out of business.

      They're geeks. Geeks who like to keep their job because they avoided unnecessary rewrites.

      Multiply Slashdot by the whole Internet and you get the idea why Netscapized Table Layout HTML 3.2 is going to be around basically forever.

    2. Re:Efficiencies by Anonymous Coward · · Score: 0

      The "editors" here ARE in fact geeks, and they know what they are doing behind the scenes, which you do not. Maybe you should assume they have some idea of what they are doing

      Why make that assumption in the face of data that says otherwise? 500 and 503 errors all the time, duplicate articles, posts/articles that do not seem like they were read at all by an editor, etc. Now, obviously since the site is functional now, they do have some idea of what they are doing. However, to assume anything else would be foolish based on my observations.

    3. Re:Efficiencies by Psymunn · · Score: 1

      Nope. A good business man will say 'don't spend 10k to save 5.' A good geek says 'spend an extra 40 hours ot achieve no noticable diffrence, but slightly sexier/ellegant code.' It's the problem with geeks. Many of us enjoy optomising, even when there isn't a need.

      --
      The Neo-Bohemian Techno-Socialist
    4. Re:Efficiencies by Electrum · · Score: 1

      It's the problem with geeks. Many of us enjoy optomising, even when there isn't a need.

      Smart geeks understand things like "premature optimization is the root of all evil" and "profile, don't speculate".

    5. Re:Efficiencies by Tim+C · · Score: 1

      $10K is a ridiculously low figure to rewrite slashdot.

      Agreed, but we're not - or rather, shouldn't be - talking about a rewrite. We're talking about changing the presentation layer, to make it standards-compliant.

      If they've written well-architected code, then the presentation should be (as far as possible) separate from the business layer. It shouldn't involve rewriting slashdot, it *should* just mean changing some templates.

    6. Re:Efficiencies by Anonymous Coward · · Score: 0

      shouldn't involve rewriting slashdot

      Yes, given what we professionals know now about web applications, CmdrTaco should haven't written such a crappy mess of Perl and HTML back in his dormroom back in 1998. Now what good does that do?

      If anything this sentiment cuts directly to the heart of the XHTML Problem -- some people want to live in an idealized universe where everything is clean and nice and nothing is messy or hacked together.

    7. Re:Efficiencies by Anonymous Coward · · Score: 0
      The "editors" here ARE in fact geeks, and they know what they are doing behind the scenes

      Except for Michael Sims. He's a knob-jockey.

  46. A Case for the use of XHTML by Llevar · · Score: 4, Insightful

    HTML versus XML and the related set of schemas, including XHTML, can be compared to building with Lego versus real construction materials. HTML comes out of the realm of the old web where everyone and their uncle can be a so-called "web designer", a title anyone in the industry knows to actually refer to a graphic artist who draws buttons and banners. Coding in HTML revolves around nudging table cells by a few pixels this way or that way and hoping that all falls in place on that old piece of crap browser that half of the customers of your company are still using for some reason. HTML can be written by a 5-year-old. Some see this as an advantage, those who use it professionally can't see it as anything but a shame. I've known my fair share of web developers, being one myself, and the number of them who know anyhing about actual software development is probably less than one percent of the total.

    XML, and all the web-related schemas and standards like XHTML, on the other hand, provide you with an ability to present very complex business domains over the internet. Anyone wno knows anything about programming will say that jumbling all your data, along with it's structure, along with it's presentation is a terrible way to write software. The new standards allow one to keep data separate (XML), structure separate (XHTML), and presentation separate (CSS). While it's admittedly more complex than the regular HTML it lets you do so much more with your data. Switch stylesheets and bam, your site looks completely different. Switch XSL stylesheets and you can serve the same data in completely different ways on a PC, a PDA, or a mobile phone.

    Lastly I want to bring up that web clients are often used as front ends for company intranets and while it's going to be a while until web developers (and consumers!!!) will be able to enjoy the benefits of the move to XML on www those benefits can already be reaped in the controlled environment of your company intranet.

  47. Here's my take on the issue by digitalgimpus · · Score: 1

    I read it, and agree that the web could be better, and they have some great ideas on how to do it...

    But some things just drive me nuts, so I decided to sit down and blog it.

    If the can't manage to do it, what makes them think the world will do it?

    They have always been fans of backwards compatibility... but not in a very fundimental sense.

    I'd rather a form control not appear properly to NN3, than a large chunk of the web be unable to view my content.

    Just my $0.02

  48. Oh, pu-lease! by Goldenhawk · · Score: 2, Insightful
    • Do you remember that web pages in 1996 look like shit?

      Do remember that web development these days cannot rely on simple static text?

      Do you realize that with HTML/XHTML editing tools around these days, it doesn't matter?

      Right tool for the job, my friend. A text editor is for writing static text. HTML/XHTML tools are used for making web pages and interfaces.

    Oh please.

    Do I remember? Yeah, I've been coding HTML by hand since 1995, and my pages looked pretty messy back then. But it wasn't the HTML - it was my poor grasp of what looks good and works well for other users.

    "Cannot rely on simple static text"? It's been said here before, and apparently you don't believe it. If your pages rely on flashy formatting and movement and pixel-level formatting, you're letting the formatting get in the way of content.

    Right tools? Heh. Sorry, I've tried PageMill, and FrontPage, and Netscape and Mozilla built-in editors, and even MS Office's HTML editing. Don't like them. They all generate bulky, messy code, hard to tweak, impossible to really control. I've hand-coded everything from day one, and will always do it. And if you think hand-coded HTML is unpretty, somehow, visit http://www.worship-live.com for what you can do without an editor. Looks nice in any browser, lightweight and therefore bandwidth-friendly, and has yet to generate complaints of any significance. Maybe it won't parse out as perfectly W3 compliant - maybe I put the italics tag on the wrong side of my paragraph tag - but it works.

    Sorry, but I just disagree with your basic premise. Frankly, the biggest problem facing the web today is people who somehow think that PageMill or Frontpage make them better web designers. Sorry - that's exactly the wrong answer.

    --
    --Brandon / Split Infinity Music

    1. Re:Oh, pu-lease! by Anonymous Coward · · Score: 0

      Your site (http://www.worship-live.com) looks like ass, see what CSS formatting can do and glimpse into the future of XHTML http://www.csszengarden.com/

    2. Re:Oh, pu-lease! by delus10n0 · · Score: 1
      It's been said here before, and apparently you don't believe it. If your pages rely on flashy formatting and movement and pixel-level formatting, you're letting the formatting get in the way of content.


      I believe the original response was in regards to dynamic content; ie. information pulled from a database. Just look at how often Slashdot's main page changes.

      Right tools? Heh. Sorry, I've tried PageMill, and FrontPage, and Netscape and Mozilla built-in editors, and even MS Office's HTML editing.


      You just named some of the worst HTML editors, ever. The best HTML editor (and everyone knows this) is a text editor. For real. If you need a WYSIWYG editor, though.. I'd suggest Macromedia Dreamweaver, Adobe GoLive! or even Microsoft's new Visual Web Dev 2005.
      --
      Not All Who Wander Are Lost
    3. Re:Oh, pu-lease! by drinkypoo · · Score: 1

      Cool, software to lead my worshippers. How long after its release will you make this available as a plugin to black and white 2?

      --
      "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
    4. Re:Oh, pu-lease! by mortonda · · Score: 1
      Sorry, I've tried PageMill, and FrontPage, and Netscape and Mozilla built-in editors, and even MS Office's HTML editing. Don't like them. They all generate bulky, messy code, hard to tweak, impossible to really control.


      Have you tried Quanta Plus? It lets you hand type all that stuff, but also keeps track of tags and doctypes for you. Pretty cool, except for the fact that it crashes immediately on startup for me right now. :/

      And if you think hand-coded HTML is unpretty, somehow, visit http://www.worship-live.com for what you can do without an editor.


      eek. I would have some issues with your style of presentation - there's too much stuff on one page. Nevertheless, you are right, in that your hand coding is clean. Your code is nearly xhtml compliant, however, and you do make use of CSS, so it would not take much to convert to xhtml. I'm not clear if that was you argument anyway.


      As I said there's too much stuff on one page - I'd break it up some. I kept looking, however, because I'm actually looking for this type of software for our church. Amazing where you find leads sometimes, isn't it?!

    5. Re:Oh, pu-lease! by Anonymous Coward · · Score: 0

      I agree, I do not find that site so great. Its not the ugliest thing in the world, but its not my style.

    6. Re:Oh, pu-lease! by Proc6 · · Score: 1

      You know your HTML source is easier to read, and easier on the eyes than the web page it produces. No offense, just an observation.

      --

      I'm Rick James with mod points biatch!

    7. Re:Oh, pu-lease! by Anonymous Coward · · Score: 0

      ? ? Failure to quote attribute properties? Spacing using  , not CSS? Yuck.

  49. Why? by DamienMcKenna · · Score: 1

    At this stage, why bother with YAHTMLS (Yet Another HTML Standard) and why not just go straight to the full-blown XML standards? Like has been said, 95%+ of browsers will support it nicely (the 5% being made up of the 4th gen browsers and others that are XML-free). It would save having to redo your work in another thre years when they forgo the HTML-esque standards and just tell everyone to use XML.

    Damien

    1. Re:Why? by Anonymous Coward · · Score: 0

      Uh. XHTML is XML.

    2. Re:Why? by the+endless · · Score: 1
      At this stage, why bother with YAHTMLS (Yet Another HTML Standard) and why not just go straight to the full-blown XML standards?

      Well, this isn't Yet Another HTML Standard - this is XHTML, which is HTML in an XML format. In that sense, we've already gone to "full-blown XML".

      Alternatively, if you mean we should all make up our own XML-based languages and create whatever tags we want every time we create a website... that's a terrible idea. The strength of (X)HTML is that you/me/browsers/everyone knows that <h1> is a heading, and so on.

      Imagine writing a script that extracts all the headings from a document, in order to create a table of contents. Simple when you know you're looking for <h1>, <h2>, etc., but exactly how would you go about it when the elements that represent headings can be different for each and every document, depending on whatever element names the author felt like using on that particular day?

  50. Realtime XSLT transformation for legacy by zyche · · Score: 1

    I'm no expert in XSLT, but since XHTML is in XML, should it not be possible to create a XSLT to transform a XHTML page to good old HTML4? And by configurating the webserver to serve this transformation to legacy browsers (read IE!) you could handle all documents internally in whatever latest XHTML standard you chose to use. Sort of like a serverbased browser plugin...

    Another comment attached to this story makes me belive that the current state of XSLT tranformation engines are quite slow? Well, nothing a few months of Moores law can't solve! :-)

    1. Re:Realtime XSLT transformation for legacy by trisweb · · Score: 1

      XHTML is so closely related to HTML4 that most old browsers ( IE 5, Netscape 4, even Lynx et al) render the content perfectly. The reason for this is the separation of the content from the design, so all of the content is marked up only based on what is contentually important -- like header tags, div tags, horizontal rules, paragraphs, em and strong tags, etc. Older browers understand most all of these tags and the content is perfectly structured and readable in any client, even Ye Olde Mosaic. Cool idea though -- if browsers like IE ever get too far behind, this could work.

      --
      "!"
    2. Re:Realtime XSLT transformation for legacy by Anonymous Coward · · Score: 0

      Another comment attached to this story makes me belive that the current state of XSLT tranformation engines are quite slow? Well, nothing a few months of Moores law can't solve! :-)

      Or a few seconds of pre-processing and caching.

    3. Re:Realtime XSLT transformation for legacy by krove · · Score: 1

      Umm, doesn't XSLT transform an XML document (like XHTML) into another valid XML document? Since HTML 4.01 is not an XML format, an XSLT transformation isn't really possible, I believe.

    4. Re:Realtime XSLT transformation for legacy by Anonymous Coward · · Score: 0

      nope...

      you can spit out invalid stuff.

    5. Re:Realtime XSLT transformation for legacy by Anonymous Coward · · Score: 0

      Nope. The xsl:output tag can control the type of output generated. The spec defines xml, html, and text as output types, and it looks like you can define other output types yourself. Heck, if you're clever I bet you could write a simple compiler in xsl.

    6. Re:Realtime XSLT transformation for legacy by zyche · · Score: 1

      Hmm, yes... Thats true. Actually the biggest problem today is probably stylesheet support. So, if you apply the idea to that it perhaps makes more sense: the server gives the client (browser) something that it is sure will render ok (using whatever horrible hacks it has to - not much difference to todays webpages).

      I remember I read on /. something about a guy who had coded a plugin stylesheet for IE that gives better support for modern stylesheets. Thats great, but requires an installation, in which case we could as well require Firefox to begin with!

      Perhaps this could be a "business opportunity" soon: code a server transformation module with plugins for each of the kazillions of different browser versions that exists... I doubt that OSS would ever began coding on something so boring! :-D

  51. Displaying XHTML by Brian+Blessed · · Score: 2, Interesting

    Does anyone know if this revision will specify more precisely how it should be displayed by a web browser?

    The problem I've found with fully using XHTML+CSS for web pages is that it is not possible to layout pages that will scale accurately as the font size is increased. So much for accessibility!

    I wonder why it was decided that it would be useful for text that doesn't fit, to run-over other text and elements on the same page.
    It would be better if we could tell the browser that when elements expand the other parts of the page must move out of the way.

    - Brian.

    1. Re:Displaying XHTML by Anonymous Coward · · Score: 0

      Perhaps it would be nice if the default for overflow was something besides visible, but this is easily fixable by the site in question. Just be sure to add overflow=auto or overflow=scroll to the appropriate element's style. It doesn't do exactly what you want, but it will handle the run-over problem.

    2. Re:Displaying XHTML by the+endless · · Score: 1
      The problem I've found with fully using XHTML+CSS for web pages is that it is not possible to layout pages that will scale accurately as the font size is increased.

      That is possible. I suggest you stop using absolute units (pixels, points, etc) and have a look at relative units (for example ems). Then all your width/height/etc settings will be recalculated when the user changes their browser's font settings. 3em for "medium" font size is different from 3em for "small" font size, and so on.

    3. Re:Displaying XHTML by Brian+Blessed · · Score: 1

      I'm familiar with the use of relative units, but unfortunately they don't solve the problem.
      Because of a lack of guidance from the W3C, different browsers measure some of these sizes differently.
      To see the problem, try to find a page with a reasonably complex CSS layout that scales well as the font size is increased above 300% (CTRL-+ in Moz).

      - Brian.

    4. Re:Displaying XHTML by haijak · · Score: 1

      My site is fully XHTML1.1 and CSS compliant. However i seem to have found a bug in the CSS validator. My XHTML valadites just fine. but the CSS pre validator complaines about a line and colum that dosent exist.

      -----

      --
      Don't judge me by my spelling
    5. Re:Displaying XHTML by Nurgled · · Score: 1

      The default rendering of otherwise-unstyled XHTML documents is up to the browser implementor, and is not specified in the XHTML specification because XHTML (now) is a completely semantic markup language.

      The CSS specification (mostly) specifies the result that each property should have and the interactions between them. Of course, today's browsers implement the specification partially and with many bugs. The fault here lies, in most cases, with the browser developers, not with the specifications. There are a few vague spots in the CSS spec, however; ideally, the browser developers would seek clarification from W3C, but pressures to get the product out the door make that unfeasible I suppose.

    6. Re:Displaying XHTML by MooseGuy529 · · Score: 1

      About layout scaling: The reason your pages do not scale with font size is probably that you are still thinking in the "old" table way of layout and giving things pixel sizes. Using ems, instead of pixels, as this article from A List Apart (a great website for web designers, and probably the best place to learn how to properly put new standards, like XHTML and CSS, into place without sacrificing flexibility) explains, has a benefit:

      ...you can use ems to define the dimensions of your entire layout, which will then scale in proportion to the text.

      This makes it much easier to lay out pages. Take a look at my blog, where I use this technique.

      Oh yeah, when you say "So much for accessibility!", you are slightly missing the point. The point of accessibility is that your content be accessible (not necessarily pretty) without problems. Tables used for layout, for example, present a problem, because screen readers do not know whether to ignore them and just follow the page in order or whether to treat them as an actual listing of information and denote the rows and columns. Look at my blog, change the font. Nothing breaks.

      About overlapping text: Have you seen this or many of the other articles explaining how to use margins and floats to keep stuff from running over it. And the way to tell the browser not to run over stuff is this: if you have a sidebar, say "float: left;" (or right) in the CSS style for it. Then it will stay on the left, and the other stuff after it will wrap around it.

      If you want to see an example of a page where a sidebar (on the right in this case) floats without covering up the content, visit my blog. If you email me I will give you a copy of the template, which is beautiful--it is absolutely, completely separate content and formatting.

      About "will this revision be more precise about display?": No. XHTML does not specify how text is displayed. HTML is the Hyper-Text Markup Language--it is used for 'marking up' (not 'laying out' or 'beautifying') 'hyper-text' (not graphics). The point of HTML, from which it strayed and, with XHTML, is returning to, is to show the structure of text. The <p></p> tag only means "the text inside this element is a paragraph". It does not mean "the text inside this element should be displayed as a wrapped, block-level element with a margin above and below." It simply suggests to the user agent or renderer that the enclosed text should be considered, semantically, a paragraph.

      Don't worry--with time, the "ripping apart" of pages into content and formatting becomes natural. The best way, in my opinion, and the one that produces the results most true to the separation of content and formatting, albeit being a bit of a challenge, is to do this: write your entire page using only XHTML--no CSS. What you will end up with is a 1990's-esque HTML page with no formatting. Create all your pages, using common classes of divs and spans everywhere. Then, create a CSS stylesheet that converts this purely semantic set of pages into a beautiful layout. The best tools for this are Firefox (although you should test in IE if you care about idiots) with the EditCSS sidebar. With these, you can load your bare-bones page and edit a stylesheet in real time, watching how styles affect the page. If you are uploading to a remote server as you develop (rather than running Apache somewhere on your LAN) it is much faster to just edit a stylesheet with this.

      Just my two cents. (Actually more like a

      --

      Tired of free iPod sigs? Subscribe to my blacklist

    7. Re:Displaying XHTML by handslikesnakes · · Score: 0

      The CSS error is probably beause your XHTML isn't well-formed.

    8. Re:Displaying XHTML by SoupIsGoodFood_42 · · Score: 1

      Either your browser doesn't support XHTML and CSS, or you're not doing it properly. But since you don't give any real examples, it's pretty hard to know which.

    9. Re:Displaying XHTML by tepples · · Score: 1

      The default rendering of otherwise-unstyled XHTML documents is up to the browser implementor

      True, but the browser implementors don't know jack about XHTML 2.0, and in at least IE and Mozilla, you'll most likely get the parse tree view that you'd get for any other XML application that doesn't have a specific default stylesheet. It appears each web author will have to duplicate effort on creating a stylesheet for each web site.

    10. Re:Displaying XHTML by Nurgled · · Score: 1

      No-one should be serving XHTML 2.0 directly to browsers except in very specific, controlled circumstances until browsers support it -- which might, of course, be never.

      XHTML's more useful in the short term for using as input to XSLT transformations, or as part of other XML Applications such as Atom or SVG. Of course, no-one should be using XHTML 2.0 in that situation either, since it's not a W3C Recommendation yet.

  52. OK, ya got me by Phantom+of+the+Opera · · Score: 1
    I had just read the FAQ. According to the FAQ XHTML is in XML format. I just happen to really dislike working with XML. That might make me a troll (or at least off-topic), but so be it.

    XML is big, unweildy, and complete. Some people like the completness, but it only leads to confusion, and doubly so when any namespaces are involved.

    XML was designed to be easily read by eye, but it is often less readable than other text formats.

    XML was designed to find the holy grail of 'eliminating version incompatability' and allowing different applications to share common data in the glorified XML format.
    • You don't need XML to share data between applications
    • Different companies (or even groupos) work just as hard to create a common XML grammer as they would to make any other grammer for data transmission


    HTML is a presentation language and well, websites do present. It doesn't take a programming genious to separate the presentation from the content if that is desired.
    1. Re:OK, ya got me by mrchaotica · · Score: 2, Informative
      HTML is a presentation language and well, websites do present. It doesn't take a programming genious to separate the presentation from the content if that is desired.
      Allow me to illustrate the important difference between HTML and XHTML: the <i> tag vs. the <em> tag. They do the same thing, right? Wrong! They only look the same on a web page, in a normal visual web browser. But that's not all that XHTML is for -- imagine an audio web browser, for the blind. How is it going to know what to do with that <i> tag? How do you speak "italicized"? Speaking with emphasis makes much more sense. Also, what if instead of a person, it's a computer program parsing the XHTML. <em> means that the phrase is more important than the other text -- but what does <i> mean? For all the program knows the author just felt like writing in italics for no apparant reason!

      That's just one example; the entire point of XHTML is that the entire thing is designed with these kind of things in mind. Another example is tables; in HTML they're often used for page layout. In XHTML, they should only be used for tabular data; page layout should be handled with CSS. This is because in XHTML, <table> means "this is tabular data" rather than "this is arranged in rows and columns".

      Also, navigation bars: in HTML, you'd see things like this: "home | foo | bar | links | goatse" -- just a bunch of hyperlinks, separated by pipes. This is wrong (although technically valid) in XHTML. Instead, you should think about what you're actually making -- a list of links. Therefore, use <ul> instead, and use CSS to make it look like the row of |-separated links (which can be done, fairly easily -- check A List Apart)

      Anyway, the point of this is that a XHTML document isn't just a "web page" -- it's a semantic document that should be useful in things other than a web browser. It should (ideally) be usable on everything from a PDA browser to a printout to a powerpoint-style presentation to a text-to-speech browser. Most importantly, it should provide semantic markup for use with spiders and such. Normal HTML doesn't do this.
      --

      "[Regarding the 'cloud,'] ownership was what made America different than Russia." -- Woz

  53. Re:No, HMTL is really, really broken by NulDevice · · Score: 1

    XHTML and CSS are much, much easier to learn than the giagntic mess of nonstandard, browser-incompatible, downright screwy tags that encompass the current state of HTML. Maybe HTML was once intended as a great democratzier of the internet, but it's a misapprehension to think that back in the day everyone was writing and grasping HTML - the people who were early-adopters of the web and were coding their home pages were the technical people anyway. Few average-guys-on-the-street were setting up elaborate page designs unless their job called for it. Even then, most people relied heavily on editors and templates. The proliferation of bad Frontpage-designed websites is a testament to that.

    The internet has changed and old-fashioned HTML - and the idea of one person coding it all for themselves - isn't really up to the task anymore.

    Let's face it, most "non-technical" people stopped coding HTML by hand when the spec for "table" came out. Those that continued gave us interminable headaches with tags that wouldn't validate, but occasionally IE or NS would consider "good enough" and try to fix, or little end-run hacks that would do one specific formatting thing in IE4 that would break horribly in every other browser.

    There's less of a need these days anyway for a non-IT-or-related-industry person to deal with the deep mechanics of markup. Much of the great democratization of the net has come from services - forums, blogs, and yes even slashdot, not from my next door neighbor coding a personal home page. Even in industry, the "web designer" is becoming a rarity in the post-dotcom economy. NOw it's either more comprehensive media designers who apply their skill to the web, "regular" employees who develop content, or developers and admins who code HTML as front-ends to applications and services. Few people have the specific job of just making web pages anymore.

    For those of us who do have to deal with the nuts and bolts of markup, the XHTML/CSS combo is a godsend. Code is more legible, information hierarchies make sense (in some ways, a lot of it hearkens back to the early days when everything was h1, h2, h3...), if doen right you only need to make one set of pages that can be easily made to work cross-browser...what's not to love?

    And really, it's not hard to learn. Oh, sure, CSS has a lot of detail to it, but how often is someone going to have to know what the CSS2 spec is for alpha-masking? Standards things like "font-family" and "background-color" are pretty easy to remember, and are certainly easier to deal with than those bloody font tags and 900 conflicting html attributes.

    --

    ----
    "I used to listen to Null Device before they sold out."

  54. Vote with your code by drmike0099 · · Score: 1

    The above is true, but I think what w3c is trying to get people to do is to start following the standard. There's a chicken-and-egg thing going on with the standards and implementation now (and always) where the standards are generally considered a "good thing", but people don't use them because no applications use them, and since people don't use them, companies don't make products that incorporate them, which means people can't use them or don't find benefit from using them. More often than not, us developers have waited for companies to give us something before we do it. If we all did it first, then they'd have to give it to us, and they'd have to give us what we wanted and not what they thought we might want.

    In other words, just like voting with your feet or your wallet, vote with your code.

  55. your mozilla sig by mnemonic_ · · Score: 1, Troll

    what is this "mozilla"? is it like an internet program or something? i have never heard of anything like it in my ~5 years of visiting slashdot.

  56. Re:No, HMTL is really, really broken by AuMatar · · Score: 1
    XHTML and CSS are much, much easier to learn than the giagntic mess of nonstandard, browser-incompatible, downright screwy tags that encompass the current state of HTML.


    Not at all. CSS is difficult for people without a CS or IT background. They don't understand the idea of abstraction and of differentiating content and presentation. And a lot of those "screwy" tags in HTML made life a lot easier. And example is the center tag. People understood that, it made sense. People don't understand .


    Maybe HTML was once intended as a great democratzier of the internet, but it's a misapprehension to think that back in the day everyone was writing and grasping HTML - the people who were early-adopters of the web and were coding their home pages were the technical people anyway. Few average-guys-on-the-street were setting up elaborate page designs unless their job called for it.


    In 95 and 96? Yeah. In 97 and up? No, many of them were average Joes. Many of the people blogging now are. Sure none of them are technophobes, but not all of them are technicly knowledgable either. As for elaborate page designs- who cares? The web is not about just the giant sites. Its about all the pages, from little to big. If anything, the little ones are even more important. When I google for information, I find myself sent to some small homepage far more often than I am some giant of the internet world.

    The internet has changed and old-fashioned HTML - and the idea of one person coding it all for themselves - isn't really up to the task anymore.


    Sure it is- I'd be willing to bet hard money that there are still more single programmer pages out there than there are professionally produced ones.

    Much of the great democratization of the net has come from services - forums, blogs, and yes even slashdot, not from my next door neighbor coding a personal home page


    Slashdot was a small personal homepage with user comments that made it big. I'm not going to downplay the importance of blogs or forums, but homepages do far more, and are far less emphermal, than blogs ever did. Blogs are great for reporting spur of the moment thoughts and short articles. But homepages do all that and more. I tend to think of blogs as minimalistic homepages.

    I'll agree, CSS and some of the XHTML features make life easier for big designers. IF you think its going to make cross-browser work though, you're kidding youself. HTML would do just as well if the spec was followed. It wasn't, and this one won't be either. You'll be back to the same types of tricks within a week.

    And CSS is definitely hard to learn. Not for the average /.er, but for the average non-tech person. Most fields don't need the kind of abstractiona nd thought that CSS ueses, they aren't going to get it. Not without a lot of work. And for all that, you end up losing the majority of the non-tech people, for slight gains for the tech people. Not the right way to go.

    --
    I still have more fans than freaks. WTF is wrong with you people?
  57. MOD PARENT UP!!! +3, Funny by Anonymous Coward · · Score: 0
  58. Boo-Hoo, Poor Newbies by Lethyos · · Score: 2, Insightful
    Now we have XHTML and CSS. Neither of these are easy to learn.

    We also have C, Perl, Fortran, Lisp, and so on and so on and so on... and they are all difficult to use. You actually have to sit down, open a book, read, learn, and think. Can somebody tell me why XHTML should be anything different?

    First of all, XHTML is easily recognizable to anyone who knows HTML. I don't know where you get off saying it's harder than HTML. As for CSS, it's a hell of a lot easier than messing with tens if not hundreds of nested font tags and other legacy presentational markup crap.

    Second, why do development tools and languages have to be simple and easy to use by the masses? So the tools can be a little less popular? Is that even bad? I for one would be quite happy if more people out there who are too dumb to figure out how to use relatively simple tools like XHTML correctly weren't producing material for the web. Even then, there is now lots of software out there that produce valid, semantic XHTML (modern incarnations of Dreamweaver, for example, are capable of this). So where is the problem?

    We as developers should definitely be interested in making end-user products easy and functional. But when it comes to the languages and tools, fuck that. Let's make them good for developers, not our grandparents.

    --
    Why bother.
  59. CGI.pm by mishan · · Score: 4, Informative

    I don't know about you guys, but my pages are already written in XHTML 1.0 and, thanks to CGI.pm, all I need to get my pages up to the XHTML 2.0 spec is a newer version of CGI.pm which would be provided through a newer Perl distribution.

    Ah portability..

    1. Re:CGI.pm by PenGun · · Score: 0

      Mod this perl troll up.

      I'm a fine one to talk but perl against xml, xhtml \(*^*)/ css is da bomb!

      PenGun

  60. Re:why you *should* use XHTML by Laebshade · · Score: 3, Informative
    Why should you encourage XHTML?
    • Readability: XHTML is readable as long as it is structured correctly. Note: That doesn't mean having everything on one line.
    • XHTML can be done with a plain text editor just like regular HTML, though as always, it's best to use a text editor that at least has syntax highlighting.
    I code valid XHTML nearly everday as a freakin' hobby. There's 3 useful things I've come to know:
    • Make it structured and it is easily readable. Tabs, line breaks, and spaces in appropriate places.
    • A text editor with syntax highlighting. A must.
    • Ok, so I forgot what the third was.
    The above is true for nearly all programming. Slashdot, home of the all-knowing arrogant beings.
  61. HTML by hand by Princeofcups · · Score: 1


    My web site, http://www.igsgames.com, has a couple dozen pages all written by hand with a text editor. I use bbedit mostly but never touch the web widgets. It is quite simple to cut and paste to create a new page. I know exactly what code is in each page, so it is easy to modify. And I am not a web developer by trade.

    Please spread the word that HTML is easy for anyone to learn!!! :-)

    jfs

    --
    The only thing worse than a Democrat is a Republican.
  62. Huh???!? by Mac73117 · · Score: 1

    What are you talking about? Buy expensive programming languages. I use vi exclusively (not saying its better just what I'm used to) to create web content, xhtml included. Last time I checked I was human. As for the expensive programming language(!?), the validator code is readily available for free.

  63. Tranesterification by Graymalkin · · Score: 3, Insightful

    One huge problem I've encountered trying to switch pages from HTML 4.01 to XHTML is more established engines tend to hail from the HTML 3.2 days (Slashcode) and have not evolved much since. Forum software is often the worst in my experience, everything is littered with tables and fixed size elements. A lot of people host their sites on vhosts and many of those don't support things like HTML::Template, Mason, or Smarty. As such most coders just write their own template system which may or may not handle newer web standards.

    Since many sites are using crappy HTML they want to spice up they tend to use equally crappy JavaScript to add little stylistic features. I think many people are surprised when they hit up a CSS tutorial and figure out they can replace their stylistic JavaScript with CSS and have much better performing web pages.

    I'd love to see more sites using XHTML, even transitional XHTML, with CSS for styling and layout purposes. Documents end up much more flexible and quite a bit smaller. It is also easier for end users to override the page's CSS with their own to either make elements more legible or friendlier for their output device (PDA, cell phone, screen reader).

    Coders of CMS engines: Please use sane template systems so it is easier for your poor end users to make their pages better comply with web standards. Also don't wrap stuff in tables, not everyone uses tables to lay out their pages! Presentation logic is fine and dandy but don't hard code layout elements, let the users decide! Thank You.

    --
    I'm a loner Dottie, a Rebel.
    1. Re:Tranesterification by dracvl · · Score: 1

      ...and, of course - Plone. XHTML, WAI-AA and Section 508 compliant.

  64. Don't worry by Safety+Cap · · Score: 1

    Plans are in progress

    --
    Yeah, right.
    1. Re:Don't worry by Anonymous Coward · · Score: 0

      Neither of those links work.

  65. MOD PARENT UP NOOBIES by Anonymous Coward · · Score: 0

    nt

  66. Re:No, XHMTL is broken... Or is it something else? by EtherAlchemist · · Score: 2, Insightful

    It's not a surprise to hear someone complain about XHTML and CSS and all that goes with it. People have become complacent with markup. When HTML was the only way you built Web pages, people thought "Cool, this is so easy, anyone can do it!" and this was true. Anyone who could, did. But then rules got involved. Browser makers went on their own paths, interpreting or altogether ignoring W3C recommendations and spec and causing a new breed of technology employees major pains in their collective ass.

    If you wrote HTML, you had all the browsers effectively working against you. You still do today. They are slow to incorporate W3 standards, and even when they claim to do so- the engines still interpret the meaning of the markup slightly differently. The DOM support has gotten way better, but there are still differences between browsers and even within versions of the same browser. Take IE for example. Simply adding the DOCTYPE tag causes all three versions to behave different from themselves! Even if you use XHTML 1.0 Transitional, you're still going to face rendering problems. They can all be gotten around, but it takes patience and experience.

    Not just anybody can sit down and author HTML for a complex page that looks and behaves the same across platforms and browsers. Clearly, not EVERY browser, but it can be done. I regularly build sites that support IE 5 >, NS 6.2 >, Mozilla 1.8 > on PC and Mac and Safari on Mac. But, I have the experience of doing it for years, and the time to make sure it gets done right. The moment most authors are faced with writing code that works outside their favorite browser most give up and slap a "Best viewed in..." disclaimer on their site. This isn't really their fault, they may not always have the time or resources to do it. Others are driven by project requirements that say it should only work in such and such browser.

    Really good front end developers are frustrated because there is STILL this mentality that any idiot can write HTML. Sure, but only a few of us can craft it and weild it like a blade. I would argue that authoring markup to be cross browser/cross platform requires the same level of understanding markup (HTML/XHTML) CSS and JavaScript that a C++, Java or other compiled language author must know about that language. There isn't an IDE in the world that can generate x-browser/x-platform code involving those three things (markup, JS and CSS). Some come close or do certain things really well but it's just a fact that the browsers behave too differently to do it. Unless YOU KNOW how to make it work, it likely won't using an HTML generator. Products like Dreamweaver are fine, and they have their place. But they are not a substitute for someone who knows what they are doing.

    If you still think the problem is in the spec though, that's fine. I would recommend using a looser one and giving it another shot. I mentioned XHTML 1.0 Transitional earlier. This is, in my op, the best one to start with and use if you are really wanting to adhere to XHTML but don't want to give up some of the things you know and love (or hate, but need to use anyway) like table cell attributes that would otherwise be deprecated. If you're producing pages that should work in PC and Mac browsers with equal functionality and appearance, this is the one you want.

    --
    R(k)
  67. Your eloquent words by Anonymous Coward · · Score: 0

    will be sure to acheive the desired effect.

  68. Re: javascript == pure evil by Anonymous Coward · · Score: 0

    I really dislike sites that use javascript redirects. I use IE with *all* scripting turned off, so I have to view the source and manually enter the URL when someone gets cute and uses a javascript redirect. Jerks.

  69. How can they omit Konqueror? by ElMiguel · · Score: 1

    I bet it has a much bigger market share than some of those browsers. And no, Safari is not the same.

  70. Has anyone tried coding a site in pure XHTML/CSS? by Anonymous Coward · · Score: 1, Interesting

    It's horribly painful to create a decent layout using strict XHTML and CSS. You can make some nice-looking things after a bit of work, such as the samples at CSS Zen Garden. However, try looking at the CSS file for any of the nicer designs. They appear to be completely hacked together! Separating the CSS stylesheets from the XHTML source makes them even harder to understand, since you can't figure out which element has which id/class and what order the elements come in.

    For 99% of site designs, tables work perfectly well. You want some header accross the top, a sidebar with links on the left, perhaps another sidebar on the right, then some content and a footer that spans the bottom. It's very natural to perform a layout using rectangular blocks. If you look at any print publication, it's probably also laid out using blocks.

    When you're making a website, one of your main goals is to make it look good. If you just wanted to give the user annotated data, you could just give them a plain XML file.

  71. Time Stands Still for W3C by Frobozz0 · · Score: 2, Interesting

    As much as I like the work of W3C, it's as if they are stuck in a time warp where they could actually effect development patterns. It's not 1994 any more, and there's so much existing infrastructure in HTML 4.0 (or similar) code and horrible Ineternet Explorer interpretation of that code that little will happen for YEARS. The lead time on their final specifications are probably at 5 or 6 years now.

    Don't get me wrong-- they're doing the right thing, but it's as if they could shout at the top of their lungs that MathML and SVG should be standard and no one will care. Oh wait, nobody does. How many browsers support either "out of the box?" If you were to add up their market share it would be in the single digits.

    It's time we just realize, as web developers and designers, that we are stuck with a horribly inefficient means to share information that is worsened by the lackluster industry movement required for change in the way we get at that information.

    I'd say this is a new thing, but it's not. Look at any industry and the same thing always occurs.

    --
    "Politicians find new names for institutions which under old names have become odious to the people."
    1. Re:Time Stands Still for W3C by Anonymous Coward · · Score: 1, Insightful

      Sounds more like you're saying time stands still for everyone else. W3C moves on to bigger and better things, while the rest of us get stuck with the 20th century's "state of the art".

    2. Re:Time Stands Still for W3C by Frobozz0 · · Score: 1

      Touche' my friend.

      --
      "Politicians find new names for institutions which under old names have become odious to the people."
  72. Re: javascript == pure evil by Just+Some+Guy · · Score: 1
    I hate them, too. What I hate even more is that MSIE randomly chooses to ignore the Refresh: headers that we were hoping to use instead, meaning that we had to switch to JavaScript redirects so that legacy browsers would be able to use our site (which is a limited-access system for a short list of customers who need to interact with our database).

    Basically, we got to choose between using not using JavaScript or supporting MSIE, but not both. I campaigned for the former; my boss picked the latter and he and his paycheck-writing skills won the discussion.

    For the sake of customers like yourself, I added a clickable link that's encased in <noscript> tags to the new page. The whole reason that we have an intermediate page is that the destination page takes about 90 seconds to generate, and we wanted customers to have "instant" feedback that they had successfully clicked the link. We didn't want them to sit there click-click-clicking all afternoon as query after query queued up on the server and the application ground to an agonized halt.

    If we could get all of our customers to upgrade to a standards-compliant browser then my life would be much easier and I could use the right tools, not just the ones that happen to work. Still, I've at least managed to keep the entire site validateable as XMHTL 1.0 STRICT (plus validated CSS), so things could be worse.

    --
    Dewey, what part of this looks like authorities should be involved?
  73. MoveableType as CMS by Infonaut · · Score: 1
    Check it out. MT generates clean XHTML coupled with CSS. I know everyone thinks of it as a blogging tool, but I've already used it on two commercial sites and clients LOVE it because it is easy to use, and I love it because I can easily manipulate the CSS outside the CMS and drop it in. It's a great example of why separation of content and presentation is so valuable.

    --
    Read the EFF's Fair Use FAQ
    1. Re:MoveableType as CMS by Graymalkin · · Score: 1

      I was going to mention that a good deal of blogging software produces very nice and maintainable code. I think it largely has to do with the fact most blogging packages are only a handful of years old and began life in the middle of the HTML 4.01 Transitional - XHTML 1.0 Transitional period. Designing an XHTML compliant engine from the ground up is a lot easier than backporting XHTML into an existing engine, especially one spitting layout elements all over the place.

      I tend to believe another large issue has been the traditionally horrible CSS support in IE. Mozilla and other Gecko-based browsers are gaining ground but for the most part IE still rules the web. IE works much better with Microsoft's "standards" than it does with W3C specifications. If only the hours I've wasted tuning CSS to work in IE 5.5 were billable.

      --
      I'm a loner Dottie, a Rebel.
  74. jackass by Anonymous Coward · · Score: 0

    someone doesn't know what formatting option to pick.

    I do like how your post trailed off into bold italics, though. Nice touch.

  75. You suck mods by Beek · · Score: 0

    This isn't a troll, it's valid. Slashdot's HTML is terrible. Go read the dillo mailing list archives.

  76. Re:A model XHTML site check by the W3C by LittleLebowskiUrbanA · · Score: 1

    It was clearly not posted to offend. Just a joke site anyway.

  77. Transitional vs. Strict by zonix · · Score: 1

    I've been "coding" to XHTML transitional for a few years now, and have noticed recently that a lot of the sites being created or redesigned now are also opting for it rather than the old HTML401.

    XHTML is just a reformulation of HTML as an XML application. In other words, beyond syntax and well-formedness they're largely the same.

    All the old bandwidth-wasting presentation elements (like <FONT>) are now CSS presentation ATTRIBUTES of any element by using id= class= and style=

    This goes for HTML 4.01 as well. Both HTML 4.01 and XHTML 1.0 have the three DTDs: Transitional, Frameset and Strict. The goal of separating presentation from structure/content (and putting it into stylesheets) has less to do with HTML vs. XHTML, and more to do with Transitional vs. Strict document types.

    The Strict DTD disallows all deprecated tags (such as <font>), and this is really what you want when working with presentational information exclusively in CSS, because the Strict DTD will force you to do so - assuming you're not too tempted to use inline style= declarations. But again, you can do this with both HTML 4.01 Strict and XHTML 1.0 Strict. For XHTML 1.1 there is only one DTD (which is Strict implicitally) - the last step in ridding the world of tag soup pages (assuming we're going to get busy using the application/xhtml+xml media type, but that's another matter).

    To recap, if you have HTML 4.01 Strict, you can switch to XHTML 1.0 Strict easily with a little syntax tweaking (with few exceptions). When you have XHTML 1.0 Strict, you can switch to XHTML 1.1 by just chaging the DTD at the top of your document (again, with few exceeptions).

    So why use XHTML? Well, because you can parse it with XML tools and do all kinds of neat things with your pages in, say, a server backend before you push it out to clients as whatever XHTML or even HTML you like.

    z
    --
    What would an EWOULDBLOCK block, if an EWOULDBLOCK could block would? -- me
  78. Always valid by Jimbobbob · · Score: 1

    I go out of my way to make sure every site I design is XHTML 1.1 compliant, and the CSS validates. I live the w3c's validators. Great things, they are.

    1. Re:Always valid by Jimbobbob · · Score: 1

      "live the" should be "live on the". Why do I always do that?

  79. Agreed by zonix · · Score: 1

    So unless you are willing to set up content-negotiation, sending different document types to different browsers, and unless you have a niche market that use browsers that understand these new features, you really aren't going to get anything from XHTML. Not for a few years, anyway. (my emphasis)

    So true! And right now, the biggest obstacle for the adoption of XHTML - used with the proper mentioned media type - is really Internet Explorer's dominance and lack of XHTML support.

    z
    --
    What would an EWOULDBLOCK block, if an EWOULDBLOCK could block would? -- me
  80. ...in fact, you have to wonder... by schodackwm · · Score: 1
    ... if w3c's amaya browser w3org/Amaya is compliant? ...despite the fact that's touted as supporting XHTML and html 4.01!

    <rant> Amaya v 8.5.0.0 (apparently, the current stable version) takes an HTML 4.01 transitional page, using CSS1 and that small subset of CSS2 that happens to work across-the-board with Moz, IE and Konqueror, and trashes the layout, even tho the html and css have blessed by the w3c html [http://validator.w3.org/] and css validators [http://jigsaw.w3.org/css-validator/] -- as they were also by CSE's html validator and by Top Style's css tool).

    Recognize the above is tantamount to a sideways plug (but note: no links as there would be if this were a disguised promotion) but given the stats I get off my servers, I'm going to keep on worrying about the vast preponderance of visitors who use IE, NS and Moz and who -- just BTW -- are predominantly using dialup, where compactness really counts!
    </rant>

    And -- re some other comments on this story -- I find XHTML to require a significant size increase to achieve the same effect as can be done compactly with 4.01 + CSS... and without, as another poster noted, spending nearly as many hours debugging as I (for one) need to clean up XHTML. Feel free to argue that that's an experience/knowledge issue, but what are we gonna' do for those whose real contribution to the net is content -- ideas, pictures, arguments -- rather than scrupulous code.

    --
    [this sig has been trunca
    1. Re:...in fact, you have to wonder... by Grant_Watson · · Score: 2, Insightful

      "...but what are we gonna' do for those whose real contribution to the net is content -- ideas, pictures, arguments -- rather than scrupulous code."

      Hopefully, we will do what we're already doing in many places: let them use a markup generation tool; let them use templates; let them use a content-management system.

  81. MOD PARENT UP by zonix · · Score: 1

    Damn, I thought this would have been modded up already!

    The linked text should be required reading for all people who use XHTML. Don't be fooled by the title, it's actually the best advocacy for proper use of XHTML. It also presents the drawbacks of the current improper use of XHTML (on pretty much every site on the Internet).

    z
    --
    What would an EWOULDBLOCK block, if an EWOULDBLOCK could block would? -- me
    1. Re:Mod Parent Up by Anonymous Coward · · Score: 0

      Maybe because more often than not, W3C Standards are a big bag of puke. XHTML2 totally breaking compatibility with traditional HTML? I'm sorry, but that's just unwarrented and retarded and will ultimately fail.

  82. Mod Parent Up by SeinJunkie · · Score: 1

    I couldn't agree with you more. It irks me to see people taking a position to not use the W3C standards. You don't need to encourage that... everybody programs against W3C standards. It's not like there's some magical treasure in coding poorly. Anybody can and does do it.

    If message boards want to make it simple for everyday people to mark up their messages, they can do what they've been doing: process the basic markup into valid XHTML code. Any good message board code will clean and validate all of the input, first. Running vanilla HTML or XHTML makes no difference. You are responsible for your site.

    If I had mod points, they'd be all yours, parent.

  83. Yes but by DamienMcKenna · · Score: 1

    Skip the intermediary standards and do pure XML data with XSLT, XPath, etc.

    Damien

  84. Re: javascript == pure evil by takev · · Score: 1

    You should neither need to do javascript or redirect. You can use a multipart mime-message. First generate a HTML page with "please wait" then calculate the new page and when it is finished push it out on the same connection.

    What you could even do is push multible pages, with a continued estimate on how long it is still going to take, say every 10 seconds. It can know this because you are pushing these pages in the same process as the long calculation is.

  85. How to use tidy from vim by Crag · · Score: 1

    :%!tidy -q

    These eleven keystrokes (including 'enter') mean 'replace all the lines in this file with the result of piping them through the command "tidy -q"'.

    This should work for any version of vi, but vim really is the best.

    I often begin an HTML doc with

    Page description

    And then ":%!tidy -iq -asxml" fills the rest in for me, indented and everything.

  86. MOD PARENT UP by Deef · · Score: 1

    This blog is quite interesting. I had no idea such a thing existed.

  87. Why Google should support XHTML by Richard+W.M.+Jones · · Score: 1
    1. Re:Why Google should support XHTML by Anonymous Coward · · Score: 0

      closer ties to standars process = higher google ranks. what an evil idea

  88. Re:Has anyone tried coding a site in pure XHTML/CS by shift1978 · · Score: 3, Interesting

    So you say that website with tables used for design are more easy to read ? Are you sure ?
    Have you ever work on the website of another person, company, project using table for design ? It sis totally impossible to maintain it without losing much time.

    Now about the goal of a website, it is not to look good but to provide information. Now if it look beautiful too it is better. But information is the main point and accessibility - I mean information for everybody (blind persons, persons using their mobile phone,...) With tables for design accessibiliy is not possible

    Foolow this link http://www.humanfactors.com/downloads/chocolateaud io.asp and listen what a blind person can ear when a website use unecessary tables.

    Moreover XHTML is more easily readable than XHTML for web-engine. With the separation of content and design you win lot's of bandwidth. Etc.

    All my websites now use XHTML and CSS and I am very happy with this. It work perfectly and I win so much time than bfore using tables. I can change the look of all my website by changing one file. Do this with table and without server languages (PHP,ASP,...).

    XHTML rox ! CSS rox ! HTML will die slowly :)

  89. Because you forgot to use the... by Phil+John · · Score: 1

    ..english language validator? ;oP

    --
    I am NaN
  90. Re:Has anyone tried coding a site in pure XHTML/CS by Phil+John · · Score: 2, Insightful

    For 99% of site designs, tables work perfectly well.

    No they don't, they can throw off screen readers which (rightly so) expect tabular data to be in tables.

    Every site I've done in the past few months has been completely xhtml and css based. Sure, the first few times took a bit longer than before, but what I find now is that it takes me less time than it used to for a table based layout! Plus, if the client comes back a few months later wanting a redesign it's much easier because my content is separate from the visual display, so all I do is reorder some divs, update the stylesheet and bam, it's much quicker and thus cheaper for my clients.

    one of your main goals is to make it look good.

    No, the main goal is to make it as accessible as possible, then make it look good. What good is a flashy site if you cut out several % of viewers?

    --
    I am NaN
  91. zerg by Lord+Omlette · · Score: 1

    Can you separate content from form?

    We should've stick to ASCII.

    --
    [o]_O
  92. The funny thing is... by devphil · · Score: 2, Interesting


    ...there are many languages out there which follow these rules, and humans always tend to hate them.

    Why should we need a semi-colon to end a statement. The line feed should be enough. Well, that's the way it was in assembly language and shell scripting, but people bitched and moaned, and statement-separators have been a part of both kinds of language ever since.

    Why should we need a closing brace. Cannot the compier SEE that it is the end of a block simply because the indenting is different? And yet, whenever Python is suggested as a language, the usual response is some language bigotry about "the indentation nazis taking over." Heck, even Stroustrup tried a variation of C++ where the try/catch blocks didn't have to be enclosed in braces, because the "try" and the "catch" made everything redundant. The compiler was just fine with it, but the people using the language clamored for the braces to be put back.

    I'll stick to Python, but I'll let the sloppy Perl coders share the same air as me. :-)

    --
    You cannot apply a technological solution to a sociological problem. (Edwards' Law)
    1. Re:The funny thing is... by Daniel+Dvorkin · · Score: 1
      I like Python too, but the main point is consistency. Python uses indentation to mark blocks of code; everyone who uses Python knows this (or figures it out damn fast [g]). C, C++, Perl, etc. use { and }, and ; to end lines, and everyone who uses these languages knows that. What fault-tolerant Web browsers do is the equivalent of letting you write code like:
      for (i in lst):
      do_something(i);
      }
      I don't think anyone really wants this ...
      --
      The correlation between ignorance of statistics and using "correlation is not causation" as an argument is close to 1.
  93. Drupal is valid by Run4yourlives · · Score: 1

    and a good CMS to boot. www.drupal.org

  94. dillo can render shashdot? by themusicgod1 · · Score: 1

    are you joking?

    I suppose if you mean 'render' as 'can use without logging in'... or mabye i'm justing an old version of dillo?

    --
    GENERATION 26: The first time you see this, copy it into your sig on any forum and add 1 to the generation.
  95. The history of IMG by Nurgled · · Score: 2, Interesting

    Now that every browser anyone would dream of using supports IMG in some form, even if it's just replacing the element with the contents of the ALT element, it's easy to forget about its heritage and not correctly shame the creators of this, one-broken-always-broken element.

    IMG was added to Mosaic back in the day, and after it was implemented it was submitted for peer review. The "peers" correctly noted that the use of an 'alt' attribute to handle browsers which cannot display the image is inadequate because pre-IMG browsers will not render it at all. In addition, it can only accept plain text and not full markup, so it is impossible to provide proper fallbacks in non-trivial cases. Sadly, the Mosaic developer responsible for IMG decided that since it had already been implemented as submitted, and Mosaic was the browser of the time, it wasn't worth the trouble to rewrite the support for this element in their tag-soup parser.

    Today we have OBJECT which works as suggested by the peer review of IMG back in the day, but IMG has become so ingrained that no-one can feasibly use it. OBJECT is clearly a superior solution, supporting all kinds of object and providing multi-tiered fallback simply by nesting OBJECT elements within each other and finally nesting other elements such as IMG.

    I'm not so sure that I agree with this new "everything is potentially an image" idea, though. It seems nice in theory, but just that example of a SPAN element inside a P element shows that it's all just an awful hack. It's a good start, but it seems like they didn't really think it through properly.

  96. No, that is evil... copy.xls by Anonymous Coward · · Score: 1
    Found on a w3c list, XHTML FAQ: please remove application/xml + XSLT hack

    - it breaks in Internet Explorer 5.x without MSXML 3.0 installed in replace mode

    - it breaks in Internet Explorer 6.x with reasonable security settings that would prohibe the cross site access required to fetch the document type definition

    - it is generally a bad idea to deliver XHTML documents using the application/xml MIME type as explained in RFC 3236 section 2

    - it breaks progressive rendering

    - it wastes tremendous amounts of system resources as the browser would first have to fetch the document type definition and then transform every document instead of just rendering it as the resource is retrieved; even if the document type definition is cached at some point, the browser would still emit four GET requests for every document to get 304 status

    - it encourages the use of unregistered MIME types

    - it does not prevent clients that actually support XHTML as application/xml and XSLT to transform the document too, which again wastes resources

    - it breaks scripts that use CDATA sections to escape content as the CDATA section would be lost during the transformation

    - it encourages use of illegal XHTML documents as the result of the transformation would not have a document type declaration

    - it breaks content that relies on the encoding of the referring document to determine the encoding (such as HTML documents...) as the transformation result would be UTF-16 encoded and thus such content would be assumed to be UTF-16 encoded which it most likely ain't

    - it breaks content that relies on one-pass white-space processing in attribute values

    - it encourages the use of a .xml file name extension for XHTML documents which yields in more text/xml content on the web, which is a bad thing as everyone else is trying to wipe that type out
  97. XHTML 2.0 : DOA by docteuru · · Score: 1

    As a Web developer I can tell you that there is 90% chance that XHTML 2.0 will never be used by anyone.

    First, it does not add anything really useful that you could not do with XHTML 1.0. Well, there are things that are useful (in related standards actually), but there are too complicated to be implemented in current browsers (XForms, XML Events, add all of SVG to that). <section> and <l> are great, but you could do similar things with <div class="section"> or even "gasp" <nobr> (I know, nobr as only a visual meaning, but you could infer a real semantic meaning if you really wanted to).

    Now, if it added something that would really change something for the Web developer, like in XAML (I don't know a lot about it, it seems interesting) I would eagerly wait for the implementations. What the WHATWG does seems a lot more interesting.

    The next real web standard will be to HTML/XHTML what client server computing is to dumb terminal / mainframe computing. Anything that does not go in that direction will not be accepted by the industry. XHTML 2.0 is completely uninteresting in that regard.

    And for crying out loud, I know <br /> is evil, but it is still neaded. <l> does not replace it. <l> encapsulates, <br /> separates. <hr /> as been changed to s everywhere. And, there are the ones that pay's the web developpers. I know, I can, and will, do everything that's possible to make my web pages validate to web standards and have the best semantic HTML that is possible relative to everything else (incompatible CMS, marketing divisions, Flash, tight schedules, fellow web developer that don't test except in IE). But leaving
    just takes the biscuit!

    Sorry for the rant, the awful english and the bad Hitch Hicker's to the Galaxy references.

    1. Re:XHTML 2.0 : DOA by docteuru · · Score: 1

      Sorry for repeating this post, it was mangled when I first submitted it...

      As a Web developer I can tell you that there is 90% chance that XHTML 2.0 will never be used by anyone.

      First, it does not add anything really useful that you could not do with XHTML 1.0. Well, there are things that are useful (in related standards actually), but there are too complicated to be implemented in current browsers (XForms, XML Events, add all of SVG to that). <section> and <l> are great, but you could do similar things with <div class="section"> or even "gasp" <nobr> (I know, nobr as only a visual meaning, but you could infer a real semantic meaning if you really wanted to).

      Now, if it added something that would really change something for the Web developer, like in XAML (I don't know a lot about it, it seems interesting) I would eagerly wait for the implementations. What the WHATWG does seems a lot more interesting.

      The next real web standard will be to HTML/XHTML what client server computing is to dumb terminal / mainframe computing. Anything that does not go in that direction will not be accepted by the industry. XHTML 2.0 is completely uninteresting in that regard.

      And for crying out loud, I know <br /> is evil, but it is still neaded. <l> does not replace it. <l> encapsulates, <br /> separates. <hr /> as been changed to <separator />... good. But please, change <br /> to something else. <wsp /> maybe ? (weak seperator, word seperator....). With style sheets, it could be ignored when it is not important (audio). (It could be a pause in audio, why not?). The people that creates those standards (I know there are a lot more intelligent than me) definitly never had to work with people descendant from the Golgafrincham B ship (lucky them). They want <br>s everywhere. And, there are the ones that pay's the web developpers. I know, I can, and will, do everything that's possible to make my web pages validate to web standards and have the best semantic HTML that is possible relative to everything else (incompatible CMS, marketing divisions, Flash, tight schedules, fellow web developer that don't test except in IE). But leaving <br> just takes the biscuit!

      Sorry for the rant, the awful english and the bad Hitch Hicker's to the Galaxy references.

  98. Re: javascript == pure evil by Just+Some+Guy · · Score: 1

    That wouldn't work for us. We're using a Zope server, and the queries that take ages to run are isolated in their own objects. The page that displays the results has no knowledge of the internals of the query objects, other than that they return some interesting attributes.

    --
    Dewey, what part of this looks like authorities should be involved?
  99. Which browser to use? by Skapare · · Score: 1

    So which browser should I use to be up to the latest "standards compliant" ... and also work reliably the way I am used to working? I've tried Firebird, which is Mozilla based. But it has too many bugs and mis-features for it to be my default browser. I can still start it up when needed, but it's a pain because I have to set about 20 configuration items each time because it won't save them correctly. Netscape 4.77 is my default browser with Netscape 3.04 as a fallback when I get some really raunchy HTML.

    FYI, I use Linux, so please don't suggest IE.

    Note: this post is an entrapment to get free tech support.

    --
    now we need to go OSS in diesel cars
    1. Re:Which browser to use? by shift1978 · · Score: 1

      Netscape 4.77 ?
      Woooow ! I believed only stupid firms used it :)

      Please uninstall this horrible browser. It is one of the worst piece of software ever made.

      I don't know where Firefox os buggy or mis-feature. You will explain us.

      If you don't want Firefox, try Opera, Konqueror, or gecko browsers (Galeon, epiphany,....)

    2. Re:Which browser to use? by kink · · Score: 1
      You say you've used "Firebird", so I guess you've installed an older version of Mozilla's excellent Firefox product. You should try the latest version: they've made huge enhancements to stability and reliability in the past few releases. I use it as my only browser under Linux and the occasions where it doesn't function properly are becoming rare.

      http://www.mozilla.org/products/firefox/

    3. Re:Which browser to use? by Skapare · · Score: 1

      I have tried all those. Back to Netscape 4.77.

      For starters, Firefox gets all mixed up when launching multiple instances (which I do every day ... I have about 8 instances of Netscape 4.77 running now, and that's about average). Firefox intermingles the changes. When I start it again, it loads up with some mixed set of properties from the others that were started, some that have exited and some that are still running. Right now Firefox is usable only one instance at a time.

      So find me a browser which will work when I start multiple instances and it will properly save any settings separately.

      The rendering still has pixel boundary bugs. As I scroll in some fonts, rows of pixels either get omitted or shifted left or right by one. That could simply be a bug where some people of code somewhere is incrementing horizontal when it should be incrementing vertical.

      Firefox and it's cousin Mozilla still do not properly handle the -geomtry command line option for startup. That was the first bug I reported years ago. I still get Bugzilla reports on it being re-assigned around, but no one ever fixes it. Open Source development still has some of the same problems as commercial development ... they don't have enough time/people to fix everything and they have to prioritize. But too often the priority is to skip old bugs and add new features which just adds new bugs. I think they should call a halt to all new features for a year and focus everyone on old bugs (either fix them or identify them as part of design problems to be corrected in the next major version).

      Netscape 4.77 also has a smaller memory footprint than any of those.

      --
      now we need to go OSS in diesel cars
    4. Re:Which browser to use? by Skapare · · Score: 1

      So tell me this, since I don't see it mentioned on that site at all. Will it now let you start multiple instances (I run a 40 virtual desktop environment) and let you save all the settings separately?

      --
      now we need to go OSS in diesel cars
    5. Re:Which browser to use? by Skapare · · Score: 1

      BTW, regarding your "only stupid firms used it" comment ... there once was a time when Netscape 4 (or 4.77) was the newest, latest, greatest browser. Of course 4.0 was quite buggy and slow at the time. But I tried it, and things didn't work at all. My desktop at the time needed to give the -geometry command line option, which worked OK in NS 3.04 but not at all in NS 4.0 (actually I detected that problem in beta2 and reported it then). NS 4 was also very slow at rendering certain pages, and in some cases really screwed up bad. It still screws up some table layouts (NS 3 gets them right) so it's not a perfect browser by any means. But did that make it stupid to use NS 4? Well, certainly not when the choice was NS 4 vs. NS 3 vs. IE whatever. Maybe back then you'd say NS 3 was stupid.

      I have since upgraded to NS 4 ... did that around 4.73

      But I also still have NS 3.04 around for those rare occaisions nothing else works right. They are getting rarer now (haven't used it since October 2003).

      So I have to understand your meaning of "only stupid firms ... still use it ... after I have upgraded to the new version". Well maybe you're just geeky enough to live with, deal with, or maybe just not have to worry about, the limitations and problems of the newest version. But the world just does not upgrade to the newest things immediately. If new versions always worked perfectly, they would be limited in what new things they could do. Improvements always have some degree of leaving the legacy behind. And they have to make decisions on what they do leave behind and what they can improve. But regardless of what those choices are, they are never optimal for everyone. So you will always have some people that can upgrade immediately and some people that need to hold out for a long time. I'm somewhere in the middle, still using NS 4 for the bulk of my multiple browser instances (I eventually designed a workaround to the -geometry problem). I do use Firebird for some browsing, but it's limited because it can't do multiple instances. The tabbed windowing helps, as do multiple windows, but still not enough because settings do need to be changed at times, and that still causes problems.

      BTW, I went to download Firefox (the new name) 0.9 ... but I can't find the source code for the release version. It's there for Mozilla, but not for Firefox. Do you know where the source code is (not the latest CVS nightly hack; I mean the source of the version used to build the 0.9 binaries)?

      --
      now we need to go OSS in diesel cars
    6. Re:Which browser to use? by Anonymous Coward · · Score: 0

      I do believe you want the Mozilla suite for that. It supports seperate users like Netscape 4.x, which will permit you to do exactly that, along with the new rendering engine.

  100. Re:Has anyone tried coding a site in pure XHTML/CS by prockcore · · Score: 2, Insightful

    Separating the CSS stylesheets from the XHTML source makes them even harder to understand, since you can't figure out which element has which id/class and what order the elements come in.

    Get Firefox and install the Web Developer extension. It has a feature called View Style Information. Turn it on and your mouse becomes a crosshair. Click on an element and you can see exactly which CSS rules apply to that element.

  101. life-not-complicated-enough-apparently dept. by SoupIsGoodFood_42 · · Score: 1
    Apparently, Slashdot editors think that HTML is too complex for their feeble little minds. Perl, RegEx? No problems. HTML? No way. Leave that to the real experts.

    Never mind the fact that XHTML is acctually easier to use than HTML because the rules are stricter and clearer.

  102. YOU FAIL IT! by Anonymous Coward · · Score: 0

    You are *such* a fucking pussy. Hang it up and go home.

    "Boo-Fucking-Hoo, valid HTML's too hard to write for more than 30 lines. My pussy just swells up & falls the hell off if I have to use vi! BWAAAAAHHHHHH!!!!!"

  103. OK by Anonymous Coward · · Score: 0

    What about MathML?

    1. Re:OK by Linegod · · Score: 1

      Mozilla/Firefox supports MathML, but not Konqueror (yet)....

      --
      -- I care not for your foolish signatures.
  104. Why You Shouldn't Use XHTML by Anonymous Coward · · Score: 0

    Cause another damned standard will be out next week

  105. it's a problem with XML, and it's not going away by dekeji · · Score: 1

    So, why do we need a strict language that will barf at the first syntax error ?

    Languages don't barf at syntax errors, browsers do. And I suspect that IE will be very, very lenient with XHTML syntax errors, just like it has been very, very lenient with HTML syntax errors. Why? Not because Microsoft wants world domination (they want that, too, of course), but because they don't want to have to deal with support calls like "this page renders in other browsers and IE is broken for not rendering it". XHTML provides an opportunity for browsers to become more strict, but chances are, they won't, and it's unclear that they should.

    The real problem is that {HT,X}ML wasn't designed for usability, so people make mistakes and take any shortcut they can. The way to fix that is not for software to barf at either users or authors, the way to fix that is to fix the f*cking {HT,X}ML syntax to be more user friendly: i.e., scrap the effort and start over and create a new, entirely different markup language for the web.

    Of course, hell will freeze over before that happens, so authors will have to live with lousy syntax and browsers will continue to accept the errors users make. Life is not perfect.

  106. No, XHMTL is broken-Think of the children. by Anonymous Coward · · Score: 0

    "Now we have XHTML and CSS. Neither of these are easy to learn. Neither of them is easy to use. Less technical people are incapable of using either. This is great for job security for webmasters, but for the growtrh of the next and for the internet as a medium of free and easy communication its horrible. XHTML is broken as an HTML replacesment because it does not meet the original purpose of HTML- to be something that anyone can easily learn and use."

    You know, I think I know part of the reason our jobs are being outsourced. Here we have someone basically complaining about how technology has changed, and is growing up. That's something technology will always do. But does the poster embrace this change, and approaches it with a "can learn" attitude? Afraid not The reason given is that the "less technical" can't handle it (presumptious, and insulting). Sort of a geek's "think of the children" You will note that the people who are learning CSS, and XHTML and all the rest of it, don't have such hangups about technology. They recognize it's changing. They recognize that they can learn (They don't go on long dirades about how incapable they are). And they recognize that other's inabilities are their opportunities. You people want your jobs back? Losing the defeatist attitude will go a long way. If you can't keep up with technology, then why did you go into this field?

  107. Sending XHTML as text/html Considered Harmful by Anonymous Coward · · Score: 0

    Why you shouldn't use XHTML.

  108. Not that XML isnt bad...The rest is hype by Anonymous Coward · · Score: 0

    I honestly see no reason to use XHTML especially if you arent using XML data within your web application. so many things XML are getting hyped up as much as those other BIG things with BIG acronyms that get hyped in the tech community. Standard HTML and CSS work just fine for general display purposes in your web site.

    Many big companies still use plain old delimited files, Java has not made the network a replacement for your software and Push technolgies hasnt changed the web at all.

    Any more hype?

    and my God Slashdot, This message board is a disaster in UI.

  109. Kudos Couldnt agree more. by Anonymous Coward · · Score: 0

    You are correct sir! Unless you are handling content negotiating with XML than there really is no reason. The better thing to make the size of your pages smaller and faster is to use CSS instead of tables etc.

  110. but there IS a benefit! by mrchaotica · · Score: 1
    "...is it worth advocating that people move to XHTML when there is virtually no benefit..."
    Two words: Semantic Web.

    Obviously you can't benefit right now, but if nobody moves to XHTML, there never will be!
    --

    "[Regarding the 'cloud,'] ownership was what made America different than Russia." -- Woz

  111. Why should I use XHTML? by dcam · · Score: 1

    I mean really, why? The FAQ does not answer this, the FAQ explains how XHTML works, how it is different and all that. But it doesn't explain why I should change. It explains why HTML is bad, or to be more accurate how easy it is to write bad HTML, but that is not sufficient reason for me. Sure if I want to use some of the newer features, I need to use XHTML, but I'm not seeing anything I need there either.

    Here are some reasons *not* to change:
    1. It doesn't work in IE without a nasty work around. IE is still the dominant browser last time I checked, despite a
    2. It doesn't work in older browsers. Some people still do use them.
    3. I have a boatload of stuff in HTML and experience to match. Any time spent upgrading that for no real benefit is time wasted.

    YMMV.

    --
    meh
    1. Re:Why should I use XHTML? by shift1978 · · Score: 1

      Wrong !

      Internet Explorer and old browsers don't have much difficulties to read XHTML documents beacause they render them as HTML ones. As XHTML 1.0 can be served as text/html no problems.
      The only problem can be the attributes of forms (selected="selected",...) but that the only one I can see.

      But Internet Explorer and old browsers have some problem with CSS. But not all the properties. It is possible to create full XHTML + CSS pages that work perfectly in IE.

      Moreover should the good evolutions of the Web be stopped because one of the biggest and richest companies of the World don't want to create a software that can support standards older of years ?
      The alternativves exists and are free so no excuse to don't leave old browsers and Internet Explorer. Opera, Konqueror, Safari, Mozilla family,... make your choice. Moreover if old browsers (lynx, w3m,...) don't support CSS : no problem if your site is semantically well done. The information is accessible and that is the main point.

      Should the Web be construct on mistakes of Microsoft and Netscape company who tried to poluate the HTML with their own tags ? No ! When you build a house on an old one you sometimes have to destroy old walls or your house will fall. That's the same thing for the Web. It is now in danger and we have to destroy old walls to build new ones. No more "Internet Explorer only", "You need Windows 98 or much to visit this site", "You don't have Shockwave Macromedia released one month ago to visit this empty site", marque, blink, .htc, filter:,...

      So yes XHTML + CSS is possible and are the future of the web. We don't have to wait Microsoft for enhanced (in a good way) the Web.

  112. Then poop away! by Anonymous Coward · · Score: 0

    You'd be interested in this project, in that case:

    4) http://poopmup.sf.net

  113. Hmm Quality by vijaya_chandra · · Score: 1

    Considering the quality of HTML that Microsoft Word generates,

    For me, almost always the quantity of html, the damned thing generates, itself had been the problem.

  114. Insightfull by La+Gris · · Score: 1

    The above comment is very pertinent and informative.

    I would mod this up as insightfull.

    --
    Léa Gris
  115. Re:Has anyone tried coding a site in pure XHTML/CS by BenjyD · · Score: 1

    Took me (a chemical engineer/C++ coder with no design ability at all) no time at all to knock up a (IMHO) good looking site. It's not exactly complex, but it was easier than using tables. Surely you're not saying the world's highly trained web designers are less capable than a glorified plumber?

  116. Re:it's a problem with XML, and it's not going awa by wsapplegate · · Score: 1

    > Languages don't barf at syntax errors, browsers do

    Correct. I posted too much in a hurry (which also probably explains the huge number of typos I made. Sorry).

    > IE will be very, very lenient with XHTML syntax errors [...]. Why? [...] because they don't want to have to deal with support calls like "this page renders in other browsers and IE is broken for not rendering it"

    But other browsers (like Mozilla) already choke on a malformed application/xhtml+xml page. Hence, I think this point is moot. Also remember : the only ones who will be biten by this feature will be the ones writing HTML by hand (rare, and intelligent enough to RTFM) or those using antiquated authoring tools (a way for MS to sell them FrontPage.NET 2019, with added XHTML compliance :-)

    > The real problem is that {HT,X}ML wasn't designed for usability, so people make mistakes and take any shortcut they can

    I disagree. You could also argue that C, or even LaTeX weren't designed for usability (and you would have a point ;-) But the difference is, a syntaxically incorrect file in those language won't be accepted by the parser. Thus, you see a lot less broken C/LaTeX code floating out on the 'Net. The real mistake was to allow for syntax errors to be accepted instead of creating usable authoring tools in the first place.

    > the way to fix that is to fix the f*cking {HT,X}ML syntax to be more user friendly: i.e., scrap the effort and start over and create a new, entirely different markup language for the web.

    We often feel that a system is broken when it doesn't adapt to our way of thinking. For instance, I find HTML too verbose, and the table syntax is horrendous. I also find the Linux Filesystem Hierarchy Standard to be quite hairy, my keyboard mapping is totally stupid, and I could go on and on. Since I touched a computer, I felt compelled to reinvent the wheel many times. But reinventing the wheel would mean people would lose all the know-how they've aquired over time, there would be painful transitions, and so on. It would just be rejected (think about the Dvorak keyboard. It's probably better, but it requires an adaptation period, hence its failure. Or think about Linux on the desktop). Backward compatibility (even if limited) is just necessary to get people to move over to the new standard. Trust me.

    > authors will have to live with lousy syntax and browsers will continue to accept the errors users make

    Are you sure ? XHTML provides for simpler syntax (by relegating the presentational code to CSS). And some browsers already do not accept errors for pages sent as XML documents. I'm not saying the Web will be totally valid overnight, but as the legacy code gets phased out, the situation can only improve, IMHO.

    --
    Xenu brings order!
  117. Easily understood my ass by LPetrazickis · · Score: 1

    I will bet you any amount of money that there are more actual XHTML sites on the internet than there are actual HTML ones. Because browsers render absolute HTML shit soup when given it fine, people write HTML shit soup and think they know HTML.

    In fact, if you want to code XHTML shit soup, you can as long as you send it as text/html. It won't be XHTML, but neither are most webpages HTML.

    It is much easier to write proper XHTML than it is to write proper HTML, so people who care about propriety and validity write XHTML.

    --
    Is this a sigs-optional kind of place? 'Cause I am totally down with that if you know what I mean.
  118. Not 100% Equivalent by LPetrazickis · · Score: 1

    It should be noted that em and strong are not 100% equivalent to i and b . Specifically, you should also be using cite, var, dfn, and a few others when you are actually dealing with a book title, a variable name, or a word that's defined in the sentence it's in.;)

    --
    Is this a sigs-optional kind of place? 'Cause I am totally down with that if you know what I mean.
  119. Obligatory IE bash by Anonymous Coward · · Score: 0

    "One reason I test my web apps in many browsers, if it dosent look the same in all of them, I'm not doing something right!"

    Or the browser isn't.

  120. Re:it's a problem with XML, and it's not going awa by dekeji · · Score: 1

    You could also argue that C, or even LaTeX weren't designed for usability (and you would have a point ;-) But the difference is, a syntaxically incorrect file in those language won't be accepted by the parser.

    C compilers have incompatible extensions, but many users don't use them because they want their programs to be portable.

    LaTeX has just a single implementation, so the question of variability among implementations doesn't arise.

    But reinventing the wheel would mean people would lose all the know-how they've aquired over time, there would be painful transitions, and so on. It would just be rejected

    It depends on how, when, and why. Replacing XML, HTML, or XHTML would be hard, but sooner or later it's going to happen, probably with some form of backwards compatibility.

    Are you sure ?

    How can one be "sure" about anything in the future? But it looks unlikely to me that Microsoft is going to make IE more restrictive because anything else is just too much of a pain.

  121. They use mod_gzip by rfsayre · · Score: 1

    It doesn't matter.

  122. W3C going nowhere by tepples · · Score: 1

    It irks me to see people taking a position to not use the W3C standards. You don't need to encourage that

    Other than that XHTML 1.0 Transitional was the last W3C HTML standard to support semantic numbering of list items (the value element of the li element) or dynamic replacement of object contents on click (the target element of the a element), both of which were deprecated in XHTML 1.0 and removed from XHTML 1.0 Strict and XHTML 1.1?

    Other than the inability to set proper XHTML media types through some web hosting providers, combined with a setup fee to switch hosting providers?

    Other than Microsoft Internet Explorer's inability to read XHTML documents served with an XHTML media type without an obscure hack?

    Other than the absence of a canonical default stylesheet for web authors to start from, making XHTML 2.0 complicated to get started with and discouraging look-and-feel consistency among web sites? In HTML 4, links are blue + underline because browsers have their own stylesheets for HTML, but no current browser understands XHTML 2 without an external stylesheet, and it appears to be each web author's job to duplicate effort in creating such a stylesheet.

    Little inconveniences like this are why people stay on HTML 4 rather than one of the W3C's newer XML applications.

  123. Allegedly mistakenly deprecated attributes by tepples · · Score: 1

    As for simplicity, XHTML (strict) has fewer tags than HTML.

    In XHTML 1.0 Strict, how do you code a list that starts at 6 and ends at 10? No wait, you can't because <li value="..."> was deprecated and thus removed from Strict. And how do you designate that a link should open a page within a given object element without <a target="...">, which was also deprecated?

    1. Re:Allegedly mistakenly deprecated attributes by ttfkam · · Score: 1

      Supposedly it's through CSS and counters. The browsers (except Opera) don't support it though. I take your point though. I guess I never noticed because I never use the feature. Good point.

      Hmmm... I have a vision of a script that dynamically converts CSS counter declarations to deprecated markup attributes (which still work in the browsers). Page validates, but ultimately does the right thing. Time. I need more free time!

      --

      - I don't need to go outside, my CRT tan'll do me just fine.
  124. If 85% can't see them, what's the use? by tepples · · Score: 1

    And a lot of those CSS designs either fail royally in the 85% browser or require extremely hairy hacks to get them right in the 85% browser.

    CSS can do anything a table-based layout can do

    If 85 percent of graphical user agents get tables right but CSS wrong, what would you use?

    1. Re:If 85% can't see them, what's the use? by ttfkam · · Score: 1

      Which CSS Zen Garden designs are you referring to? I was under the impression that IE compatibility was a requirement.

      In addition, there are things that you can use to make IE act like a standards-compliant browser...or at least close enough to make complex layouts a lot easier. One of them that I like is IE7.

      --

      - I don't need to go outside, my CRT tan'll do me just fine.
  125. IE for Mac by tepples · · Score: 1

    Also note that users of IE4 and IE 5.0 (and 5.5) obviously aren't using Windows Update.

    If you look closer at their user agent strings, notice that some of them aren't even using Windows, let alone Windows Update. IE 5.x for Mac OS has its own set of bugs.

    1. Re:IE for Mac by ttfkam · · Score: 1

      Yes, but not only was IE Mac v5 more standards-compliant than IE Win 5.x, but its usage is rapidly being superceded by Safari. In both cases, CSS hacks are manageable.

      I know what you mean though. IE Mac has caused me quite a few headaches, but they are manageable. The real issue for me is that I make dynamic web sites (data from a database). Changing the markup is a lot harder than changing the CSS. Using CSS hacks doesn't bother me anywhere near as much as using markup or back-end logic hacks. CSS is a separate file. It's a technology end-point. Unlike HTML or server-side logic, there's nothing downstream of CSS. It can safely be considered throw away code. If I have to rewrite CSS because the current state of browsers changes, no big loss. If I have to substantially change the markup, pain ensues because a change in one page view doesn't necessarily mean I remember that another page view has the same problem.

      But then again, that's my experience. CSS takes practice, just like tables hacks did eight years ago. At this point, I strongly believe that I can make any layout that's possible with tables and make them with clean, semantic markup and CSS. ...and I can make it work for >90% of all browsers. For the rest of the browsers, I can simply omit the stylesheet. Netscape 4 gets a plain but readable page, but that's it: graceful degradation. Then again, I test my pages in lynx and links. I code for accessibility and 508 guidelines. I'd test text readers for the blind if I had access to a free one.

      After going to CSS, using tables for layout is painful to me. It's the kind of thing that's difficult to explain to folks who haven't abandoned tables yet. It's similar to the feeling some Photoshop artist had when layers were introduced. It was hard to explain and doubly hard to explain why it was such a good idea especially to people who had honed their graphics skills without them. Once you use them for a while though, going without is basically unthinkable.

      --

      - I don't need to go outside, my CRT tan'll do me just fine.
  126. Two things Strict lacks by tepples · · Score: 1

    Do you like Strict? If so, I have a question for you. What's the Strict way to express a list with five items, whose first item is numbered 6, and whose last item is numbered 10? (<li value="..."> is deprecated.) And what's the Strict equivalent to Transitional's <a target="...">?

    And here's why we're not going to see application/xhtml+xml any time soon.

    1. Re:Two things Strict lacks by Anonymous Coward · · Score: 0

      List numbering is a presentation detail covered in CSS2 (which is being revised, and will be re-released as CSS2.1).

    2. Re:Two things Strict lacks by tepples · · Score: 1

      List numbering is a presentation detail

      I haven't managed to understand such reasoning yet. If the tracks on a given CD run from 13 to 24, and the CD is remarkable because it starts on track 13 rather than on track 1 like most other CDs, then how would numbering the track listing starting at 13 in a page describing the CD be a "presentation detail"? Or should I be using something other than an ol element for such a list?

  127. IEEEEEEE! by tepples · · Score: 1

    Instead, you should think about what you're actually making -- a list of links. Therefore, use

    • instead, and use CSS to make it look like the row of |-separated links

    And chances are that if you do something the "right way" with CSS, then then IE 6 will go and fuck it up.

    1. Re:IEEEEEEE! by mrchaotica · · Score: 1
      I'm pretty sure even IE6 can handle this particular bit of CSS. At least I would hope so, since IE 5.2 for Mac can! Here's what I'm talking about (and yes, it should be in a separate .css file, but this way it's self-contained):
      <ul style="display: inline">
      <li style="display: inline; padding: 3px 15px">foo</li>
      <li style="display: inline; padding: 3px 15px; border-left: 1px solid #000">bar</li>
      <li style="display: inline; padding: 3px 15px; border-left: 1px solid #000">baz</li>
      </ul>
      Of course, it's not as if I came up with this myself; I got it from A List Apart
      --

      "[Regarding the 'cloud,'] ownership was what made America different than Russia." -- Woz

  128. Has anybody tried a pure XHTML/CSS site in IE? by tepples · · Score: 1

    Go look at CSS Zen Garden. Then go look at the source code and all the hairy hacks to work around the deficiencies of the 85% browser.

  129. Re: DataBase's consult? by Anonymous Coward · · Score: 0

    ...
    SELECT * FROM my_dogs
    ...
    </script>

    if different from

    <blockquote>
    ...
    SELECT * FROM my_dogs
    ...
    </blockquote>

    Embedded images:

    WdRERscsdfD
    ...
    Gh8Xds=

    open4free © : XHTML 2.0 for FireFox-1.0.0?

  130. DataBase's consult? by Anonymous Coward · · Score: 0

    ...
    SELECT * FROM my_dogs
    ...
    </script>

    if different from

    <blockquote>
    ...
    SELECT * FROM my_dogs
    ...
    </blockquote>

    Embedded images:
    <mime img=my_doc.png>
    WdRERscsdfD
    ...
    Gh8Xds=
    </mime>

    open4free © : XHTML 2.0 for FireFox-1.0.0?

  131. DataBase's consults? by Anonymous Coward · · Score: 0

    ...
    SELECT * FROM my_dogs
    ...
    </script>

    if different from

    <blockquote>
    ...
    SELECT * FROM my_dogs
    ...
    </blockquote>

    The embedded images are useful to make only-page-xhtml:
    <mime img=my_dogs.png>
    WdRERscsdfD
    ...
    Gh8Xds=
    </mime>

    open4free © : XHTML 2.0 for FireFox-1.0.0?

  132. In defense of frames by tepples · · Score: 1

    Jakob Nielsen wrote about frames and iframes: "All of a sudden, you cannot bookmark the current page and return to it (the bookmark points to another version of the frameset), URLs stop working, and printouts become difficult."

    The bookmark problem happens with POST-driven interfaces as well, such as many webmail apps. And how would one create Google Groups without frames?

    "Even worse, the predictability of user actions goes out the door: who knows what information will appear where when you click on a link?"

    If there are two frames side by side, one for a list of messages and one for the message, what's so unpredictable about that?

    About the deprecation of <li value="...">: read this.

  133. No reference implementation by Anonymous Coward · · Score: 0

    Actually, a far bigger problem I find is that it's not obvious (and is sometimes ambiguous!) from the spec what various combination of CSS attributes should do to output. Because of this, a Web designer or developer must test their work in as many browsers as they wish to support, or face unexpected results.

    With a reference implementation, a designer could test their work against that implementation, and see how it should render. If it differs from a given browser, they can tell the browser authors what the problem is, and how the reference implementation renders it, rather than arguing over ambiguous semantics.

    (The biggest problem is that the only standard on the Web which matters is "Works in IE." You cannot produce a page you wish to have viewed by a large audience unless it "Works in IE." Ultimately, that means any page done for or by a business will have to "Work in IE." IE doesn't support XHTML, nor CSS 2.1. Sucks to be the Web.)

  134. Er, that's Python. by Anonymous Coward · · Score: 0

    Semi-colons are optional - you only need them if you want multiple statements on one line.

    There's neither closing nor opening brace, nor BEGIN and END keyword equivalents. The indenting is all the compiler needs.

    I don't know about all language compilers, but one at least does just that. (As well as being a language with very few keywords, making it even easier to learn and use.)

  135. No, you don't, they've answered that by Anonymous Coward · · Score: 0

    http://www.isolani.co.uk/blog/standards/CostOfSupp ortingNonStandards

    The IE team is not working on standards compliance, nor do they have any plans to.

  136. Re:Has anyone tried coding a site in pure XHTML/CS by Anonymous Coward · · Score: 0

    You mean your homepage? You're using a table to layout the browse images... I'm not a rocket scientist but

  137. They should only add CSS by Domo-Sun · · Score: 1

    Slashdot doesn't need to switch to XHTML simply to use CSS. They can add CSS without changing much of anything, in much the same way I use my User Stylesheet in Opera, along with slashdot's Lighter version in Slashdot preferences, available when logged in.

    1. Re:They should only add CSS by space_man51 · · Score: 1

      Hmm, I never tried the "Light" mode. It's one step in the right direction, but there isn't enough semantic markup (meaning) to have complete control over the presentation in CSS.

      For example, if there was a <div class="slashbox> tag or something like that around every slashbox (and maybe a <div id="slashboxes"> around that whole section), then it would be possible to do things like making the boxes float on the left/right, etc. Similarly, you could take the menu that is stuck at the top of the "lighter" page, and make it vertical. Or maybe you would like it always be visible, and float on the right.

      If the Slashcode was fixed up to be at least proper HTML 4.01 Transitional, it would work in both old and new browsers well. There wouldn't be any need to have the "lighter" version. Of course, if someone is going to fix up slashcode to generate proper HTML, might as well go for XHTML 1.0 Transitional. The real difference is you have to close all your tags; what a tragedy :)

      I am not saying that this is a grave bug/error in Slashcode, but it's something to work on.

      --
      Anton Markov
      *** Linux - May the source be with you! ***
  138. IE7 is your friend by ttfkam · · Score: 1
    I've used meyerwebs seashell idea to create a beautiful CSS site for a recent client only to find it broke in either IE6 or IE5.5 depending on which hack I used. After spending an few hours trying to get the design to function I made a hybrid tables/CSS design which took less time in total than trying to fix up the CSS hacks for IE. Maybe I'm just bitter.

    I still feel that it takes a lot of extra time to get a CSS layout working properly in moz and IE and time is money.
    IE7 is your friend.
    --

    - I don't need to go outside, my CRT tan'll do me just fine.
  139. 3 columns by ttfkam · · Score: 1

    Here's how I do it:

    Rule #1: Avoid floats unless absolutely necessary
    Rule #2: Avoid nested floats...period
    Rule #3: Side bars get position absolute and have width specified in ems
    Rule #4: Main content area is given margins (or padding, depending on your needs) equal to the widths of the left and right content (in ems)
    Rule #5: Make sure the content area is lower (z-index) than the sideboxes
    Rule #6: Write for Mozilla/Opera/Safari first and port to IE later
    Rule #7: Use IE7 to help port to IE instead of raw CSS hacks

    Works for me.

    --

    - I don't need to go outside, my CRT tan'll do me just fine.
    1. Re:3 columns by vrt3 · · Score: 1

      OK thanks, I'll keep that in mind.

      --
      This sig under construction. Please check back later.
  140. Note to the moderator by Anonymous Coward · · Score: 0

    I meta-modded you unfair. This article is about XHTML, and the posted site is strict compliant.

    http://validator.w3.org/check? &uri=http://www.gnaa.us;verbose=1

  141. Re:No, HMTL is really, really broken by NulDevice · · Score: 1

    Okay, you may have some points, but my point is this:

    HTML is not easy. Not if you want it to work. Hence the proliferation of monobrowser sites, sites that are broken in many ways, and the annoying excess of marquee tags out there.

    I've worked with a number of really big companies, with lots of people who have to develop content for the web. The vast majority of them do not bother to wrap their brains around HTML at all, choosing instead to hit "save as HTML" in Word or...ugh...frontpage.

    When it comes right down to it, things are going to stay that way. People are going to use editors far more often than they're going to use vi for their markup (unless, of course, they're a /.'er). Stylesheets as a design concept are no big deal to the average user - Word's supported them for ages. If the editor supports XHTML and CSS natively, then this is a step forward to having non-broken websites all around. Websites that I can properly browse from my phone. Websites that comply with section508, so my incredibly nearsighted cousin can see them. As it stands with current HTML these things are quite doable, but not always intrinsically obvious to an average user (or even apparrent). A move to XHTML and CSS may not democratize markup the way HTML was supposed to (and, in my opinion, failed miserably), but it will democratize browsing, which is a far larger audience.

    --

    ----
    "I used to listen to Null Device before they sold out."

  142. HTML/XHTML1 syntax is too ingrained by tepples · · Score: 1

    Use verse elements with no margins and padding. Make them children of stanza elements that do have margins.

    I think I understand what you're getting at, lines themselves being elements rather than separated by elements, and stanzas being paragraphs. But what are the new elements called in XHTML 2, or do we need a separate XML application for this? And how will we re-educate amateur web authors to use the new markup?

  143. Re:A model XHTML site check by the W3C by Anonymous Coward · · Score: 0

    Not as funny as the Firefox parody.

  144. If you know anything about software development by fw3 · · Score: 1
    You might avoid drawing a comparison between (procedural or other) programming languages and *formatting* languages.

    They are not meaningfully comparable.

    --
    Linux is Linux, if One need clarify their dist: <Dist>/GNU Linux
    bsds are of course just BSD