XHTML 1.0 now a W3C Recommendation
thehermit writes "New info on the W3C's Web site as XHTML 1.0 became a W3C Recommendation on Jan. 26. The specification now features a single namespace, and takes a more cautious approach to Internet media types, following feedback from W3C members on the previous version of the specification. " W3C notes that "XHTML 1.0 is the first step toward a modular and extensible Web based on XML". The full XHTML spec is also available.
Ummm, haven't you noticed, the source is OUT?
Great.. Now that you've told the first posters that they can have advance shots at first posts, they inevitably will. The rest of us have been keeping it under our hats, why didn't you?
.sig: Now legally binding!
It's a sad day when reality is marked as 'flamebait'. I guess there aren't any professional web developers moderating lately. *shrug*
Whatever.
Fine. Pick nits. I was quoting Tim Bray. I know what XML is and isn't.
Matt. Want XML + Apache + Stylesheets? Get AxKit.
It's not backwards compatible with HTML
I think it is backwards compatible enough, at least if you use the 'transitional' DTD. It isn't that hard to convert old sites to it.
And anyhow, the idea here is that by starting to enforce syntatically correct mark-up, the browser engines can be a lot simpler and so browsers can potentially be less bloated.
Old (existing) browsers can't parse it properly
They can't? Why? If you follow the backwards compatibility guidelines that are provided in the appendix of the spec, you shouldn't have problems with existing browsers.
As a real-life example, there is a site my girlfriend built last weekend for the local Kendo society at http://kendo.greywolves.org. That site is in XHTML, and I believe older browsers will mostly have problems with only the PNG images there.
Compared to what general XML can offer, it's a pretty lame DTD
That is not the point here. The point here is to allow gradual transition from legacy SGML-based HTML to te XML-based one. And anyway, it is possible to put parts of a XHTML document to follow another DTD by using the XML namespaces. This way you can use any XML DTD you want, and still stay relatively compliant with existing browsers.
There is a lot hype around XHTML, but I think it really is a good idea (and standard), even while not everything that people write about it is correct.
And as to who will be using it, I'm doing all my Web development work with it even now, and my employer is also slowly transitioning to the standard...
I hope this helped at least slightly with the question...
--
Midgard Project - Open Source CMS
A hairpiece? Really? I couldn't tell (:-) )
Um, no. How do you e.g. assign context to a CSV "element"? In such a way that should the "element" be moved in the file, the context remains? Is a CSV document readable to both a machine and a human reader? XML gives you that and more.
I think I'm starting to understand. Kinda. This is for people who want like HTML but want some of the xtensibility that XHTML provides. Hmm.
I can think of a lot of reasons why someone would stick with HTML. I can think of even more reasons why someone would move to various XML schemas/DTDs. The XHTML is kinda of a weird in-between hybrid that doesn't satisfy any particular set of requirements over and above what XML or HTML would provide.
or even better...
#!/usr/bin/env python
import string, sys
for line in open(sys.argv[1]):
print string.split(line, ',')
- The code is easier to read and debug
- Web browsers and parsers can understand it better
- In the future, your XHTML code will be easily viewed on cell phones, Palm Pilots, web-enabled waffle makers, etc.
- You can include other types of XML in your document
And all you have to do is:- Include a DTD
- Put quotes around attribute values
- Lowercase your tags
- Self-close some tags like <img/>
That's not that bad. Though no current browsers understand a XHTML document as XHTML (besides Amaya and I guess Mozilla?), you can still use XML parsers that understand it. It's a good way to get a feel for things. My parser (Mino, at http://mino.portaldesign.net) understands XHTML and will indent it nicely when outputting to the browser. It'll have tags for SQL and XSLT soon. If you want a brief overview of the changes in XHTML, visit Gelicon.com's XML section. It should help you get started.You should learn to be nicer. Your manners suck.
TipOfTheDay: Use tags like <br /> instead of <br/> when writing "tight" HTML, otherwise older browsers choke on it.
I never thought of that. I thought it wasn't well-formed XML if there was a space before the backslash. Is that an intentional feature of XHTML/XML, or just a workaround to make XHTML display well on older browsers? Am I breaking my XML by doing so?
Jay (=
He has done nothing for me...let him rot in Jail...
That's what they want you to think...
WHAT?!
XML is the best thing since sliced bread! And, no this isn't a troll, I mean this! Hard to parse? What are you talking about?
First of all, YOU shouldn't be parsing it. I don't care what language you're coding in, you'll probably find that someone else has taken care of that for you. I use Perl primarily, and switch between XML::DOM and XML::Parser, both of which handle all of the dirty work of chewing on the tags and characters.
As I mentioned in the story on the Slashdot code release, I have a project: Iaijutsu: Open Source Content Management and Web Application Framework. And this project makes extensive, pervasive use of XML.
- The documentation I'm writing (other than POD in the Perl modules) is being done with the DocBook DTD, which lets me write in one common format and publish in HTML, Word doc format, etc... all from one document.
- Content classes may be created using a hybrid Perl/XML format which defines the class' properties, methods, template accessors, and various other aspects.
- Objects in my system may be imported and exported in a simple, self describing XML format listing all of their properties. You can write it by hand easily in Textpad or Emacs to make lots of objects easily...
- XML is used to syndicate news and headlines from other sites, like the service Slashdot offers in the backend. I've written content classes in Iaijutsu which download these syndication files to collect headlines. And, I believe, Slashdot uses these files to make slashboxes.
yes, I *do* write import/export routines, everyone still uses comma-delimited or dbf files, occasionally Access files tooThen you've REALLY missed the boat. XML is EASY. Screw comma delimited, I've actually found it easier and more maintainably elegant to write quick Perl scripts which use the XML::DOM, than to hack out a CSV parser. Hell, I even have Oracle DB servers spewing XML streams at me to handle.
XML is far from failed. Go back and try it again. As for XHTML, I don't know that it will ever be truly adopted, but if it catches on... we could write web browsers and web service consumers in a fraction of the time and code.
This is good. But I didn't see any notion of referential integrity in the spec.
The biggest problem with the web is that we will still have to manage links manually. I hope someone takes the bull by the horns and figures out how to eliminate (or at least mitigate) the "404 Not Found" problem. Perhaps that now-open-source Udanax code could be mined to turn up some good algorithms?
Another good idea (but really an unrelated spec) would be a file system redirector architecture that enabled all documents (per user preference, of course) to vend docs automagically via an HTTP or "blocks" server.
.............. kris
"I thought I could organize freedom. How Scandinavian of me."
Well.. since you seem to want compact code...
,'s
while() {
@arr=split(/([^\\]\")?,([^\\]\")?/); }
finds , delimited stuff that is surrounded by quotes if present, delimited by
but if this was true csv, the ?'s would disappear... it would have to be surrounded by quotes...
---
-
ping -f 255.255.255.255 # if only
Think about it: I can write a page that links to one of your pages, and then you can just move it. There's nothing I can do to stop you.
The only way that I can think of to enable distributed referntial integrity is to have a totally closed system.
Announcing the Ecsponent Message DTD that can be accessed at: http://www.ecsponent
Hopefully it works as well -;@}=.
Dean Swift
Ecsponent - The future of ECommerce
anyone know of any tools similar to SAX and DOM to interface to XHTML ? This would be significantly better than XML since its based on HTML 4.x as opposed to XMLs loosely defined structure.
> Reread the post - I said that XHTML allows
> you to extend the tagset without breaking
> the standard - I never mentioned older browsers.
Ah, my mistake, you were talking about the standard, I was talking about something useful (implementation). My mistake.
> Invented the goddamn web, fool.
> He set up and runs the w3c in order to
> maintain its sane development.
Gosh, colour me impressed. Did he invent those cool 'Internet monkeys', too?
Whether or not Tim Berners-Lee is a visionary and/or a genius is beside the point. XHTML isn't going to come and save us all from the horrors of HTML, simply because it CAN'T. People don't tend to upgrade their browsers very often, and many times, they CAN'T. I know people who run old Macs who can't even get the Netscape v3 INSTALL program to run, much less the browser itself, simply because of limited resources.
The whole point of the web is to connect people, despite what platform they're on, and that includes OLDER machines, too. Yeah, it'd be great to be able to depend on everyone having 1024x768 with true colour, the latest javascript & JVM, all the fonts in the world, plus completely perfect implementations of JavaScript, Java, and CSS, but it ain't gonna happen. All the footstomping and crying about how big a visionary and genius Tim Berners-Lee is won't change that.
check you logs and tell me how many browsers that don't support frames hit your sites . . .
1. Bandwidth to send a few dozen quote marks
2. Bandwidth to send a stupid background image
3. Hours of developer time spent building cross-browser code
XML will not just eat up bandwidth, it will enable new forms of data exchange and interaction, any of which will add far more dollar value than the scraps of bandwidth saved by tag stripping.
HTML is yesterday's Web. XML is the future, and it demands some adjustment.
-cwk.
But I wouldn't be so grim about it. Reality has always lagged standards, but it'll come around eventually. In another year or two we may actually be able to write off Netscape 4-series browsers...
-cwk.
If end tags and quotes around attributes make any significant difference you have no content.
/mill
Remove the pretty pictures if bandwidth is a problem.
Hey, idiot, most of us who care about our HTML have been using quotes around "everything" for about 5 years now. It simply looks cleaner and it's more consistent.
I'm involved in the W3C working group, so maybe I can answer...
:-) If a document declares itself to be HTML, normal (lenient) processing will take place. If a document declares itself to be XML, then strict processing will take place. When authors are unable to view malformed documents, that forces them to fix problems at the front end, which is A Good Thing.
XHTML, like all XML, is *required* to be "well-formed", which basically means matched tags, no missing quotes, etc. The XML 1.0 Recommendation *requires* implementations to stop normal processing of an XML document that isn't well-formed. In short, if it isn't well-formed, it isn't XML.
Browsers will eventually get smart about this. Mozilla already is.
Anon on purpose. Moderate accordingly.
Posted with M13
XHTML is specifically designed to work in existing browsers if you follow the considerations in Appendix C of the spec. You can code your pages in XHTML now and they will continue to work. Good luck trying to do a cross browser layout using only XHTML-strict and style sheets though.
EOF
No, I'm serious, my sig is my sig and that won't change, sorry if you have a problem with it.
But my question is, What is the point of XHTML really? I mean we have a multitude of extensions and protocols already which handle basically everything. I think they just need to update the HTML format.
Nathaniel P. Wilkerson
NPS Internet Solutions, LLC
Nathaniel P. Wilkerson
www.haidacarver.com
Check out this guys user info, he's a freaking Karma Whore.
Nathaniel P. Wilkerson
NPS Internet Solutions, LLC
Nathaniel P. Wilkerson
www.haidacarver.com
Unless you've got an ancient browser, like IE2 or NN2, any web site's XHTML will work as well in your "existing" browser as HTML would ... if it looks at it as HTML, which it probably will. The HTML spec always allowed lowercase tags, and almost all tags allow the matching end tags (which XHTML now requires).
The "really ancient browsers" incompatibility relates to empty tags like "br", "hr", "link", and so on ... if the browser is that old, it probably doesn't understand the notational convention of "<br />" (space before the regular XML empty element terminator -- hope that shows up!).
The reason for XHTML is so that tools have a more solid target than HTML can ever be. It's easy to get a good XML parser nowadays, and validators are getting more common (especially for Java programmers). That means that generating valid XHTML is something any tool can realistically do, so the bizarre hacks can start to fade away over time. Not quickly enough for me, probably. Browser bloat is with us for a long time.
Best possible result: enough XHTML starts to show up that people start discarding all those really ancient browsers. NN3 is current enough, but designing a website to deal with older code is just plain awful.
Not too many, that's for sure. But even that's not the entire issue with frames. There's full and partial, good and bad, as with every feature.
Let's, for example, look at Navigator 2 (yes, lots of Nav 2 people still around). If you make a site that uses frames, if you try to do something fancy, you might get bitten by the inability to make 0 pixel margins. Might get bitten pretty badly, and have lots of cute scrollbars show up. I see this all the time on the web by developers who don't know about that (or don't care, or don't have time, etc.)
And then there's different WAYS of implementing this, since it's not standard (margins, that is), IE uses 'topmargin' & 'leftmargin' - Navigator, because Netscape is a stupid company, decided to implement the same feature (much later) as 'marginheight' and 'marginwidth'. Lovely. Okay, so we waste some bandwidth by using both. Not that big a deal, as both seem to work.
Then we come upon BUGS. Okay, lovely, now we get to see that every version of Navigator from 2.x through 4.7 has a bug with fixed-width frames (specify size in pixels). Namely, it doesn't work. This can be very bad if you're depending on it to work. After MUCH harassment, I finally got them to fix it a few builds ago in Mozilla. Oy.
So, where does this leave us with the previous discussion? Namely - sure, you can add features, and claim they're backwards compatible, but that doesn't mean it's going to work the way you want them to, or when you want them to, or with all the browsers you want them to. XHTML is likely a great idea, but claiming that it's going to be backwards compatible is, I think, a big mistake. Maybe we paraphrase the Hitchhiker's Guide to the Galaxy phrase, "Mostly Backwards Compatible". Which, of course, is worse than Compatible or not. This leads to a real hodge-podge of crap, and is among the many reasons why there's no program out there capable of creating HTML that's multibrowser (as in platform and generation) compatible.
Good thing I prefer a text editor, anyway.
I'm also on the HTML WG, and beg to differ! We'll have to get Steven to add this to Friday's agenda. :)
We left out the media type text from this PR, so your last paragraph doesn't describe anything the Rec says if by "declares itself to be HTML" you mean "text/html" rather than a DOCTYPE. In fact, the main reason we removed this text was because we were unable to come to concensus on whether it was right for XHTML to be described as [text|application]/xml]. The main (IIRC) reason for that was because of the overlap between a-href link semantics and Xlink, and whether "text/xml" refers to XML 1.0 or XML-some-future-version-with-Xlink. Doing so may require future XML processors to support existing HTML linking semantics.
I'll have to check the laptops tomorrow to see who's got M13 running. :)
It's not nit-picking. Theres a huge difference between the two. Stop spreading FUD...
I ran http://slashdot.org through the validator (http://validator.w3.org), and it puked.
:-)
The sad part of this is that this is common among almost every major website. Nobody follows the standards.
I hate the web
Knowing what M$ did to CSS, I wouldn't be surprised some idiots within the W3C hijack XHTML and get a patent from USPTO.
ALL braces should start on new lines. If you look at handwriting, you'll notice that consistancy is what makes something look 'nice' and readable. And that recommendation is NOT consistant. it's horrific. consistency ! what consistency is there to find between a function definition and a block of code or structure definition ? 8 character tabs are a UNIVERSAL constant, try breaking this, soon enough will your code look crooked. you should probably not use tabs for indentation anyway. Real life editors know the difference between tab size and indentation steps.
Abolutely right ! TAB SIZE IS 8 FOR EVER you can indent to anything you want, but NEVER EVER CHANGE TAB SIZE
Directories do this all day long. It's just a protocol implementation.
The question is, when is this mechanism going to emerge, and how do you get people to use it?
"I thought I could organize freedom. How Scandinavian of me."
You are really dorky.
If you troll, I bet they're dumb as can be.
It frightens me... that you have nothing better to say than this. Come on lets get a "real" response. I want some knowledge, not some lame excuse for a post that is supposed to be funny. Better luck next time.
Nathaniel P. Wilkerson
NPS Internet Solutions, LLC
Nathaniel P. Wilkerson
www.haidacarver.com
A csv parser?
#!/usr/local/bin/perl
my $delim=',';
my $size=3;
while()
{
chop;
my @a=split($delim,$_,$size);
print $a[2],$a[0],$a[1];
}
---
-
ping -f 255.255.255.255 # if only
That's exactly what I wanted to know. Thanks.
If you can't figure out how to mail me, don't.
For linux tips: http://www.linuxtipsblog.com
As part of the "suite" of XML standards, XLink is a standard for the management and declaration of more advanced linking features.
I'm not sure if you ever took a look at HyperG, an experimental hypertext system from a few years back, but it had an excellent link management system. Dead links didn't exist by design, and there was an excellent link navigator that showed you the structure of links, not just the page text.
Spoken like someone who, I can only hope, has never done web development for a living.
:)
Anyone who tries to use these things that the W3C says won't break on older browsers is in for a rude shock. I'm sure XHTML will be the same as CSS was, and JavaScript.
1) There will be bugs in implementation. Things will break, even if (or especially if, in the case of MS, most likely) you adhere to the W3C standard.
2) Things won't be fully implemented any time soon (yes, MS, I mean you. You, too, Netscape/Mozilla. You don't think Mozilla is going to be able to implement this right away, do you? Get a clue.)
3) Trying to use these new standards for anything useful means you're likely going to try to depend on them, which means you're going to be doing things that can't BE done in the older standards (else why would you be using the new one?). Once you do this, you lose functionality, or more likely 'break' on the older browsers.
Unless you're willing to make your server detect what browser is hitting your page, and spit out a version specifically for that type of browser, thus defeating this whole nonsense of 'it won't break existing browsers'.
Don't be so naive. The W3C isn't made up of people who have had to make websites for a living under normal conditions, so they've little idea of what's going to work and what won't, so they've no hope in hell of ever coming up with any standard that's going to be backwards completely compatible - BECAUSE IT ISN'T POSSIBLE. They think anytime they come up with a new recommendation, it'll be implemented immediately, and bug-free, too, by gosh, and never realize how bad things can get when things aren't implemented completely, and/or are implemented badly (say hello to CSS!).
IMO, anyway.
Or are you really that stupid?
Look around your desktop. That is, your real one, not the one on your computer. If it's a total mess but you can find everything (like any self-respecting user), then you're good to go. Same goes for HTML. If _you_ can understand it, then why should you care that other people need to do the same?
(kill your television. get some exercise.)
Reread the post - I said that XHTML allows you to extend the tagset without breaking the standard - I never mentioned older browsers.
Frankly, if you've read any of the abundant documnentation available you'd know what I was talking about.
Once again, XHTML allows you to extend the tagset while still staying within the XHTML standard.
What do you know about FreeBSD and its administration. I looked over your resume and it looks interesting.
Nathaniel P. Wilkerson
NPS Internet Solutions, LLC
Nathaniel P. Wilkerson
www.haidacarver.com
XML is essentially a simplified version of SGML. One of the simplifications is that every element which is not empty must have an explicit end tag. In SGML one could use the - and o notation to indicate whether the start and end tags, respectively, are required or optional. Thus, for example: is the SGML definition of the paragraph element in HTML 4.0, with the O specifying that the end tag is optional. I don't think the move to XHTML 1.0 will have any significant effect on existing browsers, as it is entirely backward compatible with HTML 4.0.
That's partially right, namely about that future being envisioned: cut the bloat associated with needing to handle any old garbage that shows up at the client.
But it's also wrong. Extensibility is the "X" of XML; XHTML added nothing to XML's extensibility. Except to standardize one more 'vocabulary' of elements and attributes. That's useful; everyone knows the HTML vocabulary.
The idea is pretty much like this. XHTML 1.0 has defined the vocabulary of HTML (tags and attributes), and its namespace. An upcoming version (XHTML 1.1 is its current codename :-) will modularize that, so you can have a "text" module or a "table" module or a "list" module.
So that when you need to define a custom XML document type to fit into some custom application, with PDAs and cell phones being the classic examples, you can pick and choose: Text and lists may be plenty, you don't need bibliographic citations or definitions. BUT you do need your own particular biz-to-biz vocabulary addition; maybe you're providing catalog entries, and the descriptions are simple text but there's all sorts of ways to define fields to describe pricing options, ordering, stocking, etc.
Or another way to look at it: you're going to be able to throw away HTML tags you don't need, and use only the ones you care about when you create new kinds of documents.
That's one hundred and eighty degrees away from the "extend HTML" model. It's a new model for how information will show up, as part of the "semantic web".
After reading the linux kernel recommended coding style i'm absolutely horrified.
starting braces at the end of lines...except for function declartions? yes ofcourse, this is cause functions can't be embedded. talk about MUNTED.
And 8 character tabs? geee....he talks about saving lines by not having braces take their own lines,b ut talks about how saving horizontal space is irrelevant.
ALL braces should start on new lines. If you look at handwriting, you'll notice that consistancy is what makes something look 'nice' and readable. And that recommendation is NOT consistant. it's horrific.
They used to, back in the days of HTML 2.0->4.0. I think it's a bit different these days, since the CSS/DOM people have built quite a big bunch of standard which is way beyond what most browsers support, and the browser writers are playing catch-up. Of course Microsoft are adding all sorts of weird extended style-sheet stuff, but I've never seen any of it actually used, probably because no-one really understands it.
Sometimes. I think in more cases, they just don't really know standards are even there to be followed. I think most content on the web is hacked up by people who've learnt HTML from reading other people's HTML, or from a woefully inaccurate "HTML for Tossers" book. Or they're using FrontPage, God help 'em.
You're right, of course. :-(
But ten years from now, we'll fantasise that politicians were honest, prices reasonable, Netscape implemented standards and JavaScript ever worked. :-)
--
This comment was brought to you by And Clover.
Could the post you just replied to be any more obviously trollish? I don't think so.
Why everyone is trying to use XML for every possible application while XML itself is not very well "standardizable"? It has no predefined way to attach any formal (or even not so formal) description of semantics of the data to DTD -- I would understand if I was able to attach pieces of, say, portable C code into "the definition", and say that everyone who wants to support my format can compile code, extracted from my "definition" using some standard parser/converter, link it with standard parser library, feed the same DTD to that parser, and the result will be a "skeleton" of compliant with my standard input/output/display/... procedure. But right now we have only trendy-sounding TLA for simple "open tag -- recursion -- close tag" format that isn't much better than anything else, but differs from any other format in rather spectacular way -- no one so far produced completely compliant and usable parser for it in compiled language (no, gnome-xml isn't compliant -- unicode conversion from charsets, other than hardcoded in the source, shows its ugly head).
I understand the need for standardization. I understand that comma-separated values or plain key-value list poorly represent complex nature of the data. I understand that HTML standard committees royally screwed up under the pressure of companies. I understand that in general text is cheap. I understand that XML at least provides some means to show structure and attributes of the data (but so did RFC-822 + MIME more than ten years ago -- just with a bit more waste of space). But sorry, this feeble attempt of meta-standardization just doesn't _do_ enough to justify itself now. Semantics of the data still should be defined in English, and quality of definitions that I see declines rapidly. It helps with displaying that data, but displaying is a microscopic, almost unnoticeable piece of any serious data processing. Semantics still has to be handled by "manually" written, rewritten, ported everywhere and debugged programs that actually are supposed to know what to do with data. Programmers still can't derive any useful information about the data nature from DTD, and should rely on vague texts and their interpretations of it, so the effort, XML saves (writing a parser for arbitrary format) is a big fat zero compared to the real work programmer still has to do to make his program work. No way to do formal proof of anything except that data is formatted as it's supposed to. No way to derive testing procedure for implementation of the processing program. No anything that actually helps programmers to write a useful program and make sure that it works.
Parsers are written in the languages that are nice for demos and small web sites, but don't scale on anything large (what is it, a conspiracy of hardware manufacturers?). I can churn out XML-like meta-standards at the rate ten per week, but since all of them will share the same flaws, why would anyone care? Why do we see a lot of "uses" for XML, but no real progress in improving it in the most natural way -- standardizing the linking between format and semantics? It's possible to keep XML as it is -- it's good enough to define some "canonical" form, the data is (or can be) kept, but without a useful way to handle semantics it's dead.
I am afraid that this situation is created on purpose -- there are already some formats of data that have semantics attached. The problem is, they are proprietary, tied to platforms, languages and architectures. They have semantics, however the formats, they use for data exchange are unnecessarily cryptic or hard to serialize to the stream of bytes. By keeping proprietary "guts" with algorithms, object models, transaction-level protocols and adding "open" formatting of the data vendors get the best of the both worlds -- no one but them can make any sense with the data (both implementation of data handling and the objects-handling engine itstlf are closed-source -- say, COM), but they look "open" and "nice".
Contrary to the popular belief, there indeed is no God.
0,5,"Luigi ""scarface"" McDowd, Li McFadden",12,12,true
But now you also have the potential for error conditions such as meeting a quote in an unquoted string ( ,abc"def, which you can treat as not an error if you wish) or a quote in a string after an opening quote where the quote is not followed by a comma or a second quote (,"abc"def",) or strings with unclosed quotes (,"abc,asdasd,123,) which generally break things pretty badly.
Your snippet may work for quick and dirty hacks where you know the file format will be resonably behaved but it is not suitable for production code (unless you're producing for Microsoft).
Try looking at the output from Excel sometime.
That's not to say that XML is necessarily better as I've never really used it just that your exmple doesn't hold water.
Rich
Who cares? They wouldn't bother with all the first post crap if your type didn't make such a big deal out of it.
jesus im so lame i dont even preview. stick that in your skull and fuck it.
It's braces actually ;).
...for some reason code looks all sloped with braces at the end.
;)
;), it's prolly around 4.
I used to like putting braces at the end of lines - java convinced me of that - for a while. i went back to C++ and now i always have braces on their own lines. IMHO it's tider
My reasoning is that braces have nothing to do with the the code on the line, a brace simply should be used to identify a block, and as such it should start and end on the same indentation level.
And yes, I probably will be flamed to hell
I normally use what VC++ gives me for indentation too
Ugh! While I applaud efforts to bring more standardization to the Web I dislike the idea of forcing things like closing tags and quotation marks where they aren't needed.
Granted there are people out there who live and die by following standards, but closing every tag is something I don't want to deal with. When you're running a large site that receives millions of accesses daily shaving off a few extra bytes from pages can make massive bandwidth savings.
Ya, ya..DSL/Cable modems are more common and they enable great things, but anything that forces us to use more bandwidth than we have to in the name of "standards" seems silly to me, especially when most of America is still on 56k modems (not to mention the rest of the world).
I expect some Holy Hand Grenades to come my way after this one, but I've seem what non-standard trimmed up code can do and it saves time, money, and most importantly mucho bandwidth. Go look at the source at Yahoo for good examples of stripping tags and quotes.
case_igl
But I don't see them specifically ruled out either, any more than in HTML 4.01. Sure, W3C don't want people using them, but there's nothing much they can do about that.
Yeah, I know it's very worthy and everything, but have you ever tried converting a table layout to CSS? It ain't fun.
First, of course, browser support is terrible; Netscape tends to break if you have the temerity to put a positioned element inside another positioned element, and it messes the whole page up if you try to mix CSS-P with tables to achieve some kind of graceful degradation on
But that's not what's wrong with the standard, obv. What's wrong is the total lack of flexibility in positioning. Normally with positioning you want to say things like "this element is to go 3 ems to the left of that element", or "this element should line up horizontally with that element and vertically with the other element". But CSS gives you only two choices: specify an absolute page position, or move the element a bit in some direction; you can't mix the two horizontally and vertically, and the latter option is usually useless anyway since it leaves an element-shaped hole in the parent.
This could nearly be half-workable, since you can achieve more complex effects by putting elements inside other elements. But Netscape 4 breaks so very, very badly if you try that the page often becomes completely unreadable.
So what you end up doing is either making every element absolutely-positioned to the page pixel, which is okay for the kind of fixed-layout fixed-width page which idiots write, but otherwise useless, or you end up writing a complete page-layout engine in several KB of JavaScript at the top of the page, slowing everyone down. And of course writing layout JavaScript that works with IE4+, Netscape 4 and the W3C DOM is a Sisyphean task. Oh, and of course people with JavaScript turned off are screwed.
To summarise: CSS is not up to producing interesting, dynamic-page-size layouts, and browser-supported CSS is not up to anything at all.
To summarise the summary: Style. Is a problem.
To summarise the summary of the summary: Aaaarrrrrghhh.
--
This comment was brought to you by And Clover.
As someone with years of experience in the marketing world, I am constantly amazed at the willingness of the W3C and other bodies to pollute the acronym space with their content free "TLAs".
Basic marketing 101 (and an undergrad course in psychology) would tell them that the normal person is only capable of remembering approximately 7 items of data in their short-term memory, but now we have to remember HTTP, HTML, XML, XSL, DTD, PHP, SSL, DSL, ADSL, ISDN, Perl, etc etc etc
This is a text book example of the tail wagging the dog from a marketing perspective.
I have been following the standardisation of the web for many many months now, but one thing has become clear, E-commerce will NEVER become popular so long as there are so many confusing acronyms involved. The guys in charge of marketing Linux absolutely MUST work to reduce the number of acronyms. One possible solution would be to merge those protocols which are not all that different. For example, why not merge XML with SGML ? (they could call it XSGML or SXGML or perhaps XMSGML), they seem to address the same problems. Or would that be too simplistic a solution for their pampered elitist ivy-league minds to comprehend ?
If something is not done URGENTLY, and I mean URGENTLY, Linux (and other more experimental derivatives such as FreeBSD) can never hope to be taken seriously as an e-commerce platform by the people who count - the accountants.
The miracle of Linux is that anyone actually runs it at all, considering one seems to require a masters in computer science to install it! (contrast this with NT4 which was so easy to install, we let our receptionist upgrade her own machine).
As usual my "open source" advice is free. Hopefully this time my valuable advice will be taken into account the next time the w3c smell an acronym brewing.
Finally, in conclusion, as an American, I am saddened that the Internet seems to have been commandeered by a European based protocol. Was America so short of talent we had to buy the HTML protocol from Tom Berners-Lee at CERN ?
Think of the security implications of the worlds strongest economy, running an e-commerce protocol developed by a foreigner from Socialist Europe. Remember the wall has not been down for that long. Who knows what kind of trojans might be lurking within the depths of these complicated protocols.
I am afraid I am behind Al Gore on this point, how can this be necessary in the home of smart corporations such as Microsoft and Intel ? The answer is the vast subsidies given by European socialist governments to fund development of the HTML specification.
The solution is clear. The federal government should mandate and strongly subsidise the use of Microsoft software for all US corporations involved in e-commerce. Only with a US-developed set of protocols can we be assured of the security of our transactions.
I have seen mail that says that when Microsoft Internet Explorer 4.5 for Macintosh tries to read an XHTML file with the declaration, it doesn't render it, but presents the page source. I believe this declaration is optional, unless you use something different from UTF-8 or UTF-16. However, Open eBook 1.0 specification (based on XHTML) from Microsoft requires it.
So it seems we have a slight barrier to making our code work well on all browsers? (We can make our HTML well-formed and it will still work for the most part on older browsers, though).
Has anybody heard if Microsoft (which has been pushing XML quite a lot) has issued a patch to MSIE4.5mac for this problem? Or has MSIE5 been issued for Macs?
Note that work on XHTML 1.1 (a modular version of XHTML) is proceeding and already controversy has erupted about its abandoning of frames and the "target" attribute.
Actually, I much prefer brackets at the end of a line (most java code is like that, IIRC). Just because you don't like something doesn't make it inherently wrong.
:)
I do think the 8 char tab space is kind of weird though, I personally only go with two, or whatever VC++ gives me
The sad thing is, you'll probably be flamed to hell and back, or moderated into oblivion for saying anything 'anti Linux' around here...
Amber Yuan (--ell7)
"and dear god does this website suck now." -- CmdrTaco
Whatever man, I see you for what you are: A tool of the oppressors, An agent, an astroterfer. You realize what's going on. But you, like CmdrTaco and Hemos, have sold out. It's a sad, sad day
Don't let them think you're free.
'Trolling guilds'?!?!, 'The Order Of The Thousand Inch Fan'!?!??!?!
:)
What are you talking about? And what do I have to do with it?
Are you trying to convince people that there's some kind of grand conspiracy amongst the trollers and that I'm someone involved in it?
Whatever, I'm obviously up way to late
Amber Yuan (--ell7)
"and dear god does this website suck now." -- CmdrTaco
Yes, you, LWM (aka ell7), with your MS-HTML.
This one was waaaaaaay too obvious.
For some reason I was under the impression that Microsoft was behind it all. Maybe I was misinformed by a co-worker I had at IBM. Anyhow, they were touting XHTML as the next big revolution with the internet. As of yet I have still to see anyone that actually uses this "protocol". Ok, I've learned something today this is good.
Nathaniel P. Wilkerson
NPS Internet Solutions, LLC
Nathaniel P. Wilkerson
www.haidacarver.com
I agree with you about consistency, so I use braces at end of line even for functions. (and structs, classes, ...). I was convinced by C++ and Java (and Perl).
I use this style for C, C++, Perl, Java, ... and it is good.
One would imagine these guys could author a decent page, but no...
...
The text is unreadable due to the background graphic/colour. However this is not always the case! The page seems to alternate between having a blue 'W3C Recommendation' background and a sane white background. Hit reload on it and see for yourself... Chaotic! (or is this Netscape gone crazy)
Forget XML, XHTML, we need miniHTML! Just the minimal subset of P, UL, simple TABLE,
No! This is a total misunderstanding. XHTML 1.0 is simply a recasting of HTML 4.01 into XML compliant syntax. You cannot extend XHTML as such by adding your own tags. You can produce hybrid documents by combining XHTML with other XML dialects, but the result would not be XHTML. You could even combine XHTML with XML dialects you create yourself. But you would be very foolish to do so.
XML dialects are only useful if they serve a significant community who have tools which understand the dialect and can do useful things with them. If you just make it up yourself as you go along, then the only thing you can really do with it is use XSL to translate it back into standard XHTML, so you've gained nothing.
I'm old enough to remember when discussions on Slashdot were well informed.
If XML is a failure, then I hope we should all fail so spectacularly ! I'll be writing the XML handlers that send out welfare cheques to you, and all the other unemployed CSV import coders.
The downside and "failure" of XML is that it's still immature as a wetware discipline (not as a protocol). XML and especially schema design is regarded in the same way as database design was 5-6 years ago. For years before RDBMS design had been the sole preserve of gurus like Ted Codd (i.e. the SGML era), then along come M$oft with Access and suddenly everyone and their dog thinks they're a real database designer. Cue a whole pile of badly normalised (or just downright ugly) data models, or in today's situation a lot of nasty slapped-together XML structures. It will be a year or so before people realise that XML schema design is a discipline in just the same way as good RDBMS design is.
TipOfTheDay: Use tags like <br /> instead of <br/> when writing "tight" HTML, otherwise older browsers choke on it.
Muhaha! Now you all must learn what I've known all along.. . the table, and font tags have been deprecated.. . you all need to learn Style Sheets to format your page :P
You meant to say docbook.org not docbook.com. Also DocBook is an SGML DTD, not an XML DTD (I guess you knew this already). Interestingly Normal Walsh has written DocBk XML DTD, an XML DTD based on DocBook. DocBook 5.0 will be XML compatible. Btw, if you want to use XML extensively checkout task-xml and task-xml-dev in Debian potato. Ganesan
never made the spec...
What, pray tell, does XHTML 1.0 do? Is it extensions onto HTML? No one uses XML yet, it's harder to parse in a program than proprietary formats, so no one uses them (yes, I *do* write import/export routines, everyone still uses comma-delimited or dbf files, occasionally Access files too). I've heard all of the hype of XML, is this some failed technology like that?
I've been using html for years in my web pages and also in designing clients web pages. I have never used this "new" thing called "XHTML". If someone could enlighten me as to the advantages of this protocol it would be helpful. I'm always hearing alot about this from the press but I have never needed it, at least I don't think I've ever needed it. Furthermore, is it like front page extensions or something? Do you need a special server to run it, or can you use a regular Unix web server? I don't see what all the hype is about.
Personally, I think this is another hype from Microsoft but I may be wrong.
Nathaniel P. Wilkerson
NPS Internet Solutions, LLC
Nathaniel P. Wilkerson
www.haidacarver.com
The web will never be fully standardized. Standards lag behind the technology, and people are way too lazy to actually follow standards.
Ten years from now, there will still be messy "optimized for Netscape" (whether or not Netscape is still even used) HTML on the web, browser writers will still fudge the standard, and people will still check their HTML on the only browser they have before putting it on the web.
Who was it who said "The great thing about standards is that there are so many to choose from." ?
You mean XSL? It's already there. The fun thing about XML is that it's a meta standard, so XSL and XHTML etc are all instances of XML.
did anyone else notice that the Recommendation itself was authored in XHTML 1.0?
Bonus points if you can figure out the recursive acronym 'GUILD'
Nor did I claim it did. I simply stated XML is the machanism by which the extensions are provided...and I count contractions as expansions as "extensibility".
GUILD Underground Instigates Lighthearted Disruption?
It is in the usa today. Look at it.
ALso, the chinese are goin to dake overt he usa. Man, I am just learning about these lords of acid. THey have an obsesion with the vaigna.
First step to knowledge is realising when you don't know something.
A year ago, I realised that I was missing the XML boat and played some rapid catch-up. Now I'm a real evangelist for it. XML is the most exciting new tech I've seen since reliable IP stacks on every desktop. Until Summer I had to push clients into using XML, Autumn I was first recruited because of my XML knowledge, and this year the phone has gone into meltdown.
Should you rush out and dive into XHTML ? Not IMHO. Start out by getting a good grasp of XML in isolation. I don't know what you do all day, but many big markets will always be pure XML without any XHTML involvement. WAP/WML might be relevant to you too, if you're into palmtops or wireless.
XHTML is less revolutionary than XML. XML is a way of doing new and exciting stuff that just wasn't practical before, XHTML doesn't really add much to that, it just lets developers roll it out without breaking every existing client. It's good stuff and we should adopt it, but it isn't going to invent new business models the way that XML has (how do I syndicate content from everything in the known universe without something universal like XML ?).
I think this is another hype from Microsoft
No, definitely not Microsoft's hype. Microsoft are keen on it, for sure, but they're riding the bandwagon, not generating the hype.
Yes, Microsoft have broken things. Fortunately XML was up and running before Redmond woke up, so they didn't get to break it. OTOH, XSL has been thoroughly trashed by them and XML Schemas are under attack (it's neck & neck between MS & W3C). I haven't looked at this week's XPath goodies from Redmond (new MSXML download yesterday ! Go get it). Much of the M$oft steamroller effect is because they're actually implementing new and useful stuff like parameterising stylesheets (Caveat - I haven't yet seen what they've done, but I know I want it) and they're still the only people with a usable client-side XSL on desktop browsers. I hate IE5, but it's just so damn useful that I can't avoid it.
He set up and runs the w3c in order to maintain its sane development.
The man is a visionary and a genius.
What about using the Xtensibility of this new (XML 1.0) standard to introduce some tags that would allow for client side scripting.
Sorta like Javascript only with a syntax that's more consistent with the rest of what's going on.
Actually I'd be happy with just a few basic data structures.
For Instance:
a <tree> tag that would enclose <node> tags ; or an <array> tag.
Seems like I remember Tim Sweeney (of Unreal) talking about parametric data types nd such and being mentioned on these pages this would be kind of the same idea.
please, please, please!!!!
I need money.
fr33B5D r00lz
A csv parser?
Okay, that's a good quick hack to parse: foo,bar,baz
How about: "John Malkovich", "John \"Blah\" Doe", "Steven Wright", Cher, "Larry Wall"?
Yeah, I know, you needed a quick hack to parse #1, but eventually someone will export an Excel file to what *it* calls CSV and get something like #2. Then, that little hack gets a lot bigger.
#!/usr/bin/perl
$parser = new XML::Parser(Style => 'Tree');
$tree = $parser->parsefile('coolstuff.xml');
And you get a pretty simple tree data structure of your XML, ready for quick hacks to walk through it and pluck out your data. It's not that hard.
Thank you for proving his point.
What if the fields require a , ?
Sure just the syntax a bit but soon you have something that cannot be parsed quite so simply. Also what about more structured data?
Just look at the HTML compatibility advisories! XHTML is largely incompatible with HTML. It will break just about every page on the web!
Then you've REALLY missed the boat. XML is EASY. Screw comma delimited, I've actually found it easier and more maintainably elegant to write quick Perl scripts which use the XML::DOM, than to hack out a CSV parser. Hell, I even have Oracle DB servers spewing XML streams at me to handle.
Why on earth would anyone write their own CSV parser? There are plenty of CSV parsers available to use. Just as is the case with XML parsers...
Otherwise I totally agree with you - ofcourse one should try to use XML rather than CSV.
W S B Fear the dingo and its mighty, poisonous fangs...WSB
tidy -asxml yourfile.html > yournewfile.xhtml
Get tidy here.
Broken links are an inescapable part of the idea that the web allows each site to be accessed or linked from billions of other pages. Imagine if Yahoo had to keep a live connection for every incoming link and a java-style "listeners" array for every page so as to back-propagate changes. They would have to dedicate whole servers to it.
Looking over the spec, I see that the w3c spec will begin enforcing things that most browsers have allowed, such as
without a closing tag. Any idea how browsers such as mozilla or whatever will deal with this restriction?
Are we going to be getting errors or unrenderable pages due to bad HTML? Frankly, I hope we do :-) It'd serve them right.
Just an observation/question.
If you can't figure out how to mail me, don't.
For linux tips: http://www.linuxtipsblog.com
hehe, that was supposed to a <p>. Sorry about that.
If you can't figure out how to mail me, don't.
For linux tips: http://www.linuxtipsblog.com
While it might not be realistic, the W3 likes to envision a future where clients become much more lightweight and flexible by putting all parsing and presentation into standard XML parsers and stylesheet tools. Currently a significant amount of browser bloat is due to the fact that the browsers pretty much render anything you throw at them. Hopefully this will change lest our HTML parsers grow to 20MB.
... if you hadn't so fully demonstrated your complete cluelessness with your spamming in the past. Who knows, maybe you've gotten a clue and this is a real troll. But I'd be inclined to believe that you actually are as clueless as you seem and that this is just an excuse to include your .sig in another message here.
What's the point of XHTML?
Is it meant as a stop-gap between full XML support on the web? Or is it meant to leverage the existing HTML code base? Or is it meant to be a simpler migration to XML for people who know HTML?
Or let's put it this way: If a new browser comes out with full support for XML plus a compatibility mode for regulat (SGML-based) HTML, what's the benefit to having XHTML?
I didn't want to say this to anyone's face at XML '99, but I don't get why people are spending so much time and energy on XHTML for. Who will use it?
I've spent a lot of time research XML/SGML solutions for my company and the word the picture painted by vendors (despite the hype) is that XML has not yet established itself in the market. It hasn't yet unseated SGML and, compared to SGML, is not yet ready for prime time.
The most widely used application for XML I've seen are the examples you've specified (web clipping and inter-application file formats). *Yawn*. The previous poster is right -- a CSV (colon-separated-value
BTW, what tool are you generating MS Word
tags, which proves completely useless. Plus, now W3 is weaning the hard-coders of the world off of and adding in since it's an empty tag.
Maybe I'm just complaining, but when I take a look at the results of my hard-coded page to see how big it is and how long people have to wait, the little things _do_ count. I do agree that this is some extremely trivial stuff to be yacking on about, but I feel that there are a few old-schoolers out there that'll agree with me. And if there aren't, well, it doesn't matter.
(kill your television. get some exercise.)
A week and a half ago, I began converting my site from HTML 4.0 to XHTML 1.0. Thanks to the W3C's validator, it was pretty easy to do.
Aside from changing the DOCTYPE and adding an XML declaration, all I had to do was make all elements and attributes lowercase, quote all attributes, and close all standalone tags (<br/>, <hr/>, <img src="tweet.jpg" ... />, etc.). It only took a little further tweaking to make it display nicely in Netscape 4.7, IE 5, and even lynx!
Unfortunately, it seems that XHTML chokes Mac IE 4.5 (and presumably surrounding versions). That browser just displays the page source without rendering it. Since I want my site to be viewable by anybody on any platform (and IE5 is not yet out for Mac), I had to go back to HTML 4.0. Argh!
I really like XHTML so far, though, and will probably convert to it as soon as Mac IE supports it (4.5 users: tough luck). If you want to see one of my preliminary XHTML endeavors, go to moby.org's mailing list archives page. Try it with any browser. AFAIK, it works fine with almost all of them.
CNN
XHTML is by and large compatible with existing browsers, if some simple guidelines are followed. Though it is not exactly backward-compatible with HTML, it comes very close, and you don't need to do much to convert a valid HTML 4.0 document to XHTML.
The reason I want to use XHTML is to add XML functionality to my web pages. This will be nothing grand -- at least in the beginning. I will probably start out with some RDF metadata.
XHTML might not be a thrilling DTD in itself, but its power lies in the fact that it is made of XML, so you can use other XML throughout your document without violating spec. IMHO, that's a pretty nice improvement over straight HTML. And XHTML has to be well-formed, which is a Good Thing.
the slashdot headline and the w3c headline are the same?
There are less dangerous ways of going "clubbing"...
Incidentally, I don't see any support for such tricks as using tables to lay out a page. Will this force people to recode their layouts with CSS (which they probably should do anyway), or just give coders another excuse to ignore W3C recommendations?
Quantum mechanics: the dreams that stuff is made of.
Fantastic, More HTML extension. When will it end? It used to be the sum total of HTML could be held in your head. Now, you're lucky if you can hold a tenth! It's terrible. CSS, XML, and now the ridicules XH TML??? What's next XSS? CML? HVCXTSSL? I can see it, but they'll probably call it something even stupider.
/. is not among them, it is. While we prune and pomp about DeCSS and the MPAA, our corporate overloads seek to make the world we live in far to complex for even the geekiest mind. Ask yourself, if Andover truly believed in Open Source, where's the code to this very website?
The question of course, is why are they doing this. And the answer is simple. To limit the web, and who can create it, to those willing to live their lives studding every proclamation by the W3C, and the various incompatibilities in Netcape-AOL-TimeWarner-EMI-sun's and Microsoft's latest bloat. The browser was the first to go, once a simple HTTP client, both the networking (with all kinds of crazy refers, keepalive, etc) and esp. the rendering has taken the possibility of development from the hands of the proletariat and handed them to the Corporate headmasters.
But newer and new technology threatens to take away not only our ability to write browsers, but to create pages as well. The so-called 'incompatibility' and 'browser war' reminds me of 1984. The illusion of battle, when really the two forces collude to take control. It sickens me.
The passage of meaningless tech advance in internet technology makes it impossible for us to compete, as we once did, with the big news outlets, who control the very thought of America. And don't be fooled into thinking that
Orwell was half wrong, the people won't be made stupid, but the skill required to express one self will be heightened.