Slashdot Mirror


Printing XML: Why CSS Is Better than XSL

An anonymous contributor writes "XML.com just published an article titled Printing XML: Why CSS Is Better than XSL written by Michael Day and Håkon Wium Lie. The article was written in response to Norm Walsh's claim that CSS will never fix [printing]. Did you hear me? CSS will never fix it!. The article shows how a 100-line CSS style sheet gives you the same formatted version of W3C's Webarch as the 1000-line XSL style sheet by using Prince."

361 comments

  1. Tru Dat by Foofoobar · · Score: 5, Insightful

    I agree. CSS is definitely better... but when you have to rely upon IE to update itself to the latest standard (much less a standard that is 5 years old) it becomes a bit tedious.

    Frankly, I think the W3C should act like supreme overlord and take a bullwhip to all browser developers who can't stay up to standard.

    I can just see Bill Gates bent over and bare assed in a W3C hazing ritual saying 'Thank you sir! May I have another?'

    --
    This is my sig. There are many like it but this one is mine.
    1. Re:Tru Dat by mmkkbb · · Score: 2, Insightful

      Frankly, I think the W3C should act like supreme overlord and take a bullwhip to all browser developers who can't stay up to standard.

      How do you propose they do that? Imposing fines? What can they do besides endorse something?

      --
      -mkb
    2. Re:Tru Dat by Foofoobar · · Score: 2, Funny

      How do I propose they do that? Easy.

      Step 1: Purchase the bullwhip.
      Step 2: Firmly grasp bullwhip
      Step 3: Purchase a ticket to Redmond, Wa
      Step 4: Start swinging!

      --
      This is my sig. There are many like it but this one is mine.
    3. Re:Tru Dat by procrastitron · · Score: 3, Informative

      IE isn't relevant to this topic actually. The article linked to is not about printing on the screen but actually printing to paper. They use CSS to produce a PDF document of the XML file, which can be printed as a book. The authors even say that they've already done this for their book Cascading Stylesheets, designing for the web

    4. Re:Tru Dat by tap · · Score: 1
      How do you propose they do that? Imposing fines? What can they do besides endorse something?

      I think the parent proposed enforcement via something involving a whip and bare asses.

      That's a start. Maybe something involving goats as the next step...

    5. Re:Tru Dat by British · · Score: 2, Interesting

      Are there any apps that fully support CSS to the last detail? I often see all too often "can't render CSS".

      Is it like SVG where there is/was no single 100% compliant renderer, yet the w3c had something magical to make their few sample screenshots?

    6. Re:Tru Dat by Anonymous Coward · · Score: 0

      Personally what always pissed me off, is that everytime I would work on a CSS Style Sheet (yes, that is repeating) IE would always crash on me at some point. Firefox of course would do just fine no matter what kind of crap I fed it.

      That being said, it's always a differnt bug, IE constantly fixes them. So maybe there's a hope that IE over time will be decent.

      Course if I could convince my boss to throw IE to the wind for the intranet, I could do some awsome things with XUL, which I don't unfortunatly think I can hook CSS to.

    7. Re:Tru Dat by rjstanford · · Score: 3, Insightful

      Right, but this would be a damn sight more useful if IE actually supported it as well. Right now our webapps - and many others - have a "Print" option on each screen which generally renders a server-side PDF version of the information they're looking at. Its the only way to guarantee a decent hardcopy. Using this to do the transformation client-side would be really great - if it was supported in the standard XHTML viewers (ie: webbrowsers).

      Even better, because there's no need to use the intermediate PDF step, instead the user would just print from their browser and they'd get the nicely formatted output pages. Ideally things like page size would be set from the print dialog, et cetera, for best transparency rather than being hardcoded into the CSS at all, something you need if you're dumping to PDF instead of going directly to a printer.

      --
      You're special forces then? That's great! I just love your olympics!
    8. Re:Tru Dat by tacroy · · Score: 1

      Simple. Sponsership. $1 per lash, or perhaps by square inch of rended flesh. Slashdotters would be queueing up.

    9. Re:Tru Dat by Monkey+Angst · · Score: 1
      How do you propose they do that? Imposing fines? What can they do besides endorse something?

      Put a Paypal link on the W3C site, so web standards buffs can donate to the cause of forming a private army for the W3C. Then, finally, this organization can have some enforcement power.

      That's really the only thing missing from the web-standards "revolution": Lots and lots of bloodshed.

      --
      stripShow - Where WordPress meets webcomics
    10. Re:Tru Dat by dubious9 · · Score: 5, Insightful

      I agree. CSS is definitely better...

      For some things. XSL is much more widely scoped, (from the article), "Turing-complete language which, in principle, can be used for all programming tasks and is particularly suited for document transformations."

      In the case of document presentation CSS is indeed a challenger, but mostly if the document is static. XSL has loops, branching, conditionals, and templates (akin to functions). If you have a report with some complex logic, ie. if this number is below a threshold, print this warning, otherwise show this table. Of course you could always do all transformations and logic before the final rendering step, but in a lot of cases it's easier to do it purely XSL. Yes, you could always bring Java-script or some other html-based functionality, but that's more than just CSS.

      Furthermore, there was probably a number a transformations you've already done to get the data that you need. A more suiting comparision would be with XSL:FO and CSS, but again, they both have their place. Furthermore you can imbed graphics with SVG and tools like FOP will automatically render them. To say that CSS is definitely better is naive.

      As in most other times when people compare languages, each has it strengths, and straight up conclusions (CSS is better!) is most often an apples to oranges comparison.

      --
      Why, o why must the sky fall when I've learned to fly?
    11. Re:Tru Dat by friedmud · · Score: 1

      It says in the story that even IE supports a lot of this stuff... including page breaks and margins... I haven't tried it myself but it sounds promising!

      Friedmud

    12. Re:Tru Dat by SenseiLeNoir · · Score: 3, Interesting

      Its certainly ironic when I see one of the best "built in" SVG parsers, present not on a computer, but on a Mobile Phone (SonyEricsson S700i), yet all the viewers i see in IE seem to have some faults here or there.

      --
      Have a nice day!
    13. Re:Tru Dat by Vann_v2 · · Score: 3, Informative

      There are some obscure corners of CSS2 that the main non-IE browsers can't handle or don't handle well, but for the most part they're compliant. I've never needed something they don't support. CSS3 is an entirely different ballgame, though. No browser even suports half of it, AFAIK.

    14. Re:Tru Dat by GigsVT · · Score: 1

      Of course you could always do all transformations and logic before the final rendering step, but in a lot of cases it's easier to do it purely XSL.

      I've not found that to be the case. Can you tell me of any example where it would be easier to use XSL rather than just some CSS spit out based on some logic that something like PHP handles?

      My view is, why throw yet another programming language into the mix, just to do output? As you said there are already a number of transformations needed to get the data in the first place.

      If people designed web apps like some advocate, you'd have to work in a million different langauges, something like PHP with triggers and stored procedured in the database written in something else, SQL for the actual interface to the DB, XSL for output.

      That's a lot of complete programming languges to write one app.

      --
      I've had enough abrasive sigs. Kittens are cute and fuzzy.
    15. Re:Tru Dat by Foofoobar · · Score: 1

      Well you are talking about a combined tool which is highly arguable as being more efficient; is a combined function more efficient than two separate functions that work together? Some might say yes but the amount, in this sense, is negligible.

      And is it equally flexible? No. What if you only need to use CSS? The combined function set becomes overkill or bloat. And because you can combine CSS with any other scripting language out there, it can have a virtual unlimited amount of uses in comparison to XSL.

      So while both have their uses, CSS in combination with Javascript (or any scripting language for that matter) has far more functionality and flexibility.

      --
      This is my sig. There are many like it but this one is mine.
    16. Re:Tru Dat by Anonymous Coward · · Score: 0

      Why does every format have to devolve into a programming language? That's one of the big problems of Unix's configuration system. Just about every configuration file type basically has its own macro system. It is virtually impossible for software to modify configuration files that have programmatic constructs in them. Thus all modifications to something like XSL must be done by a bona-fide programmer.

      There's simply no reason why a style system should have a programming language built into it.

    17. Re:Tru Dat by Anonymous Coward · · Score: 0

      CSS is definitely better

      I won't say which is *better*, but I use both. I use XSLT on the server side to transform the XML my servlet spits out into HTML, and I use CSS to let our design guy make that HTML pretty. Works pretty well.

    18. Re:Tru Dat by Anonymous Coward · · Score: 0

      [...]is most often an apples to oranges comparison.

      Or a duck-with-sunglasses to doorknobs comparison.

    19. Re:Tru Dat by chris_mahan · · Score: 3, Funny

      That's no enforcement, that's $250 a hour!

      Oh, did I just make a silly comment? Sorry... (again)

      --

      "Piter, too, is dead."

    20. Re:Tru Dat by chris_mahan · · Score: 2, Funny

      Actually, if the W3 had a 50 million dollars prize for the first fully CSS1+2+3 compliant browser, people would fall over themselves to build the browser.

      --

      "Piter, too, is dead."

    21. Re:Tru Dat by dubious9 · · Score: 2, Interesting

      Caveat: I don't like XSL. It's too verbose and even simple logic steps tend to take a while to implement. I want a better solution. However...

      So while both have their uses, CSS in combination with Javascript (or any scripting language for that matter) has far more functionality and flexibility.

      In presenting documents with a web browser, yes, I agree. But traditionally, XSL was a server side headless operation for producing print quality documents.

      Where is the commandline CSS and javascript engine? In the article they mentioned Prince, but that's XML+CSS and not free software. Sure there's a perl API to access spidermonkey, the mozilla javascipt engine. There's Apache's Batik CSS engine. Is there an integrated solution out there in the OSS realm? Not when I looked a couple years ago, when I choose to implement a reporting engine in XSL.

      Therefore it still depends on the task you are doing. CSS+Javascript tackles a narrower problem set than XSL. Does it do it well? Yes, but your assertation is still apples and oranges. Have you even used both?

      --
      Why, o why must the sky fall when I've learned to fly?
    22. Re:Tru Dat by dubious9 · · Score: 3, Insightful

      Can you tell me of any example where it would be easier to use XSL rather than just some CSS spit out based on some logic that something like PHP handles?

      I have a large XML document. I want a PDF report of that information. With FOP I can write a couple stylesheets and get a PDF without having to use a browser.

      My view is, why throw yet another programming language into the mix, just to do output?

      If you're dealing in XML already the traditional route is XSL. If HTML than CSS+whatever. XHTML? Maybe XSL for transformations and CSS for formatting. But do you see that there are different problems that require different tools?

      If people designed web apps like some advocate...

      Web apps aren't the only apps. That's what I'm saying. Again, different problems require different tools.

      you'd have to work in a million different langauges,

      If you are a descent programmer, the languages don't matter. After you learn a few you pick up new ones quickly. You use the best ones for the job. Sometimes four languages is better than one. Sometimes not. Knowing which to pick separates you from the code monkeys.

      --
      Why, o why must the sky fall when I've learned to fly?
    23. Re:Tru Dat by martian265 · · Score: 1
      Simple. Sponsership. $1 per lash, or perhaps by square inch of rended flesh. Slashdotters would be queueing up.


      Nah, slashdotters would complain about it not being "free, as in beer"
    24. Re:Tru Dat by Short+Circuit · · Score: 1

      A series of smaller component prizes would work better, and be more sustainable.

      Neat idea, though.

    25. Re:Tru Dat by Myen · · Score: 1

      So an intermediate solution would be to use CSS to generate PDFs server-side? While that wouldn't push the work client-side, it should still allow you to share elements between the client and server. (It would be nice to do it all client-side, certainly, but that probably won't be happening in the short term...)

    26. Re:Tru Dat by Monkey+Angst · · Score: 1
      Actually, if the W3 had a 50 million dollars prize for the first fully CSS1+2+3 compliant browser, people would fall over themselves to build the browser.

      Well, yes, but I'd still rather my money went to a private army, pouring across the land, enforcing browser compliance and the separation of content from presentation.

      </hypocrisy. My own site uses table-based layouts>

      --
      stripShow - Where WordPress meets webcomics
    27. Re:Tru Dat by critter_hunter · · Score: 1

      That's because CSS3 is not a specification, it's a work in progress. If the drafts were to change tomorrow, and browsers supported the properties in a non-standard way, it would be more problematic than not supporting the properties at all - IE is proof enough of this. Browsers do support some parts of CSS3 - either by prefixing the properties with their vendor code (e.g. -moz-opacity) or by supporting properties of modules that are considered complete and unlikely to change.

      --
      Karma: Could be worse (could be raining)
    28. Re:Tru Dat by Anonymous Coward · · Score: 0

      As in most other times when people compare languages, each has it strengths, and straight up conclusions (CSS is better!) is most often an apples to oranges comparison.
      ----
      Yea, try filtering the data (sorta like a query) with css ROFL. You can generate your XSLT's on the fly to respond to query like input, such as a search.

      CSS may be superior for simple document formatting, but XSLT does so much more than document formatting. CSS is simply a formatting language, whereas XSLT can do actual data manipulation.

      Like dubious says, its apples to oranges. Comparing CSS to XSLT is a little like comparing html to php. Sure html is easier to learn, and you can build a page faster, but do you want a static site, or would you like to have an active bulletin board system, which users can post to?

    29. Re:Tru Dat by Anonymous Coward · · Score: 0

      Somehow, I don't think Teen Beat would be interested that picture.

    30. Re:Tru Dat by Foofoobar · · Score: 1

      Heh. The command line CSS and Javascript engine is called Vi or Emacs. :)

      --
      This is my sig. There are many like it but this one is mine.
    31. Re:Tru Dat by chris_mahan · · Score: 1

      Yeah, I was thinking though that MSFT would not be interested in winning $200,000. So $50Mil would be enough of a bait.

      Of course, it would be a great catch for Mozilla or Opera.

      I also think the amount would get a lot of press (just look at the X-prize (well, and no space-- or is it "white-space: ignore;", I forgot))...

      But yeah, there's a balance in there somewhere.

      --

      "Piter, too, is dead."

    32. Re:Tru Dat by IHateSlashDot · · Score: 1

      The article had nothing at all to do with MS, IE or Gates. You are a supreme retard.

    33. Re:Tru Dat by Anonymous Coward · · Score: 0

      >Why does every format have to devolve into a programming language?
      ---
      XSLT is not a style format language, it is an xml data parsing langauge, which happens to have formatting ability built in. It is first and foremost a programming language, which happens to be very easy to learn.
      ---
      >That's one of the big problems of Unix's configuration system. Just about every configuration file type basically has its own macro system.
      ---
      Actually, configs which need a macro system are the exception, not the rule. The only ones I can think of off the top of my head are squid and sendmail. Most of the configs I deal with require vi or other simple text editor to manipulate and most do not require further processing once edited.
      ---
      >It is virtually impossible for software to modify configuration files that have programmatic constructs in them.
      ---
      An XSLT sheet is not a configuration file, it's a program which instructs the XSLT parser on how to process and display data. As far as writing software that modifies software, this is as simple as writing software which modifies any other text file. The only difference being that the resulting program needs to make sense and execute, as opposed to being content for a human, which doesn't always need to make sense.
      ---
      >Thus all modifications to something like XSL must be done by a bona-fide programmer.
      ---
      one would hope. People that don't understand a programming language should learn it before attempting to modify other people's code written in it. It prevents disasters.
      ---
      >There's simply no reason why a style system should have a programming language built into it.
      ---
      XSLT is a programming language with a style system built in, not the other way around. The eXtensible Style Language Transform moniker is sort of a misnomer in that it's misunderstood by many, as evidenced by this story and resulting threads.

      XSL's (XPath, XQuery etc etc) intended use is to:
      query and filter data
      read xml data as input
      format the results of the data manipulation for display

      CSS on the other hand is for formatting html/xml "straight" when no further processing is needed.

      Directly from the XSL site:

      Will XSL replace CSS?
      No. They are likely to co-exist since they meet different needs. XSL is intended for complex formatting where the content of the document might be displayed in multiple places; for example the text of a heading might also appear in a dynamically generated table of contents. CSS is intended for dynamic formatting of online documents for multiple media; its strictly declarative nature limits its capabilities but also makes it efficient and easy to generate and modify in the content-generation workflow. So they are two different tools; for some tasks, CSS is the appropriate choice and for some tasks, XSL. They can also be used together - use XSL on the server to condense or customize some XML data into a simpler XML document, then use CSS to style it on the client.

      I suggest that everyone reading this go to http://www.w3.org/Style/XSL/WhatIsXSL.html so they might understand the purpose of xsl a little better and figure out when to use CSS, and when to use XSL. They really do meet different needs.

    34. Re:Tru Dat by Anonymous Coward · · Score: 0

      There seems to be a huge gap between the W3C standards and the actual Internet. While CSS mostly fills the role of abstract formatting, the support and featureset is largely underwhelming.

    35. Re:Tru Dat by theshowmecanuck · · Score: 1

      Bill Gates is the Gimp. Bare assed with a leather hood. Bruce Willis should never have saved him.

      --
      -- I ignore anonymous replies to my comments and postings.
    36. Re:Tru Dat by tepples · · Score: 1

      The command line CSS and Javascript engine is called Vi or Emacs

      True, use vi or Emacs as the editor, but which renderer do they launch?

    37. Re:Tru Dat by TheRaven64 · · Score: 1
      Opera supports several nice CSS features for producing printed output (page size, page breaks, footnotes, automatically numbered headings, etc.) Last time I looked (about a year ago) it was the only browser that did. And yes, these are all all W3C features, not proprietary extensions.

      I considered using XHTML + CSS as a semantic markup system for online and printed documentation a while back, but eventually decided that using LaTeX to produce PDF and HTML was a better route (the typesetting algorithms in LaTeX produce much nicer output than any browser I've seen).

      --
      I am TheRaven on Soylent News
    38. Re:Tru Dat by TheRaven64 · · Score: 1
      As far as I am aware, CSS is designed for applying presentation information to XML/HTML (which should be used to store semantic information), while XSL is designed for transforming XML representations of data into other (XML or non-XML) representations of the same data. I am surprised that they are being compared at all, since they seem to be intended for very different purposes.

      In other news, PDF is better than SQL.

      --
      I am TheRaven on Soylent News
    39. Re:Tru Dat by TheViciousOverWind · · Score: 1, Insightful

      If you are a descent programmer, the languages don't matter. After you learn a few you pick up new ones quickly. You use the best ones for the job. Sometimes four languages is better than one. Sometimes not. Knowing which to pick separates you from the code monkeys.

      Everytime I read this I think "Bullshit"... This might work when you're just hobby-programming, but real projects in real workplaces are mostly done in ONE language... I don't do half my app in Ruby when the rest is in PHP because it would be faster/easier/more fun. I stick to PHP because that way there's consistency, and if I decide to go find a new job, the person taking over for me will still be able to read the source.

      --
      My <1000 UID is with a hot chick
    40. Re:Tru Dat by normal_guy · · Score: 1

      Please explain the irony.

      --

      Linux: Free if your time is worthless.
    41. Re:Tru Dat by Anonymous Coward · · Score: 0

      Just because the "S" in XSL stands for styelsheet doesn't mean the CSS and XSL are for the same things.

      XSL in its XSLT incarnation, when the transformation takes place on the server, works in harmony with CSS. XSLT provides structure to the presentation, be it for an HTML, WAP, CSV renderer (whatever you want) and CSS provides colour and layout information for HTML agents.

      I think all this talk about one being better than or replacing the other centres around the notion that XSL takes place within the browser. These implemetations are often proprietary, and therein lies a big problem.

      If XSL transformations take place on the server, all you have to know is "I am using Xalan or MSXML or Coocoon. The recipient of the data can handle it as he or she sees fit.

    42. Re:Tru Dat by Anonymous Coward · · Score: 0

      the solution is so simple! just make mozilla hook in to IE the same way flash does. as a plugin. ie's greatest strength of auto installing plugins seamlessly would then become its worst enemy!

      im kidding. but you have to admit, it would be pretty funny to do something like that.

    43. Re:Tru Dat by aichpvee · · Score: 0

      I'm not sure you can legally make Bill Gates's ass freeware. Perhaps a free gift with purchase, though.

      --
      The Farewell Tour II
    44. Re:Tru Dat by dubious9 · · Score: 1

      are mostly done in ONE language

      Yes, I agree. Mostly. There a lot of advantages of using one language, and a lot of disadvantages of using two of more. However sometimes the need arises.

      Case in point: Interface with a legacy program written in FORTRAN. OK, we need a FORTRAN subroutine. The Business logic is done in Java. FORTRAN to JAVA? Serializing it out to the disk was to slow, so we have to take the FORTRAN subroutine and call it from C, do conversions on the datatypes then have JNI call that from the main app. In this case 4 languages was required. There are many more scenarios where more than one language is required.

      Again, knowing when to used more than one language is what separates the men from the boys.

      --
      Why, o why must the sky fall when I've learned to fly?
    45. Re:Tru Dat by Anonymous Coward · · Score: 0

      Oops, forgot about the part when the C function had to parse another XML stream which was transformed in XSL before calling the JNI stuff. Java + C + XSL + Fortran. 4.

    46. Re:Tru Dat by SenseiLeNoir · · Score: 1

      > the solution is so simple! just make mozilla hook
      > in to IE the same way flash does. as a plugin.
      > ie's greatest strength of auto installing plugins
      > seamlessly would then become its worst enemy!

      Actually, that is possible already. Adam Locke's Moz ActiveX control allows you to embed the gecko engine into a page rendered in IE.

      http://www.iol.ie/~locka/mozilla/mozilla.htm

      > im kidding. but you have to admit, it would be
      > pretty funny to do something like that.

      Already done, check MOZiE below for ONE example.
      http://www.softpedia.com/get/Internet/Browsers/MOZ iE.shtml

      --
      Have a nice day!
    47. Re:Tru Dat by Anonymous Coward · · Score: 0

      XUL is styled with CSS.

    48. Re:Tru Dat by pipingguy · · Score: 1


      Even better, because there's no need to use the intermediate PDF step, instead the user would just print from their browser and they'd get the nicely formatted output pages.

      With ads, or without? I just can't wait for e-ink "paper" to become popular. Blinky, flashy - on a printout!

    49. Re:Tru Dat by Knightking · · Score: 1

      http://www.w3.org/TR/css3-selectors/ http://www.w3.org/TR/css3-color/ http://www.w3.org/TR/css3-text/ http://www.w3.org/TR/css3-ui/ http://www.w3.org/TR/css3-page/ http://www.w3.org/TR/css-print/ http://www.w3.org/TR/css3-mediaqueries/ Saying CSS3 is a WIP isn't entirely accurate -- all of the above are CSS3 modules that have made it to Candidate Recommendation, and are recommended for implementation. There's certainly plenty of things for them to do without worrying about breaking things in the future.

    50. Re:Tru Dat by Anonymous Coward · · Score: 0

      Oh, you mean like Opera? Opera 7.5+ is the only browser with full (albeit somewhat buggy) CSS 2.1 support. Full CSS 3 compability would be nice, I agree, however, since CSS3 is still a candidate reccommendation I think it'll have to wait until it's an official reccommendation.

      On a side note, it'll be interesting to see how much IE will be able to handle in Longhorn.

    51. Re:Tru Dat by Inthewire · · Score: 1

      Saved?
      Bruce ran him through with a sword.
      I guess that can be considered saved.

      --


      Writers imply. Readers infer.
    52. Re:Tru Dat by mrchaotica · · Score: 1
      But traditionally, XSL was a server side headless operation for producing print quality documents.
      Oh, well if that's all you want, why not write it in PostScript? ; )
      --

      "[Regarding the 'cloud,'] ownership was what made America different than Russia." -- Woz

    53. Re:Tru Dat by SenseiLeNoir · · Score: 1

      I thought it was rather obvious the irony when you read it. Maybe my British background...

      The irony is, my powerful computer running both linux and windows XP does not 100% support SVG (animations too), and even then, its via a plugin for an APPLICATION. I am talking support in the shell/toolkit.

      This phone has SVG support built in, and its part of the core graphics support (you can use SVG in backgrounds/MMS/Themes). It also has PNG support with transparency, used for its User Interface

      The fact that the phone is NOT a smartphone (though it does blur the lines somewhat) makes it more the impressive.

      But then again, Sony Ericssons have been quite intresting in their support for standards. They had one of the first "Normal" cellphones to support
      - JPEG/GIF/PNG with Alpha
      - SVG with ANimations
      - XHTML - with CSS
      - Support for TAR format in files used on the phone, such as themes, which is just a TAR file containing all the graphics in JPG/GIF/PNG, coupled with a plain text XML file)
      - SynchML
      - SMIL support (used for MMS, and WAP)

      and all this on a small phone.. whilst my Windows XP machine...

      --
      Have a nice day!
    54. Re:Tru Dat by chthon · · Score: 1

      Like in a goat licking the bare soles of their feet ?

    55. Re:Tru Dat by dynamo · · Score: 1

      I agree. I am not kidding here: I have written a compiler in XSLT.

    56. Re:Tru Dat by Anonymous Coward · · Score: 0

      I'm waiting for the flight simulator hidden in the code of a page ;-)

  2. So where did this come from? by digitalgimpus · · Score: 0

    This wasn't inspired by a post on Daniel Glazman's blog was it?

  3. what do we have here... by Anonymous Coward · · Score: 0
    some controversy..



    Prince...

    Nooo! not the 80's again. argh!

    1. Re:what do we have here... by SwedeGeek · · Score: 1

      Hey, step off Prince! He's a fellow Minnesotan... Yea, sure ya betcha!!!

      Besides, I just saw him at the Golden Globes this past Sunday. Okay, so he looked like a re-animated corpse from the 80s, but he was there nonetheless!

    2. Re:what do we have here... by Dasein · · Score: 1

      Go see a Prince concert. The man is still amazing.

      --
      You are not a beautiful or unique snowflake -- but you could be if you got off your ass.
  4. Free? by Anonymous Coward · · Score: 2, Funny

    Free for any purpose eh? This will go well for the interface to my baby mulching machine.

  5. Jesus by Anonymous Coward · · Score: 0

    A series of point-counterpoint covering a bunch of things that everyone else consider irrelevancies.

    Don't these people have any actual work to do?

    1. Re:Jesus by Anonymous Coward · · Score: 0

      As long as the counter-point begins with "Jane, you ignorant slut," it's all good.

  6. Better question by Pan+T.+Hose · · Score: 2, Insightful

    Is XML with CSS better than TeX, or Postscript for that matter? Can it be? I have never seen a high quality print from anything other than *TeX, and that includes XML/XHTML/HTML, so I figured out that (XHT|HT|X)ML is not a typesetting system. Is that not the case?

    --
    Sincerely,
    Pan Tarhei Hosé, PhD.
    "Homo sum et cogito ergo odi profanum vulgus et libido."
    1. Re:Better question by tomstdenis · · Score: 3, Informative

      I think it's safe to say that TeX and LaTeX own the typesetting domain. Some reasons why perhaps

      1. It's old, mature and stable

      2. LaTeX makes TeX really easy to work with

      3. The output is related to the input, not the machine you are working on.

      4. Gives you wicked control over positioning, size, orientation, etc.

      5. Great support for equations, figures and other oddities that things like Word manages to screw up.

      6. Most TeX distros [like tetex] are FREE and open source. No shelling out the MSFT tax to use Word ;-)

      The only big downside to LaTeX is that occasionally it automagically places things in a less than desired fashion [figures I mean] and you have to manually tweak it. But I'd say for 99% of what math/crypto people do [for instance] LaTeX handles it perfectly.

      Tom

      --
      Someday, I'll have a real sig.
    2. Re:Better question by Anonymous Coward · · Score: 0
      ... XML/XHTML/HTML, so I figured out that (XHT|HT|X)ML ...

      If you're going to refactor, at least do it correctly:

      it's (X?HT|X)ML

    3. Re:Better question by Anonymous Coward · · Score: 0

      > > ... XML/XHTML/HTML, so I figured out that (XHT|HT|X)ML ...

      > If you're going to refactor, at least do it correctly:

      > it's (X?HT|X)ML

      Even better: X?(HT)?ML

    4. Re:Better question by madth3 · · Score: 1

      Of course XML is not a typesetting system, although XSL can be used to produce LaTeX output and, therefore, be as good.

    5. Re:Better question by prockcore · · Score: 1

      Is XML with CSS better than TeX, or Postscript for that matter?

      One of the first XSLs that I built converted NITF (the Newspaper Industry's XML Format) into TeX.

      Here's one thing that CSS can't do. Make something clickable. Few browsers support the :before and :after tags, which are required to do this.

      So CSS can format a static document, but XSL is required to make it interactive.

    6. Re:Better question by handslikesnakes · · Score: 1

      Say what? The :before and :after pseudo-elements are for generated content. They can't make anything clickable that wasn't already.

    7. Re:Better question by JQuick · · Score: 1


      I think it's safe to say that TeX and LaTeX own the typesetting domain.


      It is safe to say, since no prepress militia will hunt you down.
      It is, however, incorrect.

      Postcript owns most of the printing+typesetting domain (fed largely by DTP layout apps like Quark which output nice postscript). Some shops now use a lot of pdf, but most applications do not produces pdfs with embedding graphical elements at prepress quality.

    8. Re:Better question by BarryNorton · · Score: 1

      Now who's not comparing like with like?!?

      (La)TeX is a source format (that people actually write)... to produce Postscript and PDF!

      (No one sits and writes Postscript!)

      I do, however, agree that Quark is more appropriate for some tasks... mostly graphical design-heavy stuff, whereas (La)TeX rules the maths-heavy stuff.

      (Furthermore PDF is little more than a fancy Postscript wrapper.)

    9. Re:Better question by rxmd · · Score: 1
      I do, however, agree that Quark is more appropriate for some tasks... mostly graphical design-heavy stuff, whereas (La)TeX rules the maths-heavy stuff.
      This is correct. However, I guess there's a lot more design-heavy stuff published in the world than maths-heavy stuff. If you look outside university CS, maths and physics departments, LaTeX users are a small minority mostly. (La)TeX doesn't rule the typesetting world, it rules the math typesetting part of it, while being more of a fringe phenomenon in the rest.
      --
      As a state gets corrupt, its laws multiply; the most corrupt states have the most numerous laws. (Tacitus, Annales 3:27)
    10. Re:Better question by BarryNorton · · Score: 1
      If you look outside university CS, maths and physics departments [...]
      God forbid ;) (Agree with your point, though...)
    11. Re:Better question by Qzukk · · Score: 1

      (No one sits and writes Postscript!)

      I do. I use it in my web application that has to produce PDF's that can then be printed out on top of various forms to fill in the blanks, print contracts, etc... I have yet to find ANY library or pdf-generator that can do this like I need it to for me. We pride ourselves on having documents that don't use shitty monospace fonts, so knowing how long a line is or how many pages of text you have is impossible until you've set the text.

      If someone wants to suggest something, I need:

      0) Absolute text placement. The blank on the form is 13pt from the left, 82pt from the top and is 52pt wide. Someone please tell LaTeX that this is NOT A SUGGESTION.

      1) line-wrapping. If it doesn't fit on the line, it needs to wrap to the right location on the next line.

      2) form-wrapping. If it doesn't fit on the page, it needs to wrap to the right location on the next page, not to the top of the page or somewhere else. (think of your credit card statement if you've ever rung up enough to wrap to a second page.)

      3) Document footer. Like a page footer, except it only happens at the end. We use this for one mostly free-format document with a signature line at bottom of the last page, whichever page that is.

      4) Mid-document reset. We do hundreds of these forms at once. Printing out hundreds of individual PDFs make Baby Jesus cry. Once it prints the Document Footer, the internal counter resets to page 1.

      5) The ability to go back and add page numbering (something I can't do in PS). Since I don't know how many pages something is going to take up until its all laid out, I need to go back pages and put in the page numbers.

      6) Headers and footers that appear on certain pages. We have forms that after the first page have blanks at the top for account numbers/names/etc. Again, think of your credit card statement.

      bonus points) the ability to stab adobe acrobat developers in the face over the internet for making every version of acrobat turn on the "distort the hell out of my PDF when I print it" options, requiring me to instruct my customers on a regular basis in how to turn it off in whatever version they just installed.

      --
      If I have been able to see further than others, it is because I bought a pair of binoculars.
    12. Re:Better question by BarryNorton · · Score: 1
      Sounds like you generate Postscript... this is a different thing from writing it by hand (like hundreds of thousands of people do with LaTeX).

      I wasn't suggesting that no ones generates Postscript - the very opposite!

    13. Re:Better question by Qzukk · · Score: 1

      Well, the first time around it has to be written by me, so I still consider myself to have written it by hand. After that, my program fills in the blanks in the PostScript program with the form data.

      All this because my college Programming Languages professor required our term paper to be about the similarities and differences between Perl and PostScript, with code examples in each.

      --
      If I have been able to see further than others, it is because I bought a pair of binoculars.
    14. Re:Better question by Anonymous Coward · · Score: 0

      I do. Or used to. I have a small (hundred bytes or so) postscript file somewhere to print a complex binary tree. Takes less than a second to send to the printer, no many how deep the tree is, but could easyly take half an hour to actually print, because the printer gets to do all the work.

    15. Re:Better question by Anonymous Coward · · Score: 0

      I could do it in TeX. It's perfect for this. Coding in Postscript is pretty rough, and you can't control kerning and spacing of the fonts (for which you need to process font metric info, unavailable in Postscript). It's good for batch processing, and it's layout algorights are still state-of-the-art. There's a steep learning curve though.

    16. Re:Better question by tomstdenis · · Score: 1

      That's just pragmatism though.

      Springer [for instance] accepts Word format submissions just because people are far too lazy to typeset properly. Despite what people think Word is not a typesetting program. It's hardly a good editor.

      I can't recall the last time running a TeX build gave me a virus ;-)

      Also there was a time when Springer only accepted PostScript submissions that were photo ready. That means actually set to be printed and not just a stream of Word bytes that and editor has to fix up...

      Tom

      --
      Someday, I'll have a real sig.
  7. Great example of hard-coding reducing size. by SuperKendall · · Score: 4, Interesting

    If you check them out, at least one savings in the CSS is that it hard-codes the page size for a single size.

    If you look at the XSL, it selects different text sizes for different page sizes.

    Thus I would have to say - have they tried printing both examples using different page sizes? Because I am pretty sure the CSS version will be a postage stamp in the middle of an A0 page.

    Also from quick examination it looked like the XSL is more flexible in other ways, you can pass in all sorts of parameteres like margins.

    Basically - sure the XSL is longer, but also more flexible in terms of use. Since you are only going to write it once (that is unless you want multiple page sizes in which case you are going to have many CSS files) what does it matter if there is a little code-size increase?

    Furthermore the XSL could itself be transformed in various interesting ways for special modifications, a task harder to do with CSS. And you could include things like the paper-size->font-size mapping in seperate files to keep the size down and the file more readable (though I find the XSL perfectly readable - after having used XSL for a while, admittedly!).

    --
    "There is more worth loving than we have strength to love." - Brian Jay Stanley
    1. Re:Great example of hard-coding reducing size. by Anonymous Coward · · Score: 0
      Because I am pretty sure the CSS version will be a postage stamp in the middle of an A0 page.


      Where did you get an A0 printer from?!? Not something I have lying around thinking, ooh, i'll just print this article onto it!

      Actually, I can't even be arsed to read it. Code looks nice though.
    2. Re:Great example of hard-coding reducing size. by killjoe · · Score: 2, Insightful

      I would like to see a comparison to a "real" language like java or python or ruby or something.

      I hate XSL and whenever possible use an actual programming language.

      --
      evil is as evil does
    3. Re:Great example of hard-coding reducing size. by pHDNgell · · Score: 1

      I would like to see a comparison to a "real" language like java or python or ruby or something.

      I hate XSL and whenever possible use an actual programming language.


      Then make one. Just because you enjoy using the wrong tool for the job (in this case, xml transformation), doesn't mean you have to get all cranky because others don't.

      --
      -- The world is watching America, and America is watching TV.
    4. Re:Great example of hard-coding reducing size. by killjoe · · Score: 1

      "ust because you enjoy using the wrong tool for the job (in this case, xml transformation),"

      Yes because it's much better to type

      <xsl:choose>
      <xsl:when test="string-length(@NUMBER_OF_PAGES)&gt;0">
      <xsl:value-of select="@NUMBER_OF_PAGES" />
      </xsl:when>
      <xsl:otherwise>
      <xsl:text>0</xsl:text>
      </xsl:otherwise>
      </xsl:choose>

      Then a simple if then else statement.

      --
      evil is as evil does
    5. Re:Great example of hard-coding reducing size. by Cereal+Box · · Score: 1

      Of course, you're neglecting to consider the amount of overhead code needed to load the XML document as a DOM document, traverse the DOM, perform matching on particular elements (which gets incredibly hairy depending on how much context is required), place results back in another DOM document, serialize it to text and write it to disk. Hell, that little snippet you posted would translate into a Java source snippet sort of like this one:

      if (curElem.getAttribute ("NUMBER_OF_PAGES").length() > 0) {
      resultDoc.appendChild (resultDoc.createTextNode (curElem.getAttribute ("NUMBER_OF_PAGES")));
      }

      else {
      resultDoc.appendChild (resultDoc.createTextNode ("0"));
      }

      Doesn't look so simple anymore, does it (remember, this is but a small snippet of a much larger program)? Of the two, which one looks less verbose and easier to glean meaning from? And woe be to you when you decide you need to select, for example, all elements whose ancestors have some particular attribute value AND whose descendants DO NOT have some other attribute value. The DOM code will get horrendous.

      XSL makes tasks that would otherwise result in hundreds of lines of ugly, hard to follow, and unmanageable DOM manipulation compact, easy to understand, and easy to change.

      Being a good programmer means knowing when to set aside your macho "real programmers use assembly" attitude and learn how to properly use multiple technologies that will allow you to create a simpler, more flexible solution.

    6. Re:Great example of hard-coding reducing size. by killjoe · · Score: 1

      Here is an actual snipped from one of my projects in php.

      $xml = new XPath();
      $xml->load_string ($results_xml);

      $a= $xml->get_attributes($xml->root);

      if ($a['COUNT'] != 0):
      // we know we have results so let's deal with them.

      $results=$xml->evaluate("/SOME/XPATH/EXPRESSION");

      foreach ($results as $result):
      do something with $result
      endforeach;
      endif;

      I vastly prefer this method of working to XSL. It's easier to read, easier to type, easier to debug etc.

      --
      evil is as evil does
    7. Re:Great example of hard-coding reducing size. by Cereal+Box · · Score: 1

      That may indeed be less verbose than its Java equivalent, but you still have to deal with having big, manually-escaped string blocks or numerous "create node"-type statements strewn about your source, whereas with XSL it's much more natural as your processing elements and output elements are merged together.

    8. Re:Great example of hard-coding reducing size. by killjoe · · Score: 1

      With PHP you have a pick of many templating engines. You should never really need to do all that.

      Secondly I would still prefer escaping strings manually then to type every time I want to print a space.

      --
      evil is as evil does
  8. Main Difference by rjstanford · · Score: 4, Insightful

    From TFA:

    More recently, a W3C Candidate Recommendation (called CSS3 Paged Media Module) added functionality to describe headers, footers, and more...

    The big difference is that XSL provides the tools to perform this transformation - from XHTML to a printable layout - without needing to change the standard itself. The same goes for the argument made about page sizes, which are built into the latest CSS and which have to be handled manually with XSL.

    Now, once you have wide support for the latest CSS (and who knows how long that will take), I would wholeheartedly agree that it would be a better choice for printing as shown here. The fact of the matter seems to be that they're comparing what you can do today, with a little work, using XSL transforms, to what you may be able to do tomorrow with a proposed dedicated language. I'd be pretty surprised if the latter couldn't do what its designed to do better than a general purpose language.

    At least, that's the way I see it. So, there's some good stuff coming down the pipe with CSS. That's worth knowing about. But until it has wide support, there's XSLT. And that's worth knowing about as well, and a damn sight more useful - for now.

    --
    You're special forces then? That's great! I just love your olympics!
    1. Re:Main Difference by KillerDeathRobot · · Score: 1

      The fact of the matter seems to be that they're comparing what you can do today, with a little work, using XSL transforms, to what you may be able to do tomorrow with a proposed dedicated language.

      Completely wrong. They're not talking about browsers at all. They're talking about what can be done with a program like prince (which one of the author's wrote). Current browser incompatibility is totally irrelevant.

      --
      Thinkin' Lincoln - a web comic of presidential proportions
    2. Re:Main Difference by bert.cl · · Score: 1
      You are correct, but as the article also suggests, it's easier to put page-information (like the borders and sizes for A4, A3, letter, ...) in the standard, then actually define an entire set in your "style" file.

      Both have their merits, and the point of the auther was just to point out that CSS does have its purpose

    3. Re:Main Difference by SlightlyOldGuy · · Score: 1

      Lets see. I can create print documents from XML using XSL-FO, and take my pick of open source tools, or use CSS and use, um, a commercial closed-source app called Prince. No thanks.

    4. Re:Main Difference by rjstanford · · Score: 1

      Completely wrong. They're not talking about browsers at all. They're talking about what can be done with a program like prince (which one of the author's wrote). Current browser incompatibility is totally irrelevant.

      Alright, let me restate my sentence.

      The fact of the matter seems to be that they're comparing what you can do today, with a little work, using XSL transforms in any application that supports them, to what you may be able to do tomorrow with a proposed dedicated language in their own custom-written application.

      Well, color me impressed.

      --
      You're special forces then? That's great! I just love your olympics!
    5. Re:Main Difference by KillerDeathRobot · · Score: 1

      No, I'm pretty sure you can do all of that today in their custom-written application (which may or may not be one of a kind). They did already publish a book using these methods afterall.

      --
      Thinkin' Lincoln - a web comic of presidential proportions
  9. Browser support by revividus · · Score: 2, Insightful
    I love CSS and use it at every opportunity, but everyone is probably aware that the big CSS headache is browswer compatibility for features like positioning, and so forth. The worst offendor of modern browsers seems to be IE for Mac; why it is even worse than normal IE, I don't know, but it seems to be.

    Does XSL suffer the same cross-browser incompatibilities? This I don't know, and while I love CSS, if XSL was better at cross-browser homogenity(sic?) I could see that being a big feature.

    As a previous poster noted, though, a better solution would be for Microsoft to fix IE so it supported the wc3 recommendations....

    1. Re:Browser support by irc.goatse.cx+troll · · Score: 1

      "Does XSL suffer the same cross-browser incompatibilities? This I don't know, and while I love CSS, if XSL was better at cross-browser homogenity(sic?) I could see that being a big feature."

      A little, though it hasn't been as bad in my experience. But the beauty of XSL is you can transform it at the server end.
      I don't see why people act like you have to use one or the other, In my experience, its best to compliment eachother;
      Data goes in XML.
      XSL transforms XML data into XHTML for formatting(stripping out all of the fields it doesnt need to render, etc)
      CSS adds style to the XHTML (Adding all of the coloring and sizes)

      Thats how I did it when I wrote my dir list script. Sorry, no links (host died a while back, no backup copies), but what it did was turned a dir listening into XML showingfilesize, name, date comment, mime type, etc. Then XSL would parse the XML dir list and find if it was random files, or all images. Random files would convert it into a standard looking(but themed with css to match my site) dir index. All images and it would turn that same xml into a thumbnail gallery.

      --
      Pain lasts, kid. Its how you know you're alive. Sometimes I think this growing up thing is just pain management-TheMaxx
    2. Re:Browser support by jlrobins_uncc · · Score: 1

      AFAIK, there would be no cross-browser incompatibilities, since XSL / FO are server-side technologies.

    3. Re:Browser support by danheskett · · Score: 1

      You in fact do the transform of XML + XSL on the client side. It's not to terribly hard, but the results are typically incompatible between XML and XSL processors.

    4. Re:Browser support by alex_podam · · Score: 1

      I agree that CSS is pretty cute when used correctly, but the browser incompatibilities you mention are not so prominent anymore when old browsers are taken out of the mix.

      I'm not surprised IE Mac doesn't handle CSS very well as MS stopped developing it years ago, at version 5.0 (allthough I think another unofficial version 5.5 shipped with OS 10). I think around the time they bought their share in Apple and was forced to agree that it was too much work to try to compete with Safari.

      CSS support for IE on win32 is decent, but lagging in implementing new CSS2 properties (such as the blogger favourite max-width for those dynmically sizing columns). Opera (which is Håkon Wium Lies employer) and Mozilla are getting there (CSS2 compliancy), but still have some work to do.

      It's not really fair to compare XSL and CSS as their intended areas of use a different, but with some overlap and lots of scope for misuse: CSS is a declarative language for defining layout and cosmetics while XSL is for structurally changing a parsable X(HT)ML document. So what Håkon is ranting on about is really that CSS is better for styling documents for various platforms (e.g. handhelds, printers etc.), than XSL. But I would argue that it would be misuse of XSL to do that in the first place.

      I ONLY use XSL for transforming one flavour of XML into another (for instance if two systems communicate using XML and have different schemas). Using XSL to transform XML into a viewable (or printable) document on the client-side (in the browser) is rubbish anyway IMHO

      XSL tranformation is best done on the web-server as there is no guaranteed way of doing this in a safe, cross-browser way (the ONLY way in IE is using MSXML ActiveX control!)
      There is space for both technologies IMO

      It will be interesting to see what will happen to IEs faltering market share as Firefox and others gain even more of an edge when it comes to implementing new, cool CSS standards that IE doesnt have (and we dont expect a new major-version of IE until the release of Longhorn IIRC).

      As web devlopers start using these new features, many sites are going to render a lot better in non-MS browsers, which is a bit of a reversal from a few years ago, no? This is allready happening to a large extent(and not all developers code for graceful degradation, so more and more sites are going to become unusable with IE)...

    5. Re:Browser support by joeyjoejo1200 · · Score: 1

      I am completing a project where all of our configuration pages are done via a browser. I am using XML/XSL on the client exclusively, I've found it to be an EXTREMLY efficient way to split the work, I have one person writing the backend code that outputs XML, and another (me) writing the XSL. We recommend to our users to only use IE6 or Firefox/Mozilla and have had no compatibility issues between the XSL processors. The only quirk I've run across is Firefoxes decision on occasion to not allow you to enter type into text areas, but it rarely happens. I'm also planning on using XSL-FO on some future projects for print outs of logs, etc.

    6. Re:Browser support by Taladar · · Score: 1

      So it seems as if we need some sort of test suite for xsl processors

    7. Re:Browser support by Anonymous Coward · · Score: 0

      You've got your timeframe mixed up. Safari emerged after development for IE:Mac tanked, though before the official announcement that it was dead.

    8. Re:Browser support by arkanes · · Score: 1

      This is the only worthwhile way to do it (and your output doesn't need to be XHTML+CSS, it could be HTML+CSS or even just HTML), because CSS 1+2, especially as currently implemented, is totally broken. You have to add non-semantic hooks (divs and spans) to your markup for pretty much any non-trivial layout. Non-semantic markup is dumb, because it breaks the whole point of semantic markup. If you want semantic markup, store your documents as pure XML and treat XHTML/HTML has a rich text/formatting language used for output.

    9. Re:Browser support by prockcore · · Score: 1

      Does XSL suffer the same cross-browser incompatibilities?

      Yes and No. Certain browsers are missing support for Exslt's extensions for example, however, you can apply the XSL on the server side and serve the result, something you can't do in CSS. You can even use XSLT to create a PDF! Something you can't do in CSS.

      libxslt is very fast. Every page we serve is transformed before it is served, and we've survived multiple slashdottings just fine.

    10. Re:Browser support by beanluc · · Score: 1


      While Safari may have been ~released~ after the IE:Mac death, don't you doubt that Safari wasn't imagined, conceived, developed in part, or otherwise known to M$, ~before~ they stopped developing IE:Mac? They must have known of the "Apple browser".

      --
      Say it right: "Nuc-le-ah Powah".
    11. Re:Browser support by Anonymous Coward · · Score: 0

      Wouldn't a better solution be to get FINALLY get XSL in Firefox/Mozilla?

      Then everyone would be crowing about how freaking cool XSL is.

      I swear, it's like watching the unix heads (in general) ignore XML and use CSVs and other lovely data formats while the rest of the world was busy retooling to XML. A little late to the game there, a little late to the game with XSL in browsers.

    12. Re:Browser support by mike.newton · · Score: 1

      Anyone still using IE on a Mac (or otherwise, IMO) should be walking around with a paper bag on their head. I know there isn't much choice for older Macs, but anyone running OS X has the option of Safari, Firefox, Camino, Mozilla, etc.

      And I wouldn't go so far as to call it a 'modern' browser, it's like 5 years old now! It's rendering engine was miles ahead of the Windows version when it came out. IE for Windows never caught up until version 6.

    13. Re:Browser support by Anonymous Coward · · Score: 0

      If you want semantic markup, store your documents as pure XML and treat XHTML/HTML has a rich text/formatting language used for output.
      Yeah, but if you use XHTML+CSS, you get mostly-semantic markup that can allow a reader (as in the human variety) to use the source to understand the semantics of the document rather than wondering if a case of italics is for emphasis, a quote, the name of a book/movie/ship (a semantic use of spans actually), or something else all together.

  10. XML/XHTML as a layout language? by gowen · · Score: 5, Insightful

    As the old saying goes ... those who do not understand TeX are doomed to continually re-invent it ... badly.

    --
    Athletic Scholarships to universities make as much sense as academic scholarships to sports teams.
    1. Re:XML/XHTML as a layout language? by Austerity+Empowers · · Score: 1

      It's not very well known outside of academia. The only time I ever felt like TeX was better than all others was for highly mathematical school papers.

      Anyhow XML/XHTML has a somewhat different purpose/market. The purpose is not to create a perfect typeset document but a template that can be used for any given XML document that fits the genre. You could do this to some degree with TeX and it's references (it's been a loooong time), but I think these systems do it better.

    2. Re:XML/XHTML as a layout language? by Anonymous Coward · · Score: 0

      XML is NOT A LAYOUT LANGUAGE. It is a semantic markup. One should be able to use XSLT (a transformation language) to convert XML to different TeX markups, depending upon the needs of different media.

    3. Re:XML/XHTML as a layout language? by mithras+the+prophet · · Score: 4, Insightful

      I write my papers in TeX, mainly because it's so easy to create equations. In general though, as a layout language to produce documents that look just how I want, it's a fucking nightmare.

      --
      four nine eighteen twenty-7 thirty-nine forty-7 fiftyeight sixty-nine seventy-9 eighty-8 one-hundred-and-nine one-twenty
    4. Re:XML/XHTML as a layout language? by gowen · · Score: 1
      Anyhow XML/XHTML has a somewhat different purpose/market. The purpose is not to create a perfect typeset document but a template that can be used for any given XML document that fits the genre
      Exactly. So why are these people arguing over which is better at producing perfect typeset printed documents?
      --
      Athletic Scholarships to universities make as much sense as academic scholarships to sports teams.
    5. Re:XML/XHTML as a layout language? by gowen · · Score: 1
      In general though, as a layout language to produce documents that look just how I want, it's a fucking nightmare.
      To produce documents that look just how you want, all mark up languages are a fucking nightmare. TeX has the advantage that the document will look like a professional typesetter would want it to look (and invariably a million times better than the equivalent XHTML/CSS).

      If you really want true WYSIWYG, it's Quark Express or nothing.
      --
      Athletic Scholarships to universities make as much sense as academic scholarships to sports teams.
    6. Re:XML/XHTML as a layout language? by grouse · · Score: 1

      Well there are other things that are good too, such as FrameMaker, InDesign.

      P.S. It's QuarkXPress.

    7. Re:XML/XHTML as a layout language? by Leo+McGarry · · Score: 1

      TeX is a fantastic solution ... if you want your documents to look like TeX documents.

      If you want something else, TeX is a hideous bitch-goddess from hell who wants to fuck you up the ass and then gnaw your head off.

    8. Re:XML/XHTML as a layout language? by Leo+McGarry · · Score: 1

      Well, except for the fact that TeX is about three million years behind the state of the art in typography.

      And if you think QuarkXPress is worth using, no offense, but you're about three million years behind the state of the art, too. It's InDesign or nothing today.

    9. Re:XML/XHTML as a layout language? by Anonymous Coward · · Score: 0

      Sigh... you have some nerve talking about not understanding stuff.

      XML isn't a language. It's a syntax for markup languages, a "meta-language" if you will.

      XSL-FO is one such language. You can convert documents in any XML language to XSL-FO documents with XSLT.

      XHTML is not a layout language. It is an XML application. However you can convert XHTML documents to XSL-FO documents with XSLT.

      None of XHTML, XML or XSLT are layout languages.

    10. Re:XML/XHTML as a layout language? by pdboddy · · Score: 1

      Heh, actually, it's "whatever format the client sends" and "whatever format your printer(s) can handle" that matters in the printing business. :P You need to have a little bit of everything in order to make it work.

      --
      Julie Moult is an idiot.
    11. Re:XML/XHTML as a layout language? by Henrik+S.+Hansen · · Score: 1
      Well, except for the fact that TeX is about three million years behind the state of the art in typography.

      How is it behind? For a lot of things, it's a very good choice. And it's Free Software.

    12. Re:XML/XHTML as a layout language? by Speed+Racer · · Score: 2, Interesting

      Well, except for the fact that TeX is about three million years behind the state of the art in typography.

      And if you think QuarkXPress is worth using, no offense, but you're about three million years behind the state of the art, too. It's InDesign or nothing today.

      You do realize that InDesign's typesetting engine is based on TeX, don't you?

      Ahh, the delicious irony.

      --
      Free Mac Mini. Yes, I'm
    13. Re:XML/XHTML as a layout language? by gowen · · Score: 1
      but you're about three million years behind the state of the art
      Well, that's true. PS : Love you in The West Wing
      --
      Athletic Scholarships to universities make as much sense as academic scholarships to sports teams.
    14. Re:XML/XHTML as a layout language? by WillAdams · · Score: 1

      Oh well, there go my mods.

      I submit that if one understands TeX (and LaTeX) and works with them as they are intended to be adjusted, that there's really no limit to what one can do, or what one can make things look like.

      In support of this, I offer the TeX Showcase at http://www.tug.org/texshowcase.

      (ob. discl. it includes some stuff from my personal portfolio at http://members.aol.com/willadams)

      Even bad typography can be mimicked as is shown in a (thankfully unreleased) package to mimic Word's typography.

      Another document done with TeX (well, Omega) is at

      http://www.tug.org/tug2003/donate/

      Duane Bibby did the drawing, I did the layout and typesetting.

      Even the age-old complaint of Computer Modern being the only easily-usable font has fallen by the wayside w/ Jonathan Kew's wonderful XeTeX variant for Mac OS X ( available at http://scripts.sil.org/xetex ) and Will Robertson's nifty fontspec package ( http://www.mecheng.adelaide.edu.au/~will/tex/ ).

      I challenge you to find a better on-line text on a tool for typography than Peter Wilson's manual for his Memoir documentclass ( http://www.ctan.org/tex-archive/macros/latex/contr ib/memoir/memman.pdf ).

      If you're not managing to get things done in TeX as you might wish, you've only yourself to blame---for my part, I was very glad to discover TeX and in it a tool with no limitations other than human ingenuity.

      William

      --
      Sphinx of black quartz, judge my vow.
    15. Re:XML/XHTML as a layout language? by rxmd · · Score: 1
      Well, except for the fact that TeX is about three million years behind the state of the art in typography.

      And if you think QuarkXPress is worth using, no offense, but you're about three million years behind the state of the art, too. It's InDesign or nothing today.
      You do realize that InDesign's typesetting engine is based on TeX, don't you?
      No, it's not. That's a rumour that creeps up every now and then. What is true is that InDesign's paragraph layout algorithm is somewhat similar to TeX's in that it solves the line break problem by mapping it to a spanning-tree problem. This was an ingenious idea by Knuth that has been used in some typesetting systems since.

      However, that's about where it ends. InDesign is not designed for long documents, TeX is. InDesign is based on Unicode, TeX is still an 8-bit system at the core (even partly 7-bit, and don't even mention Omega, that's pretty much a dead system). TeX has math layout features, InDesign does not. InDesign knows about complex text layout features in fonts, TeX does not. TeX is a macro programming language, InDesign's layout engine is not.

      The main similarity is only that both produce good paragraph layout by using a related approach. InDesign probably borrowed from TeX in this respect, but the method is pretty much public domain now. And yes, TeX is light years behind, or at least LaTeX is; if you look at ConTeXt's features with regard to register or XML typesetting, LaTeX starts to look like the 80's piece of software it is.

      --
      As a state gets corrupt, its laws multiply; the most corrupt states have the most numerous laws. (Tacitus, Annales 3:27)
    16. Re:XML/XHTML as a layout language? by Leo+McGarry · · Score: 1

      I submit that if one understands TeX (and LaTeX) and works with them as they are intended to be adjusted, that there's really no limit to what one can do

      That's fine, but this is the 21st century. There's absolutely no excuse for making somebody learn to write computer programs in order to crank out a letter to grandma.

      Hell, even Apple's new word processor produces typography that's easily on par with TeX --infinitely superior to, if you consider that Pages can do both 8- and 16-bit Unicode --and does it through an easy-to-use front end interface. There's just no excuse.

      I challenge you to find a better on-line text on a tool for typography

      Um. I don't think Pages even comes with a manual. There's no need for one.

      If you're not managing to get things done in TeX as you might wish, you've only yourself to blame

      Great attitude. Tell me again why your point of view hasn't taken over the world?

    17. Re:XML/XHTML as a layout language? by WillAdams · · Score: 1

      There's no need to write macros to do basic tasks --- or even code for that matter, look at http://www.lyx.org for an example of a tool which enables this.

      XeTeX handles Unicode just as well as Pages does --- uses the same Quartz mechanism and Mac OS X input methods / keyboard layouts.

      Pages has an on-line help file, no? And of course, there'll be lots of books like, _iWork Pages: The Missing Manual_ --- but if it's so wonderful at imbuing typographic principles why do a lot of the documents shown in screen grabs have lines which are too long for their typesize (many seem to be more than three alphabets long, which is at least half an alphabet too many).

      Taking over the world doesn't matter to me. Being correct does.

      TeX is the most-flexible, least-limited typesetting tool available, and far more suited to my own work and working style than XPress or InDesign (both of which I use at work). While XPress and InDesign are both serviceable enough, they're not customizable / programmable enough for all situations, especially those involving long texts or repetition (which is much of what typography is).

      William

      --
      Sphinx of black quartz, judge my vow.
    18. Re:XML/XHTML as a layout language? by Leo+McGarry · · Score: 1

      There's no need to write macros to do basic tasks

      You missed my point. Writing TeX is programming a computer. You have to learn a whole new language. There's no excuse for that.

      Pages has an on-line help file, no?

      No idea. I've been using Pages since an early internal beta, and I've never needed it.

      why do a lot of the documents shown in screen grabs have lines which are too long for their typesize

      Because how long a line of type needs to be is a matter of opinion.

      Taking over the world doesn't matter to me. Being correct does.

      But see, that's the problem. Typesetting isn't a science. There's no correct or incorrect. It's an art. And because TeX is a programming language that requires you to run a damn compiler in order to generate a page of type, it takes the art right out of it. Which is why generating a document that conforms to somebody else's idea of what it should look like is fairly easy, as long as you're comfortable with programming a computer, but generating a document that looks like what you want it to look like is damn near impossible.

      TeX is the most-flexible, least-limited typesetting tool available

      It saddens me to think that you might even believe that.

      While XPress and InDesign are both serviceable enough, they're not customizable / programmable enough

      See? There you go. You're more interested in programming a computer than you are in creating something beautiful. That explains your myopia.

    19. Re:XML/XHTML as a layout language? by SunFan · · Score: 1

      In general though, as a layout language to produce documents that look just how I want, it's a fucking nightmare.

      Was TeX ever intended to do layout? Doesn't it do the typesetting for you?

      --
      -- Microsoft is the most expensive commodity operating system and office suite vendor in the marketplace.
    20. Re:XML/XHTML as a layout language? by eh2o · · Score: 1

      hm, what about math-mode? is quark (or whatever) reasonably compenent at this (and possible to do without mousing)? (the only reason I use tex, er, latex actually).

    21. Re:XML/XHTML as a layout language? by rxmd · · Score: 1

      No, it isn't. Actually, there is no commercial typesetting system whose math typesetting is as good as TeX's.

      If you want WYSIWYG (more or less) typesetting with a good math editor, LyX is the tool of choice.

      --
      As a state gets corrupt, its laws multiply; the most corrupt states have the most numerous laws. (Tacitus, Annales 3:27)
    22. Re:XML/XHTML as a layout language? by WillAdams · · Score: 1

      Using LyX (which is a graphical front-end for LaTeX) doesn't require any programming / coding at all. It's essentially indistinguishable from Word in usage.

      I'm interested in being able to do anything I want in a reasonable fashion --- I don't consider things like doing search-replace in an XPress Tags file to insert ligatures from an Expert font reasonable, nor is having to access the glyph palette in InDesign to insert alternates for Zapfino or Hoefler Text reasonable either.

      Good enough isn't, and I want a tool without limitations --- Quark can't make a hyper-linked .pdf of multi-file document, InDesign can't typeset equations or manage large documents. That said, InDesign is certainly the best graphical page layout program currently available, and the Pages module in iWork is a worth successor to the NeXT program Pages by Pages, Inc.

      I'm not saying that TeX should be used for all things, merely that it's the best tool for the sort of things I do for the most part (though I do use some other tools for things in my portfolio, see http://members.aol.com/willadams ), and overall a tool worth considering, and one which can be reasonably adapted to pretty much any project if need be.

      By contrast, to return to the topic at hand --- how does one get XML through InDesign to get a typeset page with as little human intervention as possible? Is there any better tool for automation than AppleScript? What if one wants to deploy on a Windows box?

      William

      --
      Sphinx of black quartz, judge my vow.
    23. Re:XML/XHTML as a layout language? by edp927 · · Score: 1

      In general though, as a layout language to produce documents that look just how I want, it's a fucking nightmare.

      Well this is your problem right here, you obvoiusly misunderstood how you wanted it to look. TeX is really good at fixing these problems for you.

    24. Re:XML/XHTML as a layout language? by yerdaddie · · Score: 1

      My question is: where's Kuark or gInDesign?

      I've gotten used to using Docbook, but a nice InDesign clone of the same quality of SodiPodi would make many people overjoyed.

      (/me quitely mulls over how long it would take to program)

    25. Re:XML/XHTML as a layout language? by CRCulver · · Score: 1

      InDesign is based on Unicode, TeX is still an 8-bit system at the core (even partly 7-bit, and don't even mention Omega, that's pretty much a dead system).

      Dominique Unruh's latex-unicode package allows one to keep one's manuscripts in UTF-8. As a Classics undergraduate frequently writing in the Latin and Greek alphabets, and often mixing in Cyrillic and IPA, I am totally happy with LaTeX. Sure, I'm sure there's some low-level transformation going on, but since I get high-quality typography in multiple scripts for absolutely free, I can't complain.

    26. Re:XML/XHTML as a layout language? by castrox · · Score: 1

      I thought the idea behind TeX was that you shouldn't have to care about the layout, but rather only care about the *content*. And at that it is pretty damn sleek!

      --
      Fight for your digital freedom, join the EFF *now*: http://www.eff.org/support/
    27. Re:XML/XHTML as a layout language? by ggy · · Score: 1

      Well, you could take a look at Scribus.
      Even though it's nowhere near InDesign as features, imho, but if it does what you need, then there you go.
      (One of the bigger limitiations is the lack of Windows version, which stumped me last time I needed a DTP application.)

    28. Re:XML/XHTML as a layout language? by Leo+McGarry · · Score: 1

      It's essentially indistinguishable from Word in usage.

      You evidently don't use Word much. Even Word, which is about as 20th-century a program as you're going to find still in common use, is head-and-shoulders superior to the abomination that is Lyx.

      I'm interested in being able to do anything I want in a reasonable fashion

      Me too. It's just that your definition of "reasonable" isn't the same as mine.

      Take your use of three hyphens to indicate a dash, for instance. That's a leftover from the bad old days of seven-bit typesetting systems. Why don't you use real en (-) and em (--) dashes instead? I'm guessing it's because you're still under the mistaken apprehension that hyphens are an acceptable alternative. Even if that were still true, three hyphens is exactly the wrong number. In the old days, typewritten manuscripts used two hyphens to indicate an em dash and on hyphen to indicate an en dash.

      See? TeX has you all screwed up.

      I don't consider things like doing search-replace in an XPress Tags file to insert ligatures from an Expert font reasonable

      Good grief. Me neither. Good thing it's not 1989 any more. "Expert fonts?" Holy cow. Those things went out with hand-kerning.

      nor is having to access the glyph palette in InDesign to insert alternates for Zapfino or Hoefler Text reasonable either

      Good thing InDesign automatically inserts contextual glyphs when the "use contextual alternates" box is checked then, huh?

      Granted, InDesign doesn't handle particularly baroque fonts like Zapfino, but all proper Mac programs do. E.g., Pages.

      the Pages module in iWork

      Module? I think you need to do a little more to familiarize yourself with what you're talking about. Pages isn't a "module." It's a program. And iWork is just the brand name of a set of programs sold in one box.

      I'm not saying that TeX should be used for all things

      That's good. Because I'm saying that it should be used for no things. There's not a single need for TeX left. It's obsolete, obviously and painfully so.

      how does one get XML through InDesign to get a typeset page with as little human intervention as possible?

      Why would you want to do it "with as little human intervention as possible?" Remember: We're creating art here, not stamping out tin cans. This isn't programming a computer.

      The problem lies not with the tool, but with your attitude, I think.

      What if one wants to deploy on a Windows box?

      Then you deserve what you get.

    29. Re:XML/XHTML as a layout language? by zsau · · Score: 1

      TeX, or at least LaTeX, produces PDFs that look a lot better than most other things people are going to use for that sort of thing. The kind of typesetting Word or Mozilla produces are acceptible for webpages (I suspect only because I have no choice), but when I see PDFs that are little more than just Word documents printed to PDF, it makes me want to tear my eyes out.

      If that means I can't use a proper layout language, can't produce documents that look just how I want, then it's a small price to pay.

      --
      Look out!
    30. Re:XML/XHTML as a layout language? by Anonymous Coward · · Score: 0

      Well, that's LaTeX. TeX (which LaTeX is built on) is quite heavily based on formatting-type instructions.

    31. Re:XML/XHTML as a layout language? by grouse · · Score: 1

      Once the "open source people" can produce a decent Microsoft Word clone, then I'll start looking to them for a professional-quality DTP publication.

    32. Re:XML/XHTML as a layout language? by geordieboy · · Score: 1

      - There's not a single need for TeX left. It's obsolete, obviously and painfully so.

      So you're saying there is a superior alternative for typesetting highly mathematical documents (bearing in mind that TeX is free)? What is that? (I'm sure there is one, you clearly have an answer to every possible question).

      --
      The world is everything that is the case
    33. Re:XML/XHTML as a layout language? by WillAdams · · Score: 1

      A typical, naive user won't be able to tell the difference between how they use LyX and how they use Word. LyX is a graphical front-end to LaTeX which allows access to much of LaTeX's power. Granted Word has capabilitied not present in LyX (revision tracking is a good example).

      Pages is a program I've looked forward to and argued for for a long while --- however, a couple of quick questions on its capabilities:

      - is it compatble w/ the equation editor in Claris/AppleWorks? Is it able to grant finer control over equations?
      - is there a way for a template designer to specify styles for use in specific areas of a documents without requiring user intervention? (say if one wants proportional old-style figures in text, monospaced old-style figures in tables, and proportional lining figures in running heads)
      - is there an easy way to ask that a paragraph run a line longer or shorter _if_ doing so doesn't exceed a certain ``badness''
      - how about running an entire chapter long or short?

      All of the above is trivial in TeX/LaTeX/ConTeXt.

      Hyphens for en / em dashes. I move constantly from Windows to Mac to Unix boxes. Using hyphens (two for en dashes, three for ems) allows me to unambiguously represent them. It's a standard which was also present in PageMaker. It's also slightly faster to tap a key thrice than to do a three-key combination (for me at least).

      Unfortunately, InDesign, Illustrator and PhotoShop are the only mainstream apps which fully support OpenType font access, a thing which I've railed about for a long while, but before these apps existed / had these capabilities, I've been using TeX to get contextual ligatures. You may've had the leisure of waiting for these apps, but I've got stuff in my print portfolio dating back to 1989, and I wasn't willing to compromise on not having old-style figures, f-ligatures &c.

      Does InDesign support contextual ligatures for AAT fonts? XeTeX lets me access _all_ of Skia's features (and Zapfino's and Hoefler Text's, and for the latter two I don't have to ``upgrade'' to the OpenType versions), including its weight and width axes. I know InDesign 2 doesn't---haven't had a chance to try CS.

      If TeX is obsolete, then where is the high-end equation editor for InDesign? How does one do publications like

      http://www.atlis.com/services/composition/sample s/ TeX%20Sample%20Pages/

      or create a system like http://custompub.aimsapp.com

      Or consider the simple matter of a child's Rebus story --- is it reasonable to double-click on the glyph palette for _every_ image?

      http://www.tug.org/TUGboat/Articles/tb24-2/tb77a da ms.pdf

      Lessee, I've provided links to books, a poster, and various presentations --- got any links to a textual document which can't be done in TeX?

      The difference in our attitude is that before I pass judgement on a tool, I learn how to use it, and evaluate _all_ of its limitations. TeX is the first layout tool I've found whose _only_ limitation is (my) human ingenuity. Quark is limited by what people find profitable to create as XTensions, InDesign by what's available as plug-ins, Pages has the advantage of being able to use Services, but even so, you can't do arbitrarily complex things in it w/o an unacceptable amount of effort. You may find that acceptable, but for my work, it's not.

      William

      --
      Sphinx of black quartz, judge my vow.
    34. Re:XML/XHTML as a layout language? by WillAdams · · Score: 1

      minor correction:

      `` - is it compatble w/ the equation editor in Claris/AppleWorks? Is it able to grant finer control over equations?''

      should've read something like, `` - is it compatble w/ the equation editor in Claris/AppleWorks for legacy documents? (LaTeX2e is nice enough to offer a compatibility mode for 2.09 which goes _way_ back) Is it able to grant finer control over equations? (esp. in terms of aligning related equations which have text in them).

      William

      --
      Sphinx of black quartz, judge my vow.
    35. Re:XML/XHTML as a layout language? by Leo+McGarry · · Score: 1

      Wow. You're just completely married to 1979, aren't you? Let me see if I can be as clear as possible here: You are wrong. In every single thing you said here, you are wrong. Your information is out of date. You do not have a clue what you're talking about.

      But you know what the funniest part was? The part that absolutely cracked me up and made milk shoot out of my nose? The part where you said that you incorrectly type three hyphens instead of typing a dash because it's faster. Where's the fire, son? What's so damn important that you can't take the fraction of a second necessary to get it right?

      You're a dinosaur, son. You're bounded within a nutshell, and you've deluded yourself into believing that you're the king of infinite space.

      If you ever decide to look at a damn calendar, you let me know. Kay?

    36. Re:XML/XHTML as a layout language? by WillAdams · · Score: 1

      What about the part where you didn't take into consideration that if I'm using Windows, I have to remember to _not_ do option-shift-hyphen and instead hold down the alt key and strike 0151 on the keypad (unless its a machine I've installed AllChars for Windows in which case it's tap the right control key, m, then -). It's a lot easier to just always use --- and either trust TeX to get it right, or search-replace at the end of the project.

      Funny you should mention calendars --- ever hear of a book called _Calendrical Tabulations_?

      http://www.amazon.com/exec/obidos/ASIN/052178253 8/ 102-9996269-8967304

      I did the moonphase font for it. Care to guess how it was typeset?

      Let me know when you think you can typeset something like that in less than a couple of hours (which was how long the TeX run took), 'kay?

      Are you not going to try to provide an example of a textual page which can't be done in TeX?

      William

      --
      Sphinx of black quartz, judge my vow.
    37. Re:XML/XHTML as a layout language? by Leo+McGarry · · Score: 1

      What about the part where you didn't take into consideration that if I'm using Windows, I have to remember to _not_ do option-shift-hyphen and instead hold down the alt key and strike 0151 on the keypad

      Isn't that your problem? Your inability to type isn't something that particularly interests me.

      Let me know when you think you can typeset something like that in less than a couple of hours (which was how long the TeX run took), 'kay?

      Sigh. Still not getting it. It's not automation. It's art. You don't get bonus points for being fast.

      Are you not going to try to provide an example of a textual page which can't be done in TeX?

      Of course not, because for all I know, TeX is capable of describing any printed page you can imagine. But so is PostScript; so is PDF. That's not the point. The point is that TeX is completely obsolete. Its liabilities vastly, vastly outweigh any possible imaginable advantage that it might once have had.

      Why should you understand this? You think computer automation is still the neatest thing since sliced bread. Like I said, you're stuck in 1979.

    38. Re:XML/XHTML as a layout language? by WillAdams · · Score: 1

      What's the largest project you've ever worked on?

      My first book at my day job was 2,200 pages. The project I just finished had almost 5,000 graphics and was over 1,000 pages.

      How long do you think it'd take you to paginate _Calendrical Tabulations_ in InDesign?

      Where is a decent equation editor for Adobe InDesign?

      Have you ever had to do a college-level math or physics textbook?

      How about creating an automated typesetting system such as http://custompub.aimsapp.com ?

      InDesign is a fine tool, but it's limited by what Adobe and plug-in manufacturers make for it (I checked --- you can't get at Skia's weight and width axes, nor its alternates, nor ligatures beyond the f-ligatures in the AAT version of Zapfino or Hoefler Text), or available man-power/time. Your work doesn't require you to go beyond these limits---mine does. Moreover, I don't see how your opinion on a tool can be valid if you're not capable of using it fully.

      Here're a couple of pieces from my portfolio:

      http://members.aol.com/willadams/portfolio/typog ra phy/peace_on_earth.pdf

      http://members.aol.com/willadams/portfolio/typog ra phy/i_am_your_flag.pdf

      http://members.aol.com/willadams/portfolio/typog ra phy/thebookoftea.pdf

      http://members.aol.com/willadams/portfolio/typog ra phy/typefaceterminology.pdf

      http://members.aol.com/willadams/portfolio/typog ra phy/onetype.pdf

      What've you got to show off?

      William

      --
      Sphinx of black quartz, judge my vow.
    39. Re:XML/XHTML as a layout language? by Leo+McGarry · · Score: 1

      Yes, yes, you're very pretty. All the other kids are just jealous.

    40. Re:XML/XHTML as a layout language? by Ohreally_factor · · Score: 1

      That should be "Sigh. Still not getting it. It's not automation. It's art. You don't get bonus points for being fast if it looks like crap. Granted, "looks like crap" is ultimately subjective. But my point being that you do get bonus points for speed, if the output is otherwise equal.

      But really, when he says he types --- rather than -- because it's faster, he means he's lazy.

      --
      It's not offtopic, dumbass. It's orthogonal.
  11. There is Nothing Worse Than XSL by the0ther · · Score: 0

    Except perhaps having your flesh ripped off with pliers. That's pretty sucky. But honestly XSL is a piece of garbage. Pour gasoline over it and toss a match on it.

    1. Re:There is Nothing Worse Than XSL by stupidfoo · · Score: 1

      A lit match?

    2. Re:There is Nothing Worse Than XSL by SoupIsGoodFood_42 · · Score: 1

      Awww... Looks like someone tried to learn XSL and couldn't get their head around it, then decided to call it garbage rather than admit to themselves that they're simply not smart enough to understand it.

    3. Re:There is Nothing Worse Than XSL by the0ther · · Score: 0

      Hey asshole, you couldn't be more wrong. XSL is basically a functional language with none of the benefits. I am fine with functional languages and recursion but XSL requires way more code than most functional languages (like Lisp & Scheme). So it's basically all the weirdness of a functional language without the main benefit, terseness.

  12. Correction - not text sizes, but paper sizes by SuperKendall · · Score: 1

    Forgot to edit that out before I posted - the size selected is relaly a paper size, which the CSS already knows about. But the point abou tthat value remaining hard-coded in the CSS remains.

    --
    "There is more worth loving than we have strength to love." - Brian Jay Stanley
    1. Re:Correction - not text sizes, but paper sizes by dossen · · Score: 1

      I'm only guessing here, but since it's "cascading stylesheets", maybe a renderer (browser or whatever) should allow one to apply a suitable stylesheet, if printing options differ from those in the provided stylesheet? Another option would be to fit pages like pdfreaders does (pdfs also usually (always?) have pagesize hardcoded).

  13. Riiightt by Safety+Cap · · Score: 3, Insightful
    The article boils down to: XSL (FO) is harder to use than CSS, so CSS r0xx0r5!

    The same argument could be applied to RDBMS: "Stored Procs are harder to use, so move the logic into the PHP code!!!" or Languages: "Pointers are hard to use, so VB.NET r0xx0rs over C!!!!"

    My experience with the whole mess is that, yes, XSL-FO->PDF is harder to set up, but I get the same output every time. We tried to use CSS, and all it took to screw up the works was have somone set their browser margins or font size differently. Or use a non-CSS-compliant browser. We don't have control over the user's browser, but if we output to PDF, we have total control. Oh, but it is harder to use the latter, so forget it.

    Q: How can you tell if a website was designed by a know-nothing monkey? A: "This site best viewed in 800x600, 1024x768, etc."

    --
    Yeah, right.
    1. Re:Riiightt by m50d · · Score: 1

      The thing that people tend to forget is that the web is about amatuers. That's why it took off. Anyone could write html, write their own website, and they did. Preserving that situation is a good thing.

      --
      I am trolling
    2. Re:Riiightt by biggles2k · · Score: 2, Interesting

      The article boils down to: XSL (FO) is harder to use than CSS, so CSS r0xx0r5!

      Actually, the article boils down to: CSS is easier to use by those who must lay out both the electronic and printed page, so CSS r0xx0r5.

      This is very true since those who spend time designing and laying out readable pages are generally NOT programmers and may not have the desire or aptitude to decipher/code hundreds of lines of XSL prose.

      Basically, it's a matter of using the right tool for the right job. The article fully admits that XSL is much more powerful than CSS and can certainly overcome CSS's deficiencies, but the overall simplicity of CSS might be more suitable for this particular job.

    3. Re:Riiightt by Anonymous Coward · · Score: 0

      and it is and allways will be, since you can still use themost very basic html like many still do.

    4. Re:Riiightt by Anonymous Coward · · Score: 0
      "Pointers are hard to use, so VB.NET r0xx0rs over C!!!!"
      Well, since nearly *anything* r0xx0rz over C, this isn't really that surprising...
    5. Re:Riiightt by DrVomact · · Score: 2, Insightful
      Yes, but this has nothing to do with XSL vs. CSS, it's about HTML vs. PDF. And yes, if control is what you're after, then PDF is the way to go. How dare a mere user set his browser's font size larger just because his eyes aren't so good anymore and he'd rather see big print? (Sure, I can magnify PDF, but that doesn't reflow the document, and I'm left scrolling all over the place to get to see the whole thing, sort of like a fly crawling over a giant newspaper page.)

      There may be a good reason for your desire to control...but I sure hope it isn't just a desire to dictate how your documents look in my browser.

      Q: How can you tell if a website was designed by a know-nothing monkey? A: "This site best viewed in 800x600, 1024x768, etc."

      How about: A: It loads in Acrobat.

      --
      Great men are almost always bad men--Lord Acton's Corollary
  14. XSL isn't trying to replace CSS by Anonymous Coward · · Score: 2, Insightful

    XSL is supposed to take in semantic content and transform it into presentation for the web. If you're going to make gross generalizations, one ought to compare XSL to templating engines. The two technologies are meant to work in tandem

    1. Re:XSL isn't trying to replace CSS by handslikesnakes · · Score: 1

      While normally I would be nodding vigorously in agreement, the article was talking about XSL:FO (which has quite a bit of overlap with CSS).

    2. Re:XSL isn't trying to replace CSS by SoupIsGoodFood_42 · · Score: 1
      XSL is supposed to take in semantic content and transform it into presentation for the web.

      The web? For presentation? Not always, and was never designed just for that either.

      XSLT stands for Extensible Stylesheet Language Transformations. And although it has the word "stylesheet" in it, it has nothing to do with CSS, or should be compared to CSS in it's use.
      It's a language specificly designed to transform XML into something else (quite oftern a differently structured XML file). Not nessesarily for the web or presentaion.

      I've used XSL files to pull together from several XML files and create one XML file which we use in specific web apps. Some of those apps take that XML file and then transform it (using another XSL file) for part of an HTML webpage, which will be styled using CSS.

  15. aren't XUL and firefox good examples? by cyfer2000 · · Score: 1

    XML + CSS?

    --
    There is a spark in every single flame bait point.
    1. Re:aren't XUL and firefox good examples? by Anonymous Coward · · Score: 0

      XUL is for user-interface...

  16. Yes it does by SuperKendall · · Score: 1

    I've done a lot of stuff with XSL in the past, and know from experience that XSL does soffer some pretty annoying cross-browser unpleasnantness. That's why generally XSL is done on the server before the user sees it, though technically you could send the user an XML document and point them at a XSL file for transform. If you do anything tricky different browsers can break (even between different versions of IE, but then what else is new?)

    Something like the XSL:FO described I would say would be more generally used to generate a PDF for the user that they would then print. I was at a seminar held by a guy who used it for a whole medical text book that was to be printed, and the reslts were fantastic. If you have a lot of data and need to produce a nice looking document XSL:FO (Formatting Objects) can work really well.

    --
    "There is more worth loving than we have strength to love." - Brian Jay Stanley
  17. There is no way I am even attempting to RTFA... by jborawski · · Score: 1, Funny

    I mean /. topics usually contain several links, but that is just link overload...

  18. Re:ATTENTION! by grub · · Score: 1

    Taco ignores all emails about his beloved $20K-a-year staff

    Is that all they make? References? Really, it's not worth getting out of bed for that.

    --
    Trolling is a art,
  19. Actually there is one ten feet from me.... by SuperKendall · · Score: 1

    Big inkjet plotter at work. Not great quality for photos being a kind of old printer, but wonderful for huge charts or sequence diagrams for complex code flows.

    --
    "There is more worth loving than we have strength to love." - Brian Jay Stanley
  20. Right, but .... by Anonymous Coward · · Score: 0

    Basically - sure the XSL is longer, but also more flexible in terms of use.

    That's the whole point of the article, that for many (most?) uses, the extra flexibility is not needed and the features offered by CSS is more than up to snuff to get the job done. I mean sure, instead of using Project you can use Excel with a boatload of macros and have a more "flexible" system, but the point is that Project encapsulates most of what people want to do. After all, this is the exact same argument that deals with why we now generally program in C++ or Java vs assembly right?

  21. hear who? by dutt · · Score: 0, Offtopic
    CSS will never fix [printing]. Did you hear me? CSS will never fix it!

    No, I didn't hear you.

  22. The authors aren't talking about using browser-CSS by watanabe · · Score: 4, Informative

    There's already a lot of discussion here about how IE's XSL transforms (and CSS support in printing) both suck, and how a proper workflow for XSL involves a server-side transform.

    The authors of their CSS Rocks article are imagining that you're going to use software like Prince, (software that one of them created) to apply CSS3 rules to XML and get PDFs out of them.

    Another way to say this is that they're not talking about how to fix the browser -> print workflow in this article (although one of the authors works for Opera, so I imagine he's thinking about it). They're talking about easy ways to transform XML to PDFs, and discussing why you might use CSS to do such a thing.

    This courteous and friendly rationalizing of the slashdot editor's inflammatory post has been brought to you by my company, which is paying me for the time I use to write this. The opinions, of course, are mine only.

  23. LaTexX still better, but there is XSL:FO by SuperKendall · · Score: 1

    You are right that XML (and kin) are not typesetting systems.

    However, there is a language called XSL:FO (Formatting Objects) written on top of XSL that can be used to describe typsetting for XML documents, as printing is just one sort of transform. People usually use it to produce PDF's of data, but I have seen it used to produce a book of medical images.

    --
    "There is more worth loving than we have strength to love." - Brian Jay Stanley
    1. Re:LaTexX still better, but there is XSL:FO by Anonymous Coward · · Score: 0

      XSL:FO is NOT "written on top of" XSL....

      XSL has two parts... XSLT and XSL:FO

    2. Re:LaTexX still better, but there is XSL:FO by battjt · · Score: 1

      I wrote a reporting system using XSL:FO. I had to later port it to LaTeX because XSL:FO is too immature. Due to design XSL:FO transformers eat memory for multiple page tables. TeX is designed very efficiently (it had to be back when originally written). The TeX based system is soooo much faster and more reliable!

      Joe

      --
      Joe Batt Solid Design
  24. Nerd fight!!! by revery · · Score: 2, Funny

    an article titled Printing XML: Why CSS Is Better than XSL written by Michael Day and Håkon Wium Lie. The article was written in response to Norm Walsh's claim that CSS will never fix [printing]. Did you hear me? CSS will never fix it!".

    Let the hair pulling and the name calling begin.

  25. Program vs. XSLT by hey · · Score: 1

    I have looked at XSLT code and its pretty horrible.
    Its much easier to write a Perl script to read in the XML, "transform" it and write out new XML.

    1. Re:Program vs. XSLT by leoboiko · · Score: 1

      I have been writing XSLT for some time and I'm under the same impression. Though the functional language is cool, I don't think the idea of making it XML was very good.

      Wouldn't it be simpler and better to design XSLT as a API, and transform XML using existing programming languages? Any XSL gurus have anything insightful to say about?

      --
      Prescriptive grammar:linguistics :: alchemy:chemistry. Stop being a nazi and learn some science.
    2. Re:Program vs. XSLT by killjoe · · Score: 1

      I agree. If I have to do anything other then a simple transform I would much rather do it in a language then XSL.

      --
      evil is as evil does
    3. Re:Program vs. XSLT by WebCowboy · · Score: 1

      Its much easier to write a Perl script

      I wholeheartedly agree, but it probably depends on your mindset. I'd say processing/transforming XML with Perl is just as powerful as using XSLT and quite a bit more flexible, as Perl is quite forgiving. XSLT looks rigid and inflexible. Perl strives to make the easy tasks simple to accomplish and difficult tasks possible. I suppose XSLT makes all things possible, but no task completely simple. It looks to me to be about as fun to code in XSLT as it is to code in FORTRAN77.

      But XSLT code as "horrible"? Nothing's more horrible than badly hacked Perl. On the other hand, I've seen Perl that almost looks like plain english with weird punctuation--written right you can almost read it aloud and it would explain the process. I don't know of any other programming language that has been used in poetry writing contests (I suppose you can write C poetry as well, but you have to cheat and use defines). That is Perl's downside--very powerful and flexible, but it gives you a lot of rope, and Larry even tied it in a noose at the end to make it convenient should you decide you wish to hang yourself.

      XSLT has an upside to counter its rigid and sometimes awkward structure. I suppose that being formatted in XML makes it a whole lot easier to parse than most other programming languages. XSLT keeps things structured as well. This limits the potential for the code to become obsfucated/convoluted. Looking at the two languages, I'd have to say that it looks like Perl was written to allow programmers to get the job done, and XSLT was written to allow machines to interpret it easier and would be better suited as a language used by an application that has a drag-and-drop user interface and auto-generates the code.

    4. Re:Program vs. XSLT by tburke · · Score: 1

      Funny, I do the opposite. I use lots of perl to control the flow of XML streams but I always fall back to XSLT for the actual transformations.

      I find I have to write much more perl code to handle namespaces and all the other XML infrastructure that I get for free in a screen-full of XSLT. Small changes in a particular XML stream's structure are much more likely to expose shortsightedness in my large chunks of perl code.

    5. Re:Program vs. XSLT by Anonymous Coward · · Score: 0

      Sorry, we cannot listen to you, since we don't even know how to use XSL, we'd rather bash it and go back to our antique ways of handling XML data.

    6. Re:Program vs. XSLT by SoupIsGoodFood_42 · · Score: 1
      Your have obviously never done any real work with XML files. For starters, I'm not even sure if it's techicaly possable to truly parse an XML document with any Perl script (there was a debate here on Slashdot about it, I think).

      Perl simply doesn't have the features to be compared with XSL. They are completely different languages. And if you think that a messy XSL file can be replaced with a nice, elegant Perl script, then you are in for a big suprise.
      Sure, you can transform XML with Perl very easly in some cases. But in others, you will find yourself realizing why XSL was created.

  26. TeX by bsd4me · · Score: 1

    6. Most TeX distros [like tetex] are FREE and open source.

    And there lot of OSS tools that support TeX. My favorite is using PARI/GP to do some math, and then using the TeX output to copy-and-paste into a document (like a journal submission). I did this for my last paper, and it worked well. The paper had to be submitted in Word format, though, so I made my editor re-enter all of the equations. :)

    --

    (S(SKK)(SKK))(S(SKK)(SKK))

    1. Re:TeX by fshalor · · Score: 2, Interesting

      Lyx... http://www.lyx.org/ is my favoite.

      It's the reason I switched to linux.
      It's the reson I bought an iBook.
      It's the reson I passed some tough courses.

      Down with WYSIWYG!

      --
      -=fshalor ::this post not spellchecked. move along::
    2. Re:TeX by Taladar · · Score: 1
      Down with WYSIWYG!
      I second that.
    3. Re:TeX by BitchKapoor · · Score: 1

      Have you tried GNU TeXmacs? It's heavily LaTeX-inspired, but WYSIWYG, and also supports scripting in Scheme. Unfortunately, it's pretty slow.

  27. css is better, but is still full problems by pstreck · · Score: 1

    i love css, it has made my life much easier. yet it still has been the cause of many nights of frustration. centering blocks, floating images appearing sparadically, poor.. yes i say poor documentation! bad browser support, etc. css is much better than xsl but we still need something more universal and sensible.

    --

    Later,
    Phil
    1. Re:css is better, but is still full problems by ydnar · · Score: 1

      CSS is incredibly well documented, both officially and by its users.

      Dealing with browser quirks takes nothing more than time and a little pit of patience. You have to set your goals of which browsers with which features, plan for graceful fallback, and test test test. Just like any trade with numerous and subtle exceptions, if you do it long enough it all becomes second nature and you find yourself writing CSS that not only validates, but looks right on every browser you desire.

      CSS would be nowhere today if it had been an XML-based language. The spec is pretty well written and (numerous gotchas excepted) pretty well supprted, even by Microsoft.

    2. Re:css is better, but is still full problems by CaptnMArk · · Score: 1

      I kinda agree with you.

      IMO, CSS still isn't a no-brainer replacement for table-based design. It requires much more care to make it work even if you limit yourself to IE6 and Mozilla Firefox.

    3. Re:css is better, but is still full problems by Anonymous Coward · · Score: 0

      I see where you get that impression, remove the IE6 from the limit yourself to, perhaps replace it with Opera, and you will not have anywhere close to the problems IE causes.

    4. Re:css is better, but is still full problems by DrVomact · · Score: 1

      Poor documentation? What do you think CSS is, a product? You have been using the spec as documentation? No wonder your suffering is great. There are plenty of decent books out there on CSS. My current favorite is Cascading Style Sheets 2.0 Programmer's Reference by Eric A. Meyer.

      Most of my problems with CSS stem from poor browser implementation, not from faults inherent in the spec.

      --
      Great men are almost always bad men--Lord Acton's Corollary
  28. Why use either? by istartedi · · Score: 1

    If a program uses XML to store something that is meant to be printed, use that program. For example, I use AbiWord to print AbiWord documents, which are XML. Whatever AbiWord uses to convert the XML so the printer can understand it is not something I care about unless I am an AbiWord developer.

    Whatever works best to print XML that represents foo is irrelevant if foo wasn't designed to be printed.

    --
    For all intensive purposes, "whom" is no longer a word. That begs the question, "who cares"?
  29. Re:Håkon Wium Lie by Anonymous Coward · · Score: 0

    Do not answer that question. My client wishes use the "German Library Copying" defense.

  30. Note to IT community... by kahei · · Score: 3, Insightful


    Please stop trying to build up this markup language, which annotates documents with suggestions as to how they might be displayed, into a typesetting system. Please get a typesetting system instead, and use formats such as eps and latex that are relevant to the task.

    Thank you.

    Also please stop using XML to represent arbitrary data. It's a markup language. It annotates and divides text. It does not extend easily to representing all data in all contexts, and when you try and make it do that, you wind up with syntax like '[CDATA['.

    Thank you for your co-operation and enjoy your day. This has been a Public Service Rant brought to you by Diet Coke.

    --
    Whence? Hence. Whither? Thither.
    1. Re:Note to IT community... by GigsVT · · Score: 0, Troll

      It's not the IT community that is trying to do that, it's the idiot with the Apple computer and a copy of Frontpage or Flash whatever.

      They want total control over what the users sees, and can't understand that someone might have a monitor running a different resolution than theirs, or that the person might want to view the data 30 years from now on a completely different display technology.

      In other words, it's idiot Mac fags who care more about the artistic look of the page than actually conveying data.

      --
      I've had enough abrasive sigs. Kittens are cute and fuzzy.
    2. Re:Note to IT community... by Anonymous Coward · · Score: 0

      Well, its because the markup languages are pants that the Mac community want to take total control over their presentation. Macs are fantastic at design don't forget - Quark is a typesetting system and Mac users have no problem with that..

      At least this is my view of them (not being a mac user :) ).

    3. Re:Note to IT community... by megarich · · Score: 1
      Thank you for your co-operation and enjoy your day. This has been a Public Service Rant brought to you by Diet Coke.

      Dear People at Coca Cola,
      Please stop sending up public service announcement with its only intent to shamelessley promote your product!
      We the IT community will not tolerate it! You have many other means of advertising. Please do not use our public forums!
      Thank you and have a great day
      Love,

      The kind people at Pepsi

    4. Re:Note to IT community... by Doctor+Crumb · · Score: 2, Insightful

      "Also please stop using XML to represent arbitrary data. It's a markup language."

      I find XML quite good at representing arbitrary data, and at the same time quite bad as a markup language. It's terrible at being a programming language though; it has all the readability of assembler and all the power of BASIC. My preferred dataflow is (input)->(a real language)->(XML/XSLT)->((HTML + CSS)|LaTeX). Each part has its strengths, and you'll have real issues if you try to get any one of these hammers to do everything.

  31. CSS can output to PDF, too by SeinJunkie · · Score: 1

    At the end of the article, the authors say this:
    By combining the print- specific CSS stylesheet described above with the WebArch document, a nicely formatted PDF document can be created.
    The point is that both CSS and XSL can be used to output to PDF. The authors state that CSS wasn't made to be a Turing-complete language, rather a layout language. They aren't saying CSS can do everything XSL can, rather that most of what you can layout with XSL can be replicated in fewer lines, and more readably, with CSS.
  32. It's apparently already slashdotted. by jemfinch · · Score: 3, Funny
    The second link in the story (for the 1000-line XSL stylesheet) seems to be slashdotted already. The best part is that when I tried to go there, I got

    XML parsing error

    In nice, big text. Way to hold the the XSL fort, guys!

    Jeremy
  33. DOH!!!! by Spy+der+Mann · · Score: 2, Informative

    XSL wasn't meant for formatting and printing. It was meant for converting XML into other XML formats (such as XHTML + CSS helloooo???)

    Comparing XSL vs. CSS is like comparing Table-based design with Table AND CSS-based design.

    (X)HTML's Document Object Model has default styles ("default" CSS if you prefer) assigned to each element. Of course using CSS is necessary.

    And the reason many XSLT stylesheets are so long is because of the stupid design imposed on them (non-changeable variables, result-tree-fragments, inability to eval an xpath expression... ok who was the genius who came out with these ideas, anyway?)

    Unfortunately, current browsers cannot do ALL the formatting. Try turning off IE's header and footer using CSS. Or customizing your own header and footer, or print landscape instead of portrait.
    Let's hope that CSS3 solves these problems - but until then, server-side PDF generation is the solution.

    Anyway if browsers had supported XSL, it would be a mainstream component of the web today. We would have marvelous things like client-side inclusion (I've done it with XSLT alone, _NO_ javascript!), bandwidth savings... (imagine that with Google!)
    In the end it became a pipedream due to the lack of browser support.

    1. Re:DOH!!!! by Anonymous Coward · · Score: 0

      XSL wasn't meant for formatting and printing.

      Actually, technically speaking, you are wrong. XSLT and XSL-FO were originally lumped together in the same specification, named XSL. XSL-FO is indeed meant for formatting and printing.

      (X)HTML's Document Object Model has default styles ("default" CSS if you prefer) assigned to each element.

      Firstly, the DOM has nothing to do with it.

      Secondly, you mean element type.

      Finally, it's the user-agent that has the default styles, known as the user-agent stylesheet, that cascades (the 'C' in CSS) with the user and author stylesheets, to produce the final presentation.

      The HTML and XHTML specifications don't provide defaults. The CSS specifications don't provide a normative set of defaults, although it does provide a sample HTML stylesheet for informative purposes.

  34. WFT??? by rainman_bc · · Score: 1

    Doesn't XSL convert XML to HTML (or any other document) anyway?

    In my world I use both. XSL when I need something really robust; CSS when I need to reuse css styles.

    Both have their place. Arguing whether one or the other is better is really moot. You can use CSS with XSL to render XML anyway.

    --
    09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
  35. As a matter of practicality... by slcdb · · Score: 3, Insightful

    It doesn't matter which standard (CSS or XSL) an author uses for styling pages for print if there aren't many widely-used applications (e.g. web browsers) that have good support for printing. Even Firefox, which arguably has the best standards compliance, has a lot of bugs in its print layout subsystem.

    Though I do have to agree with the article, in principle, that CSS is fully capable of doing the job when it comes to producing printable page layout, if we're going to be banging on a drum, let's bang on the "let's get these damn browsers to support printing better!" drum first. Because even if I create a CSS stylesheet that should produce beautiful printed pages, it doesn't do me a lot of good if I can't actually print them that way.

    --
    Despite what EULAs say, most software is sold, not licensed.
    1. Re:As a matter of practicality... by Anonymous Coward · · Score: 0
      Finally! There exists at least one slashdot poster who realizes that IE is not the only non-CSS-standard-compliant browser in the universe! I love Firefox as much as the next guy, but I've seen several areas where CSS2 is just not implemented at all. For example, columns in tables, counters, and paging.

      Whenever I read the CSS specification and think "Hey, I didn't know you could do that! Cool!", I end up realizing that no one has implemented it yet (at least in a free (even gratis) product).

  36. PDF is the only way to print *properly* by badmammajamma · · Score: 0, Redundant

    This whole debate is a joke. Neither CSS or XSL is even remotely adequate for reliable printing. Currently, the only way to ensure printouts will look the way they should is to use PDF. I wish it weren't true, but it is.

    --
    Any man who afflicts the human race with ideas must be prepared to see them misunderstood. -- H. L. Mencken
    1. Re:PDF is the only way to print *properly* by Jerf · · Score: 1

      RTFA. Carefully.

  37. XSLT is for transformation by Pascal+Sartoretti · · Score: 5, Informative
    As an XSLT developer, I agree that CSS is simpler and more readable. However: the "T" in XSLT stands for "transformation". It means that you can do things like generating a table of contents, a table of figures, etc. which would not be possible with just CSS.

    The bottom line (at least for me): if you can do it with CSS, do it with CSS. But there are some cases where you will need XSLT.

    1. Re:XSLT is for transformation by mike.newton · · Score: 1

      Actually, if you read the article, you would see that the author tells you how, given a list of links, to make a CSS table of contents, with one line of CSS. (But your bottom line is the same one the author came to.)

  38. Please... by Undertaker43017 · · Score: 1

    Everyone knows print technology peaked with troff.

  39. xsl:fo-nonsense by flibuste · · Score: 3, Informative

    I stop reading when I saw that XSL examples are XSL:FO examples. XSL:FO is set of XML definitions on top of XSL to address the PRINT world's requirements. As such, it contains ALL the tags and attributes needed by this industry and provides EXTREME flexibilty, at a price: verbosity. However, the article does simple CSS formatting vs XSL:FO where XSL:FO is obviously not needed for that usage. So it's basically taking a hammer to kill a fly, maybe drop a nuke on it. Nonsense...

  40. Re:The authors aren't talking about using browser- by Anonymous Coward · · Score: 1, Informative

    And Prince only costs $2,000 per server!

  41. Re:ATTENTION! by PickyH3D · · Score: 1
    Really, it's not worth getting out of bed for that.
    Are you kidding? Slashdot readers do all of the searching for this news and they even submit the text for it. The admins just serve as a medium that decides for us what we should see.
  42. Turn that question around... by Abcd1234 · · Score: 1

    ... is TeX or Postscript better for storing more-or-less arbitrary data in an easy-to-parse format? Because that's the real point of XML. The advantage of something like XML:FO is that you can then take this nicely formatted data and convert it directly into something printable.

    And before you say it, no, there's no point converting to TeX or something else... if you're going that far, you might as well go straight to PDF, which is what XML:FO facilitates.

    1. Re:Turn that question around... by WillAdams · · Score: 1

      What H&J algorithm are you going to be using in XML:FO?

      How are you going to control for widows and orphans and getting nice, even, balanced pages?

      What about running pages (or chapters!) long or short at need?

      How are you going to handle equations? Write them up by hand using MathML? You are aware that MathML is intended solely as an interchange format, and that there's nothing sane about a person attempting to type it up by hand?

      William

      --
      Sphinx of black quartz, judge my vow.
  43. Think the other compelling point is server side by SuperKendall · · Score: 1

    I think that generally the other compelling point is that you would probably use XSL:FO server side, and generate a PDF of known quality.

    If you use CSS you are at the browsers mercy as to quality of output and it can lead to many annoyed customers calling you...

    There is no way to test all users of CSS, but it's very easy to test all the XSL:FO cases that would be used.

    I also think it unfair to compare XSL:FO and CSS to the grouping of Project vs. Excel. Actually in that comparison I would have to say that CSS is the Excel - a tool that CAN do many things, but should it? XSL:FO is built to handle typesetting operations, just as Project is made to handle the specifics of project managemnent and scheduling.

    I'll all for CSS for many uses but printing does not strike me as a very good one for that tool.

    --
    "There is more worth loving than we have strength to love." - Brian Jay Stanley
  44. Size. by starphish · · Score: 1

    Is it the size that matters, or how you use it?

    --
    Yeah, yeah, yeah. The story is a dupe, the topic is boring, the facts weren't checked. WE GET IT!!
  45. Yes, W3C should have more clout, but.... by solafide · · Score: 0

    they should start by infiltrating the developer's ranks at the major companys first. No need for a whole army!

  46. Call me stupid....wait.... by sidepocket · · Score: 0

    but could somebody show me how i would actually use that CSS example in my HMTL page?

    1. Re:Call me stupid....wait.... by eomnimedia · · Score: 1

      No, but I could show you how to make a nice MLT!

  47. XSL is not XSL-FO by dauwhe · · Score: 1

    Everyone seems to be confusing XSL-FO (formatting objects) with regular XSL (what used to be called XSL-T). Formatting objects are admittedly more complicated than CSS. But "regular" XSL, which transforms XML to XML, (X)HTML, or even text, is incredibly useful, flexible, and fun! The work I do takes XML files, transforms them using XSL into XHTML, and then formats that with CSS. Simple!

    1. Re:XSL is not XSL-FO by gzunk · · Score: 1

      fun? fun? ...What kind of sicko are you?

    2. Re:XSL is not XSL-FO by Doctor+Faustus · · Score: 1

      Everyone seems to be confusing XSL-FO (formatting objects) with regular XSL (what used to be called XSL-T).

      XSL is the combined system. XSLT was split out when it became apparent that it would be both done sooner and useful for a bunch of other things.

    3. Re:XSL is not XSL-FO by Frobisher · · Score: 1

      I'm with you. I've done lots of work with XML, transforming them into XHTML, both client and server side, and I've produced some of the most useful intranet applications my firm has ever seen, all styled with CSS. My Firm Directory is beloved, and is used by about 60% of our employees DAILY, consigning the old printed phone-book to memory... fast, flexible and useful. xslt is a beautiful thing, once you get the hang of it.

    4. Re:XSL is not XSL-FO by ggy · · Score: 1

      Oh, so about two others use it as well? (Sorry, couldn't stop myself.)

  48. SVG by British · · Score: 2, Informative

    When the SVG spec was first published, I combed over it pretty well. This was when basically no renderers were active enough to cover the whole spec. Yet, the W3C had screenshots. They had screenshots for some rather confusing or unclarified attributes of certain elements. These were things you couldn't explain in words well, but moreso with illustrations.

    1. Re:SVG by SenseiLeNoir · · Score: 2, Informative

      Actually, the Sony Ericsson S700 (and i think the K700/K500, that is currenly all the rage here in UK) support not just static SVG, but also Animated SVG too (it comes with two sample animated SVG pics)

      --
      Have a nice day!
  49. CSS itself is overused by dafragsta · · Score: 0, Troll

    Having been at the very least an HTML tinkerer since 1996, and also having parlayed a hobby into a career, I've spent a lot of time with cross browser compatability. In 2002, I learned a whole new level of cross browser grilling when I went to work for an ad agency with clients such as Dell, HP, 3M, etc.

    My message to web developers is this:

    For the love of God, stop using CSS for anything more than text formatting. Outside of that, not much else is 100% cross browser compatible, and I define 100% cross browser compatible as being more than vaguely similar from one browser to the next. Certain things like spacing and borders when defined in CSS get rendered differently from one browser to the next. I don't care if it looks great in IE or Mozilla. It should look great in both.

    Until the browsers converge on CSS, (which is great in theory) please use nested tables for your layouts. They work great all the way back to Netscape 4, which is all you can ask for these days.

    What I do for a living now, is even more dependent on other people writing clean, well commented, cross-browser code than the last job. I take websites for non-profits and put them into a CMS with an emphasis on preserving the look of their original site. Since the pages get split up into itty bitty pieces and put into a generic CMS that must cater to most types of site designs, I've lowered my tollerance for bad HTML and shoehorning designs into CSS.

    1. Re:CSS itself is overused by russx2 · · Score: 2, Insightful

      The web is changing. It's not all about what browser we are using on a given wintel/linux/mac computer. It's about providing content in an easily parsable format. Presentation should always come a second to well structured, meaningful markup.

      What about disabled access to your webpages through some speech browser and the like. What about mobile devices. Provide your content in a well structured format and you can be sure any (half modern) current device can see your pages as well as anything in the future.

      The web is not a print medium. Design your sites so slight differences in spacing etc. are irrelevant. A well designed CSS-driven site will degrade nicely in Netscape 4 (basically @import to exclude it and other archaic browsers) and at the same time be accessible to everyone on any device.

      A couple of years ago I would have agreed with you. Now the average browser is more than capable of displaying CSS based designs. Alright CSS may require a few hacks here and there for IE and such but a few nasty bits of CSS is far more preferable than some hacked together HTML using tables for layouts.

    2. Re:CSS itself is overused by gbjbaanb · · Score: 1

      I think you need to see this: http://developers.slashdot.org/comments.pl?sid=136 703&cid=11420540
      (don't forget to read the text, you might want to choose a different design :) )

      and try to reevaluate your opinion of CSS in general, and expand it to all the things that work in all browsers and not just text formatting. (CSS1?)

    3. Re:CSS itself is overused by fm6 · · Score: 1
      (What idiot labeled this "troll"? I find it carefully reasoned, even though I disagree with much of what it says.)
      Until the browsers converge on CSS, (which is great in theory) please use nested tables for your layouts. They work great all the way back to Netscape 4, which is all you can ask for these days.
      No they don't. Pages formatted that way depend on a minimum screen resolution. And they don't comply with accesibility standards. Tables should be used for tabular data, period.

      I agree that there's a convergence problem with browser support of CSS. But the intersection of CSS support you see on all the current browsers is enough for most purposes. That still leaves your legacy users in the lurch. But if legacy support is that important to your web site, it makes more sense to scale back the fancy formatting, instead of using obsolete kludges.

  50. Proof that CSS is better than XSL by Sowbug · · Score: 2, Funny
    1. Re:Proof that CSS is better than XSL by Anonymous Coward · · Score: 0

      Shouldn't that be http://www.csszengarden.com/?

    2. Re:Proof that CSS is better than XSL by DeadVulcan · · Score: 1

      Holy crap!

      My poor Sun workstation ground to a halt when the load average spiked, as it struggled to render all those horrible animations.

      And my eyes! My eyes! Why didn't I insure my eyes when I had the chance?

      --
      Accountability on the heads of the powerful.
      Power in the hands of the accountable.
    3. Re:Proof that CSS is better than XSL by Vaughn+Anderson · · Score: 1
      Please mod the parent up for those of use designers that need a good chuckle after all the grueling debating we had to surf through to find the most enjoyable post of this story.

      If you don't find the link really funny, then you are not a designer. It's obvious the designer had some fun with it. :P

  51. FOP vs Prince by Anonymous Coward · · Score: 0

    As well as the relative merits of FO and CSS, in choosing between them you need to look at the relative merits of the tools that apply them (to generate PDF, normally).

    For XSL:FO there is FOP from Apache. It works, but when I used it (2002) it had too many bugs to enjoy. I presume that it has improved since then. But it is free.

    For XML+CSS there were no good tools at that time. Now we have Prince as linked from the article. But if you want to use this on your server it's going to cost you $2000!

    Hard choice.

  52. CSS3 will have a generated content module. by Kickasso · · Score: 2, Informative

    It's enough to create TOC, list of figuires, footnotes, what have you. Enjoy: CSS3.

    1. Re:CSS3 will have a generated content module. by Pascal+Sartoretti · · Score: 1
      > Re:CSS3 will have a generated content module.

      One day, CSS3 will have it. A few years later, Internet Explorer will support it, just as it cleanly supports CSS2 today :-)

      In the meantime, XSLT might be useful.

  53. Not a fair comparison by Anonymous Coward · · Score: 0

    Correct me if I'm wrong, but it appears that the CSS version is using non-standard functionality provided by a non-free software package. This software package obviously has some of the logic of those 1000-lines of XSL hard-coded into it, probabably in tens of thousands of lines of C++ code.

  54. COBOL better than XML by JCOTTON · · Score: 1

    Vastly. XML is just a solution looking for a problem. XML without user agreements is so useless. You could achieve the same results, with the same effort using COBOL file discriptions.

  55. Prince or &% by Anonymous Coward · · Score: 0

    "The article shows how a 100-line CSS style sheet gives you the same formatted version of W3C's Webarch as the 1000-line XSL style sheet by using Prince."

    You mean he moonlights as an XML + CSS formatter now? Selling 5 million records isn't enough to keep food on his table with those nasty, evil P2P criminals ripping him off, even with RIAA having everyone who looks like they might enjoy his music arrested on grounds that they crave it. Is he at least good at formatting? I wouldn't want him to starve...

    BTW, doesn't he want to be called <weird symbol> now?

    1. Re:Prince or &% by Anonymous Coward · · Score: 0

      Isn't it okay if we refer to him as &artistFormerlyKnownAsPrince;?

  56. Don't people use both in ther same application? by astroman74 · · Score: 1

    As a developer, I have used XSLT in combination with CSS, so that you have the best of both worlds. XSLT doing transformations and spitting out CSS classes based on the XML document and its criteria. I didn't think they were mutually exclusive, but more like they compliment each other.

  57. MOD PARENT UP. by killjoe · · Score: 1

    God where are my mod points when I need them.

    --
    evil is as evil does
  58. Beware of the things you say by nwalsh · · Score: 2, Interesting

    In retrospect, my comments about CSS and printing seem snarky and sound like hubris. My apologies. I'll take a closer look at the XML.com article and try to post a more reasoned reply. Not that I expect that'll get slashdotted :-).

    --
    --norm
    1. Re:Beware of the things you say by mike.newton · · Score: 1

      If only more people thought like this: In retrospect, my comments about getting the 'FIRST P0ST' seem like a cheap attempt to get the first post. I'll try to post a more well-thought-out reply.

  59. Re:ATTENTION! by JCOTTON · · Score: 1

    $20K? That's what I get for making tacos.

  60. Re:ATTENTION! by Anonymous Coward · · Score: 0

    True enough. I presume some of the editors have day jobs and perform their "editorial work" on someone else's dime.

  61. Re:The authors aren't talking about using browser- by KillerDeathRobot · · Score: 2, Informative

    Or $0 per individual for a personal license. $2,000 per server for a business really isn't that much.

    And THANK YOU to the grandparent! I was getting annoyed at all the long discussions about how IE does or doesn't support whatever. It's irrelevant!

    --
    Thinkin' Lincoln - a web comic of presidential proportions
  62. Oh joy. by Kickasso · · Score: 1

    You mean, I can hand IE an XML+XSLT combo, today, and it will turn out a beautifully printed document?

    1. Re:Oh joy. by Anonymous Coward · · Score: 0

      server-side XML+XSLT, silly person

    2. Re:Oh joy. by Pascal+Sartoretti · · Score: 1
      > You mean, I can hand IE an XML+XSLT combo, today, and it will turn out a beautifully printed document? Well.... Since IE 5.5 SP2 (IIRC), IE knows how to perform XSLT transforms. You can use it to transform XML => XSLT.

      To print a document, you need XSL-FO, which is rather a server-side technology.

  63. I got a better one by Quasar1999 · · Score: 1

    Your 20,000 line Java code can be replaced by my one line C code... beat that! Clearly one line doing the same thing as 20,000 lines means C is superior...

    I mean, sheesh... line counts make things better? pleeeze...

    --

    ---
    Programming is like sex... Make one mistake and support it the rest of your life.
    1. Re:I got a better one by Anonymous Coward · · Score: 0

      And your point is what exactly? Your correct, Java sucks balls, it is too verbose, too slow, and a total pain in the ass. C is better than Java, any day.

      Line counts do make things better. If it takes you 20,000 lines to produce the results of 1 line of C, then C is the better tool for the job.

      One last time, Java sucks. The only time I have ever cheared for MS, was when they were trying to kill Java. Shame they didn't get that one right. Maybe next time (and no, I do not like C# or .NET or whatever the M$ Java replacement of the day is called. If you mimic a piece of shit, you still stink).

    2. Re:I got a better one by Quasar1999 · · Score: 1

      I was simply trying to make fun of the fact that the story used line counts as a validation of how one is better than the other... In C, you can take a 20,000 line program and put it all on a single line... since C doesn't need linefeeds... so does that really make it better?

      --

      ---
      Programming is like sex... Make one mistake and support it the rest of your life.
    3. Re:I got a better one by tepples · · Score: 1

      In C, you can take a 20,000 line program and put it all on a single line... since C doesn't need linefeeds

      As far as I know, C needs at least one linefeed per #include or other preprocessor directive and one linefeed at the end of the file, but that's about it. Still, I see room for more standardized measures of source lines of code.

  64. Of course the authors say use CSS by gzunk · · Score: 1

    Håkon Wium Lie - one of the authors of the CSS Rocks article, is also was co-creator of CSS - or at least he co-wrote the CSS specifications that are available at W3C.

    Not to say that's bad, I've got his CSS book (The one with Bert Bos) and it really is a good book - and accurate, since the authors of the book are the authors of the specification.

  65. we also find out why... by jpellino · · Score: 1

    Apache/1.3.9 (Unix) Debian/GNU PHP/4.0.3pl1 mod_ssl/2.4.10 OpenSSL/0.9.4
    thru Catchcom

    is better than

    Apache/1.3.33 (Debian GNU/Linux) mod_python/2.7.10 Python/2.3.4 PHP/4.3.10-2 mod_ssl/2.8.22 OpenSSL/0.9.7d
    thru Charter Communications

    --
    "Win treats sysadmins better than users. Mac treats users better than sysadmins. Linux treats everyone like sysadmins."
  66. I have a silly question by kworces · · Score: 1

    Okay, I have a silly question: Say I'm using XML to store structured data but I want the printable output I get from LaTeX. Why not use XSL to translate the XML to LaTeX and generate the printable version from that?

    1. Re:I have a silly question by Doctor+Crumb · · Score: 1

      There is no reason at all that you can't do that. I'm doing it with my resume right now, in fact. :) The only problem is that LaTeX tends to be a bit picky about newlines and their effect on the output, so I've got a few <xsl:text>&#10;</xsl:text> tags in there. Other than that, it's great.

  67. Of course CSS is better by Anonymous Coward · · Score: 0

    The only thing better than Counter Stike: Source is the Half Life 2 deathmatch, anyway!

  68. Nice try. by Kickasso · · Score: 1

    At the server side I'll use a proper programming language and DOM, and do it in about 1/50th of time and LoC count.

  69. XSLT+FO by ebcdic · · Score: 1

    XSL has two parts: transformations (XSLT) and formatting objects (XSL-FO). XSLT by itself is not meant for formatting, but XSLT and XSL-FO together are meant for exactly that.

    I suspect that most of the compactness of the CSS solution is that CSS has built-in knowledge of HTML. The XSLT stylesheet will have to implement that from scratch. So CSS may be a win if you are using XHTML, but less so if you are using your own XML vocabulary. In the latter case, a common approach is to have an XSLT stylesheet that converts to HTML, and use a short CSS stylesheet with that. It's only in the more complicated cases that the flexibility of going via XSL-FO is worthwhile.

  70. never say never by willCode4Beer.com · · Score: 1

    This is just another example that the best way to get proven wrong is to claim that something is impossible or to claim that language X can NEVER do Y.
    We see this time and again.

    --
    ----- If communism is a system where the government owns business, what do you call a system where business owns govern
  71. What Slashdot needs by digitalgiblet · · Score: 2, Funny
    You know what /. needs?

    Two competing technical ideas so that everyone can line up behind one or the other and argue which is better.

    I'm really tired of seeing everyone here just politely agreeing with one another in such a single-minded way.

    Ever since the debates over vi/emacs, linux/windows, tastes great/less filling, etc. were all settled, there just haven't been any good arguments here.

    1. Re:What Slashdot needs by Anonymous Coward · · Score: 0

      vi/emacs has been settled?!?!

      And all this time I've been using jed!

    2. Re:What Slashdot needs by Kehvarl · · Score: 1

      Ever since the debates over vi/emacs, linux/windows, tastes great/less filling, etc. were all settled, there just haven't been any good arguments here.

      I'm glad to hear that the vi/emacs debate has been resolved. I'm sure you will agree with me that I am thankful I properly welcomed our new vi overlords.

    3. Re:What Slashdot needs by Vaughn+Anderson · · Score: 1
      There are few things more enjoyable than hearing a hundred 5th grade boys yelling back and forth at eachother and pounding on the tables in the echo of a gymansium converted at lunch time to a cafeteria, tastes great! less filling! tastes great! less filling! tastes great! less filling!

      ah... the memories of childhood, what would we have done without our tv commercial based social culture?

  72. Re:I used to work with Haakon Wium Lie by Anonymous Coward · · Score: 0

    Hey, I remember working with you. Weren't you the guy who used to pick your asshole and then sniff your finger? Oh man, how you stank up the fscking room!

  73. how about XSL **AND** CSS by greggman · · Score: 1

    I didn't read the article yet but I just got through my first experience with XSL. I used XSL to turn XML into HTML and used CSS to format that HTML.

    http://greggman.com/headlines/2005/2005-01-16-xslt -rss.htm

    Why is there an argument?

    1. Re:how about XSL **AND** CSS by Lukey+Boy · · Score: 1

      You're talking about XSLT. The article talks about XSL for formatting (specifically XSL:FO to output a PDF). And the purpose is for printing, not formatting just the screen representation.

  74. Herd mentality by lux55 · · Score: 1, Insightful

    Why am I seeing so many bad reactions on here? Responses like "show me the browser support"? You don't need browser support for print! You need another program capable of it. So what that the first one to do it is commercial -- commercial businesses quite often outpace open source, truth be told.

    Show me the browser support for XSL? The article is displaying an example of why CSS3 will solve most of the same problems 1000x more elegantly. XSL is Perl's (I like Perl, I don't like XSL) ugly kid brother -- got beat twice as hard with the ugly stick.

    When XSL came out, where was the tool support for it? Nonexistant. Because it was just a standard first. The tool support even now, years later, is only partial.

    So yes, CSS3 will take time to implement in the real world, but it's a clearly superior solution. Shortcomings? Probably more than a few. But if we WORK on them, we can overcome them, probably also 1000x more elegantly than the atrocity that is XSL.

    So instead of bitching about someone getting it right for a change (now that we've wasted how many years trying to work with XSL), why not start up an open source project to build support for the new spec? This sounds like a good side-project for Mozilla.org or the KHTML folks (since they already have a rendering engine).

    1. Re:Herd mentality by srussell · · Score: 1
      Show me the browser support for XSL?

    2. Re:Herd mentality by lux55 · · Score: 1

      Sorry, to clarify I meant when XSL was first introduced, and for the first while thereafter, but looking at my comment that wasn't clear at all. I am aware of the current state of support for XSL in many tools, including the major browsers. It's not the tool support that keeps me from XSL, but XSL itself.

      It's the same reason that, while Perl is an interesting language (Perl 6's regexps for example are really cool), Ruby provides 99% of what Perl can do with 100x the elegance (mind you, elegant programming solutions are one of the big strengths of Perl, but the language itself doesn't exhibit that elegance itself).

      And to extinguish any sign of language-war flaming on my part, Perl is the first real language I cut my teeth on. I had a passionate love affair with it, and we've parted on good terms. :) My 9-5 language these days is actually PHP, a far cry from Ruby's elegance itself (but very simple and focused for its intended goals). I also happen to think Javascript (out of the browser context) is another amazingly elegant language with a lot of potential. I just bought an O'Reilly Objective-C book on a whim today, so I'll find out how well that stacks up soon I suppose.

    3. Re:Herd mentality by srussell · · Score: 1
      Sorry, to clarify I meant when XSL was first introduced, and for the first while thereafter

      Ah, OK.

      It's the same reason that, while Perl is an interesting language ... , Ruby provides 99% of what Perl can do with 100x the elegance

      Are you saying that CSS is to XSL as Ruby is to Perl?

      I'd agree with you, but only partially. XSL can do much, much more than CSS, but Perl can't do much, much more than Ruby. Still, I can see that you appreciate the concise, function-focused nature of CSS.

      Personally, I have mixed feelings about CSS. It is much easier to use than XSL -- not because XSL is hard, per se, but there's a hell of a lot of typing to do even minimal tasks. If there was a compact syntax for XSL, I'd have no complaints.

      What I don't like about CSS is that the results are dependant on the browser, and browsers don't implement CSS consistently. I can get far more consistent layouts on IE and Mozilla by transforming with XSL than I can be relying on CSS to reposition elements on the page.

    4. Re:Herd mentality by lux55 · · Score: 1

      "Are you saying that CSS is to XSL as Ruby is to Perl?"

      In terms of elegance yes. In terms of features, no. However, as the CSS specs advance, the feature gap could become a little smaller. They wouldn't ever be even, or even close to it, since XSL is a complete language and CSS is not, but they both approach a similar problem space (from different angles).

      "What I don't like about CSS is that the results are dependant on the browser, and browsers don't implement CSS consistently."

      This is true in that the rendering of the markup is always going to differ from one engine to the next. But isn't the same also true of the results of the XML documents that are output from the XSL? XSL transforms one document into a new format, but if that format is ever going to be displayed, then it will still have the same problems as CSS or any rendering technology.

      Even PDF rendering isn't exact between, for example, Apple's Preview.app and Adobe Acrobat. Although perhaps compared to PDF or PostScript, CSS + XML has a long way to go (engine-wise, spec-wise, both...).

      Still, CSS for XML is at the stage where it has a lot of potential, and a lot of growing yet to do. But for output formats like PDF, and doing away with HTML altogether (which browsers still have to contend with for the foreseeable future) it can probably achieve a pretty high degree of accuracy across print-rendering engines too.

  75. Proffesionals are funny people. by hazah · · Score: 1

    Now I'm not one of them, and don't know if I'll ever be, but it's rather odd that they're comparing apples to oranges again. Repeat after me, every task can be accomplished with the appropriate tool. CSS is for Style (in case you forget), what's the point of having it do anything else. XSL (I never used it, so you'd know) FTFA XSL contains loops, conditionals, etc... Hmm... a tool for a DIFFERENT job perhaps? The only things that dissapear are things without purpose. Clearly, that is NOT the case.

    1. Re:Proffesionals are funny people. by smileaf · · Score: 0

      exactly!
      I tried to make this point in a post earlier but someone gave me 100% overrated and a -1 modifier.
      XSL is for XML. CSS is for styleling they are 2 different kids on the block. how can you compair them?

  76. Plus, of course... by WillerZ · · Score: 1

    You can use it to write man pages. It's better than texinfo anyway.

    I agree, troff ain't bad. Although I suspect you were joking.

    --
    I guess today is a passable day to die.
    1. Re:Plus, of course... by Undertaker43017 · · Score: 1

      Only partially joking...

      In most respects troff syntax is no less obtuse/difficult than XSL or CSS, and is mostly as functional.

      In the early 90's I worked at Bell Labs and shared an office with one of the documentation writers on the team (not sure what psychological studies they were performing, putting a developer and doc writer in the same office). He would complain constantly about having to use Framemaker, and wanted to use troff. ;)

    2. Re:Plus, of course... by Anonymous Coward · · Score: 0

      HTML could take a couple of pointers from nroff/troff

  77. But... by WillerZ · · Score: 1

    Then you have to write COBOL.

    Phil

    --
    I guess today is a passable day to die.
  78. Incorrect comparison by Carewolf · · Score: 4, Interesting

    He is not only using a lot of CSS3 in his examples, but he is using things that does not even look to become parts of CSS3. For instance the content:target-counter was in a working draft of the css3 paged module, but have been withdrawn from the latest version.

    1. Re:Incorrect comparison by prockcore · · Score: 1

      For instance the content:target-counter was in a working draft of the css3 paged module, but have been withdrawn from the latest version.

      Exactly.. he's not really comparing CSS with XSL, but more "My own home-grown C program" with XSL.

  79. Maybe not. by melquiades · · Score: 1

    Comes up fine for me. That sounds like your browser kacking on the XSL, trying to parse it -- which makes sense, because you'd really run the XSL server-side and output a PDF or something (as SuperKendall pointed out), and your browser wouldn't normally even see this. So this may just be a case of user confusion.

  80. Last name is Lie... by filenabber · · Score: 1

    and I'm supposed to beleive what he says?

    --
    Are you a Candy Addict?
    1. Re:Last name is Lie... by AkaXakA · · Score: 1

      Yes, and it's pronounced "Lee". Stop using people's names to make lame jokes.

      And to retaliate in your own way:

      You write beleive...
      and I'm supposed to believe what you say?

    2. Re:Last name is Lie... by tepples · · Score: 1

      Well at least his first name isn't Democrats.

  81. no no no. by Run4yourlives · · Score: 1

    Get with the program... you goal would be better served with standing behind standards based development and yet you preach embedding presentation with content.

    " I've lowered my tollerance for bad HTML and shoehorning designs into CSS."

    This comment alone shows how out of touch you are with modern CSS based development...

    Check out the zengarden, the CSS vault and CSS beauty for a lesson.

  82. CSS != XSL by Anonymous Coward · · Score: 0

    The scope of XSL (XSLT + XSL-FO) ist completely different from CSS. CSS makes sence with HTML or XHTML. But it is not useably on XML-documents like books written in docbook-XSL or a finance report in some other weired XML-language.

    comparing CSS with XSL is like comparing C with regular expressions...

    1. Re:CSS != XSL by howcome · · Score: 1

      The article compares how two different languages describe the same task (namely, formatting a W3C document). I thint that's a reasonable basis for comparison even if the languages have different scopes (as the XML.com article also notes).

  83. WYSIWYG Quark XPress?!? by WillAdams · · Score: 2, Interesting

    First off, it's Quark XPress.

    Second, it's only recently that Quark has been able to use anything other than a lousy bitmap preview for placed art. The majority of XPress users never upgraded from v4, and so get cruddy bitmaps (unless they license an XTension which then litters their HD w/ preview files) and a weird shift from nice anti-aliased type to blocky bitmaps when editing text at certain sizes).

    Thirdly, Quark is incredibly limited in terms of the glyphs which it can access, so What You See Is All You're Going to Get, and you ain't gonna automatically get spiffy ligatures in it from OpenType and AAT fonts (manually inserting ligatures pulled in from ``Expert fonts'' is _so_ 20th century (and something I found tedious immediately after purchasing Adobe Garamond back in 1989) and fixing them by search-replacing in XPress Tags is a poor solution).

    And lastly, Quark still has a brain-dead, one-line at at time H&J algorithm --- at least Adobe had the sense to make use of TeX's algorithm when they developed InDesign.

    William

    --
    Sphinx of black quartz, judge my vow.
  84. But what I really Need . . . by Dausha · · Score: 1

    What I really need is a programmer who understands the binary language of XSL . . .

    . . . XSL?! Sir, my first job was programming XML, very similar to your XSL in most respects.

    Do you program Perl?

    Of course I do, sir, I must type some for you.

    Alright, shut up. --He'll do. Luke! Take these two programmers and get them cleaned up.

    --
    What those who want activist courts fear is rule by the people.
  85. No, there isn't. by eugene+ts+wong · · Score: 1

    In fact, there isn't even any graphical web browser that I know of that can fully render HTML 4.01 Strict.

    Can anybody list some software?

  86. use XQuery for transformations by Per+Bothner · · Score: 1

    To handle transformations (as a separate issue from styling) the new XQuery language has some advantages over XSLT. The syntax is a lot more readable and more concise, and it's actually a reasonable programming language. It's a superset of XPath, which may people (including XSLT users) are familiar with. On the other hand, it doesn't have XSLT's "template processing" model, which simplifies writing transformations, and it's not a finished standard yet (though it's close). My article discusses and illustrates using XQuery to transform XML for presentations. It's about generating web pages, while the parent is about generating PDF, but it does suggest it might be worth trying XQuery for generating XSL-FO (or even XHTML+CSS).

  87. Article is about printing XHTML, not XML by sridev · · Score: 1

    Printing XML will require you to first convert XML (in some arbitary format) to (X)HTML - this is something CSS cannot do.

    You need XSL to convert XML to HTML/PDF or any other format for printing.

    1. Re:Article is about printing XHTML, not XML by howcome · · Score: 1

      No, CSS works fine with generic XML and you don't need to convert it to xHTML first. Prince, Opera, Mozilla and others support this.

  88. InDesign / TeX by WillAdams · · Score: 1

    Except that an Adobe employee confirmed my statement that InDesign's H&J is based on TeX's by way of URW's HZ algorithm --- you really don't think Adobe licensed HZ from URW to not use it?

    As regards Unicode --- while it's true Omega has gone dormant there're two viable successors:

    - Aleph - a direct combination of Omega and e-TeX

    - XeTeX - a Mac OS X-specific variant able to use OpenType and AAT fonts

    William

    --
    Sphinx of black quartz, judge my vow.
    1. Re:InDesign / TeX by rxmd · · Score: 2, Interesting
      Except that an Adobe employee confirmed my statement that InDesign's H&J is based on TeX's by way of URW's HZ algorithm --- you really don't think Adobe licensed HZ from URW to not use it?
      The main component in URW's HZ that is borrowed from TeX is the paragraph layout algorithm (partly because Knuth's is good and more or less freely available). Adobe licensed HZ mainly for the microtypography extensions (optical scaling), for its better hyphenation and for its kerning. In these respects, HZ is not only different from TeX, but also way better. Adobe wouldn't have had to license HZ if they were interested in the paragraph layout algorithm only; they were interested specifically in the non-TeX, the better-than-TeX parts of HZ.
      As regards Unicode --- while it's true Omega has gone dormant there're two viable successors: Aleph - a direct combination of Omega and e-TeX; XeTeX - a Mac OS X-specific variant able to use OpenType and AAT fonts.
      Aleph is Omega. It's the Omega WEB changefiles applied to eTeX, by a developer (Guiseppe Bilotta) who has repeatedly stated that he does not understand how Omega really works. Actually, Omega is so poorly documented that I don't think there's more than twenty people in the world who understand it, and the same applies to Aleph. It's good to see that some development is done, however, and it was a pity that Omega was open-sourced so late and so half-heartedly.

      XeTeX is very interesting and a good project. However, it is extremely limited to the Macintosh due to being hardwired to the OS X font engine (making it somewhat useless to most of the world). Also, it suffers from the TeX problem that there is no consistent approach to development at all that would encompass larger parts of the toolchain beyond the mere engine. If you need Unicode and additional tools, even similar ones like BibTeX, you'll quickly find out that they are either 8-bit, that the non-8-bit versions are quick undocumented hacks done by persons who are now unavailable, or that it's hell of a lot of work to get sensible output. It's possible, but the way there is long and thorny, and it feel like being in the 1980's again. While the TeX world is certainly better off with XeTeX than without it, it is really quite a limited solution.

      TeX is a shining example of how not to do a large open-source software project; the complete lack of coordination has made development somewhat difficult and frustrating. If you look at those parts of TeX where coordination is taking place (ConTeXt, for example), it's evident that it could have been different. With LaTeX, the only reasons that keep it alive are inertia, the relatively large user base and the somewhat futile development efforts of some uncompromising developers (whom I admire for their commitment) that are struggling against fifteen years of uncoordinated development. Myself, I'm using ConTeXt now, it simply has less compatibility problems, is less frustrating and gives better layout.
      --
      As a state gets corrupt, its laws multiply; the most corrupt states have the most numerous laws. (Tacitus, Annales 3:27)
    2. Re:InDesign / TeX by WillAdams · · Score: 1

      On the bright side, TeX does get HZ capabilities in pdftex --- see HTH's doctoral thesis (Adobe very generously provided a grant to aid him in his stufies).

      ConTeXt is way cool, and I agree it's one of the best things in the TeX world, and I'm glad of the variety of choice.

      William

      --
      Sphinx of black quartz, judge my vow.
  89. Troll? by TheRaven64 · · Score: 2, Insightful
    If this is a troll it's a very good one, since it reads like an honest question.

    XML, TeX, and PostScript are all designed for slightly different purposes. XML is good as an interchange format for structured data. Its main strength is that it is easy to transform XML into other formats. XHTML can be used to store semantic information which can have a specific presentation applied to it using CSS. There is no theoretical reason why this couldn't look as nice as that produced by TeX, but practically it usually doesn't since it is usually typeset by browsers which require their layout engines to run in real time.

    TeX and PS are both Turing-complete languages with slightly different purposes. TeX is usually used with the LaTeX macros as a semantic markup language. The advantage of this is that it is much easier to type than XML. \section{This is a section heading} would be the equivalent of <h2>This is a section headong</h2>. I also find LaTeX code to be more human-readable. PS (and it's non-Turing-complete little brother PDF) are specifically designed to produce page layouts - they do not contain semantic information at all. It is relatively easy to convert between LaTeX and HTML, and it is also relatively easy to render either as PS or PDF. Converting in the opposite direction is more tricky.

    --
    I am TheRaven on Soylent News
  90. News just in Chalk is better than Cheese... by NoMercy · · Score: 1

    First off *slaps the story poster* call it XSL-FO, not XSL which tends to infer XSLT which is perfectly good and often used in combination with CSS.

    Now *slaps the person who wrote the post*, if youre not going to write a fair comparison don't bother writing one at all, the XSL-FO shows a page-size selector which will work for any size page, and he compares this to a one-size A4 CSS definition, I stoped reading at that point, if your going to argue Hello World is better than A cellular automota because it's got less lines of code in it, I don't want to hear any more of your arguments.

  91. XMLSPY. by oliverthered · · Score: 1

    Support for XSL wasn't bad a few years ago, and it even better now, maybe not of you sub XMLSPY's quite good and it runs under wine.

    --
    thank God the internet isn't a human right.
  92. Line count comparison by TrevorB · · Score: 1

    Diverging more generally to the topic of XML...

    I'm not sure it's fair to compare a 100 line straight text file to a 1000 line XML file and say that one is inherently superior. Having worked with XML, crafting it by hand, running in to all sorts of parsing errors, I've come to one conclusion:

    XML was never built to be written by hand, or to be read with the human eye.

    After all, these are text files, and it's not like we're using systems with only a few hundred kilobytes of storage anymore. I can see a distinct advantage to enforcing a schema on data, even if it is a total pain in the ass to enforce it.

    I can craft 100-200 line XML files in the manner that we all craft HTML by hand, and my patience *just* holds out through all the parsing errors.

    What we do need is a good (ideally open source) XML editor that's as natural and intuitive to use as Notepad (or more ideally Textpad) is to edit text files.

    I haven't seen one yet. I keep going back to really good text editors and using my brain and lots of iterations checking that the XML matches the schema to keep me from going insane.

    Some of them are out there, but they're all so *fiddly*. Fiddly enough to scare off a data content author, who isn't a programmer. Given a schema, editing XML should be Microsoft Word easy (sans Clippy). I've not seen it there yet.

    Then again I'm an old bastard (30) who wants to edit everything by hand no matter what. It's hard to break that habit.

    1. Re:Line count comparison by Zontar+The+Mindless · · Score: 1
      XML was never built to be written by hand, or to be read with the human eye.

      Um, no. That's EXACTLY why it was created -- to offer a basis for data interchange that's read easily by both machines and humans, and whose structure can be inferred by either if need be.
      What we do need is a good (ideally open source) XML editor that's as natural and intuitive to use as Notepad (or more ideally Textpad) is to edit text files.
      Well, seeing "Notepad" and "natural and intuitive" together in the same sentence is somewhat amusing, I agree with this point. XMLCookTop (site's unavailable at the moment but hopefully it'll be back soon) and XXE are steps in the right direction. We need something like HomeSite or Bluefish for XML. Something that reads a DTD or schema and then provides the appropriate dropdowns, buttons, and other clicky-widgets to author a doc that conforms to it.
      Then again I'm an old bastard (30) who wants to edit everything by hand no matter what.
      No, you're a young bastard (only 30) who wants to edit everything by hand. Come back in 15 years or so and then you can say that. ;)
      --
      Il n'y a pas de Planet B.
  93. Re:I used to work with Haakon Wium Lie by lack1uster · · Score: 0

    Doesn't everyone who scratches thier ass smell thier finger afterwards? I don't think it's that odd of a thing to do.

    As for public nose-picking, that's all fine and well (I do it myself), but eating the booger? That's just gross (or possibly shock value).

  94. It's a Slashvertisement for an expensive product by tepples · · Score: 1

    They're talking about what can be done with a program like prince (which one of the author's wrote).

    In other words, we're all reading a Slashvertisement. I for one cannot afford a single user license for Prince.

    Current browser incompatibility is totally irrelevant.

    What residential user or small-business user can afford to purchase and install anything but a "current browser"?

  95. CSS still lacks a great deal by Magickcat · · Score: 1

    CSS may be better than XSL, but it still can't render fonts as well as book printing technology practiced 500 years ago. The whole question of rendering fonts and default fonts needs to be resolved.

    --

    Si tacuisses philosophus mansisses. If you had kept quiet, you would have remained a philosopher.

    1. Re:CSS still lacks a great deal by SoupIsGoodFood_42 · · Score: 1

      May I ask what you are on about? CSS doesn't render any fonts. The OS still renders the fonts. And what issue is there with default fonts exactly?

    2. Re:CSS still lacks a great deal by Magickcat · · Score: 1

      I'm not "on about" anything. I'll try to answer your subsequent questions however.

      CSS doesn't render fonts, it defines them. The web browser renders the fonts by instructions from the CSS, not the operating system. the browser is in charge of rendering fonts although it may loan operating system fonts.
      The web browser and CSS do not render fonts properly together compared to even a 500 year old book.

      Take a look at a book - can you see the way the fonts are clearly rendered on the page? Now look at a web page - see the way they appear - that's your answer.

      XHTML and CSS need standard fonts that display just as well as a font rendered in say for instance Macromedia Flash or an Acrobat PDF. They also need a standard for fonts, perhaps a set of imbedded fonts that don't change across browsers and operating systems. XHTML and CSS should look the same in any browser and on any computer, but they don't because the question of fonts has not been resolved.

      The current limited set of jagged unaliased fonts that CSS defines are not good enough. There's a good outline on the problems of web typography here if you want to read more about the history, problems and temporary solutions used at the moment.

      --

      Si tacuisses philosophus mansisses. If you had kept quiet, you would have remained a philosopher.

    3. Re:CSS still lacks a great deal by SoupIsGoodFood_42 · · Score: 1
      CSS doesn't render fonts, it defines them.

      Yes. And that's all it's supposed to do.

      Take a look at a book - can you see the way the fonts are clearly rendered on the page? Now look at a web page - see the way they appear - that's your answer.

      This is a monitor vs paper issue. CSS has nothing to do with it, and it shouldn't.

      XHTML and CSS need standard fonts that display just as well as a font rendered in say for instance Macromedia Flash or an Acrobat PDF.

      No they don't because most people will find it too blury and hard to read. And besides, this is a browser or OS issue, not a CSS one.

      The current limited set of jagged unaliased fonts that CSS defines are not good enough.

      I can define any font I want in CSS, and on my computer, they come out rendered the same, if not better than a PDF.

      Remember, the web is not print, and is not supposed to be.

  96. One language per project? Not that I've seen. by SuperKendall · · Score: 1

    In most projects of scope I've seen in large companies, projects have taken on many flavors of languages - from Java to C# to JSP (which I consider another language really) to HTML to Javascript - and more.

    While generally I would consider it smart to try an coalese on one primary lange (say, Java...) you will undoubtledy end up working with other languages on the pereriphiary anyway - like SQL or HTML or XSL or whatever. So I would agree that good developers can work with a lot of languages.

    I would say probably the best mix on a project would be one language with a deep library (like, say Java!) and then other supporting languages around it to do what they do well.

    --
    "There is more worth loving than we have strength to love." - Brian Jay Stanley
  97. Nice software, shame about the licensing... by Anonymous Coward · · Score: 0

    I can't beleive slashdot just posted a link to a piece of software which quite obviously abuses the principles of the open source software which it uses.

    A quick strings on the Prince execuatable reveals that it uses libxml at the very least. Googling for some of the error messages such as "parser error : Entity 'Ouml' not defined" confirms this.

    I hate to be a snitch, but the author should atleast acknowledge the use of FOSS software in their product, even if it is under the MIT license.

  98. Firefox is my renderer by Foofoobar · · Score: 1

    Well to render CSS and Javascript, just about any browser will do.

    --
    This is my sig. There are many like it but this one is mine.
    1. Re:Firefox is my renderer by Anonymous Coward · · Score: 0

      You are fucking retarded. The man wants a command-line CSS/Javascript renderer in order to output documents in formats other than HTML. I repeat: you are fucking retarded.

      QED.

  99. Tallking about TeX by Baki · · Score: 1

    Do you really use raw TeX or LaTeX?

    I've never really used much TeX, mostly LaTeX.

    I think the CSS versus XSL discussion is almost a bit like TeX versus LaTeX: TeX is a full programming language, giving you 100% flexibility to do the most crazy things. However, it is so complex that almost noone can use it directly. LaTeX provides the default settings and macros that 99% of users can live with, and saves them all complexity and details.

    The difference between TeX/LaTeX and CSS/XML is, however, that while using LaTeX you may occasionally descend to the TeX level if you need to do some obscure thing not possible in LaTeX. With CSS there is no such fallback possiblity. If it isn't in CSS "level" X, you'll have to wait for the next version :).

  100. Strange comparison by horza · · Score: 1

    Everyone I know doing CSS uses it client side. Everyone I know using XSL uses it server side. Often both are used at the same time, with XSL used to transform the XML into XHTML, and the CSS used for pretty presentation.

    I'd rather see it compared to other templating solutions. It seems to me that XSL is like a functional language compared to other templating engines acting more like an imperative language (I said like, it's not a great analogy). It would appear to me to be a bitch to render XSL pages real-time if, as I see in many tutorials, the transforms are an extensive list of recursive <xsl:apply-templates>. How fast are the XSLT parsers these days?

    Phillip.

    1. Re:Strange comparison by howcome · · Score: 1

      It's true that XSL is mostly used on the server side and that CSS is mostly used on the client side. Generating a PDF document, which is the topic of the article, is something that can happen on both sides; a web site may want to offer PDF for download and users may want to generate PDF for printing a local copy. Therefore, the server/client issue is orthagonal to the issues discussed in the article.

  101. Use Both by sbszine · · Score: 1

    In the comments at the foot of the article, the author says that using both is advantageous. Do your complex transformations in XSL, then hook in CSS for presentation, and you're playing to the strength of both languages.

    --

    Vino, gyno, and techno -Bruce Sterling

  102. Troll?-Skribe. by Anonymous Coward · · Score: 0
  103. XML/XHTML as a layout language?-Typography. by Anonymous Coward · · Score: 0

    "You missed my point. Writing TeX is programming a computer. You have to learn a whole new language. There's no excuse for that."

    Typography is different than "just puting marks on paper".

    You want to put "marks on paper"? Use a wordprocessor.

    You want to do typography? Use a markup language.

    You get out, what you put in.

    1. Re:XML/XHTML as a layout language?-Typography. by Leo+McGarry · · Score: 1

      You want to do typography? Use a markup language.

      Um. No. That's kind of the exact opposite of the point.

  104. XML editor by Anonymous Coward · · Score: 0

    I found stylus studio (tried it a few years ago) to be very good for hand-crafting xml. I think it's the best XML-tool for programmers (or at least it was then).

    For an open source alternative, JEdit doesn't totally suck.

  105. Thanks by Pan+T.+Hose · · Score: 1

    If this is a troll it's a very good one, since it reads like an honest question.

    And if this a "troll bite" than it is an equally good one, since it reads like an honest answer. Apparently certain moderators cannot see a difference between a question and a link to goat sex pornography. Don't worry about them, they will grow up one day, I'm sure. Meanwhile, thanks for your answer.

    --
    Sincerely,
    Pan Tarhei Hosé, PhD.
    "Homo sum et cogito ergo odi profanum vulgus et libido."
  106. I do by Pan+T.+Hose · · Score: 1

    No one sits and writes Postscript!

    I do. It can be a very enlightening experience, and once you learn how to think backwards--e.g. /x a b c d add sub mul def means x = a*(b-(c+d))--it can be quite entertaining. And it is very funny to use the random number generator to make your page slightly different each time it is printed, and watch the faces of people who try to correctly adjust the CMYK plates in the printing press!

    --
    Sincerely,
    Pan Tarhei Hosé, PhD.
    "Homo sum et cogito ergo odi profanum vulgus et libido."
  107. Re:ATTENTION! by Anonymous Coward · · Score: 0

    $20K? That's what I get for making tacos.

    Making Taco's tossed salad?

  108. Hands Off by Anonymous Coward · · Score: 0

    I know better than you do what font sizes I can read comfortably. Stop trying to control me. Just give me the content, and I'll display it in a manner which suits me.

  109. XML/XHTML as a layout language?-Put out. by Anonymous Coward · · Score: 0

    The point is that you want the good results without putting out the matching effort.

    1. Re:XML/XHTML as a layout language?-Put out. by Anonymous Coward · · Score: 0

      No, the point is he wants to be focused on the work, not on the technology.

  110. Command line? by tepples · · Score: 1

    But can Mozilla Firefox take an XHTML+CSS+JavaScript document and render it to PDF without having to start X and without any user interaction other than passing a URL and a PDF filename on the command line?

    1. Re:Command line? by Foofoobar · · Score: 1

      Actually yes. It's called client site scripting. I actually do precisely what you described in a LAMP architecture and gear all my code for W3C compliant browsers.

      --
      This is my sig. There are many like it but this one is mine.
  111. Who is really out of touch by tepples · · Score: 1

    This comment alone shows how out of touch you are with modern CSS based development

    Microsoft is the one out of touch. A lot of the CSS tech demos I've seen on the web do not work in the latest version of Microsoft Internet Explorer, and until there's an official way to install the Mozilla ActiveX control over the Internet...

  112. Why CSS is better than XSL by ahdeoz · · Score: 1

    because it does something completely different?

  113. Re:The authors aren't talking about using browser- by Anonymous Coward · · Score: 0

    And THANK YOU to the grandparent! I was getting annoyed at all the long discussions about how IE does or doesn't support whatever. It's irrelevant!

    Don't bother sending me your resume until you grow up, kid.

  114. Re:It's a Slashvertisement for an expensive produc by KillerDeathRobot · · Score: 1

    Are you kidding me? You can't afford the free personal license?? And you really don't think a small business can afford a 300 dollar program?

    --
    Thinkin' Lincoln - a web comic of presidential proportions
  115. What's the catch? by tepples · · Score: 1

    Are you kidding me? You can't afford the free personal license?

    I can't afford the EULA restrictions that often come with the no-charge version of a program that also has a version sold for three figures USD. It could be that one is not permitted to distribute documents prepared withe the no-charge version, or it has a huge-*** watermark over every page. Is the EULA posted online where I can read it separately from downloading the program?

    In addition, which major platforms is the no charge version available for, and if fewer than two, how much does the platform's emulator cost?

    1. Re:What's the catch? by KillerDeathRobot · · Score: 1

      I imagine if you download the program (which is no risk since it's free) you'll get to view the EULA, but the site says it "features full formatting functionality," though "a link to yeslogic.com is added to the corner of output pages."

      It is available for Windows and a few flavors of Linux.

      --
      Thinkin' Lincoln - a web comic of presidential proportions
  116. Re:The authors aren't talking about using browser- by :jax: · · Score: 1

    Yes, and furthermore browser incompatibilities would be irrelevant in a XSL vs CSS discussion anyway. Incompatibilities, in the sense of two browsers rendering the same document differently, isn't resolved by XSLT. The outcome of XSLT would be another document, usually (X)HTML, and surprise! browsers render that document differently.

    If the outcome is to be presented by browsers you will always be dependent on those browsers, the number of transformation steps you have done before rendering won't help. (X)HTML has had very few if any rendering requirements. CSS is more stringent. If two browsers differ you can usually tell if one (or both) browsers are wrong. Wrong is contextual however, it may well look different on a phone than with a printout with a user style sheet.

  117. Willing to share your code? by tepples · · Score: 1

    It's called client site scripting.

    What's the JS code to make Firefox 1. not crash if it can't connect to an X11 server, 2. load a URL, 3. print its contents to PDF, and 4. exit? Are you talking about setting the DISPLAY environment variable to an Xvfb?

    1. Re:Willing to share your code? by Foofoobar · · Score: 1

      Easy...

      1. Firefox does not crash when pulling any web page from a web server; it does however have limited range (like all browsers) and was made to read web pages except where a plug-in is supplied (or client side app) to read additional information. Your basis for saying it crashes when connecting to an X11 server through javascript is without basis. Javascript is a client side code and the connection is not based upon client side code; it is based upon the communication between the browser on the client side and the web server on the server side. If this communication does not take place through properly coded client side code , it is usually your configuration that is to blame.

      2. To pull up a url, type it into the address bar. Duh.

      3. To print contents of a web page to PDF in PHP, you can do one of several things. First, you can have a pre-supplied PDF available and populate it with the data and images from the page using an FDF. Second, you can use PHP to take a screenshot of the page and output the image into the PDF using an FDF. Third, you can create the PDF from scratch using PDFlib. This library can be used by multiple languages. There are also free versions of this avaliable as well as similar apps like ClibPDF.

      --
      This is my sig. There are many like it but this one is mine.