Become a fan of Slashdot on Facebook

 



Forgot your password?
typodupeerror
×
Programming Sun Microsystems IT Technology

Fulfilling the Promise of XML-based Office Suites? 432

brentlaminack asks: "Almost a year ago Tim Bray of XML fame said 'when the huge universe of MS Office documents becomes available for processing by any programmer with a Perl script and a bit of intelligence, all sorts of wonderful new things can be invented that you and I can't imagine.' Now that MS has dropped the ball on the XML Office front, and StarOffice has fulfilled its XML promise, where are all those 'wonderful new things?' Is anybody out there writing Perl/Java/whatever programs to take advantage of StarOffice XML? Could this be an opportunity for Free/Open/Libre software to leapfrog MS Office in real productivity as XML proponents have promised all along?" What kinds of new and wonderful things can you come up with?
This discussion has been archived. No new comments can be posted.

Fulfilling the Promise of XML-based Office Suites?

Comments Filter:
  • XML... (Score:5, Insightful)

    by ewombatnet ( 699110 ) on Monday September 22, 2003 @08:40PM (#7029757)
    I think one of the main problems with the embedding of XML architecture into office productivity software is unfortunately the end user. I mean, how long have programmes like MS Word had "document properties" contained in them, and how many people are actually using them? I'm currently working on a project to retrieve documents accross a company's backed-up data from the past 10 years, and there is very very little metadata available for us to do any searching on. Unless the embedded XML contained within office suites is brought more "to the fore" and in the face of users, instead of being a behind the scenes 'option', people just are not going to use it
    • Re:XML... (Score:5, Insightful)

      by Trolling4Dollars ( 627073 ) on Monday September 22, 2003 @08:59PM (#7029906) Journal
      There are two ways to look at this. ONe way is to make the assumption that the problem lies with the user and the other is that the problem lies within the computer. Even though computers have gotten easier to use, they aren't really easy at all for the average user. The barriers to ease of use are plenty:

      -Feature overload (many features that users will never use)
      -PCs are incredibly complex because they are so flexible and can do so many things.
      -User interfaces are pretty poorly designed and don't seem to be getting any better.
      -Humans don't "interface" well

      If the mode of interacting with computers was like interacting with another person, they would be considerably easier to use. I often joke with my wife that *I* and the ultimate user interface. If you think about it, the best interface for the average user would be a very human-like avatar. Yes, this interface would suck for someone like me (a real computer user), but that's not who it would be targetted at.

      Getting back to the XML subject, these same problems are what keep it from gaining any ground with the average user. The average user still doesn't "get" electronic documents. That's why they always resort to printing them out on paper. To be sure, there are times when a document SHOULD be printed on paper, but that's only really about 20% of the time. The other 80% a document is much better to keep in electronic format. With XML, so much the better. But if the average user has trouble understanding even a basic text file, the ultra-documents that XML can lead to will be completely bewildering. How do we solve this? I've argued this before over and over again: we need new input devices and now I will extend that to new output devices. If we had more variety with the output device, XML documents would be the next "great thing". The XML document has arrived too soon. If we had electronic paper that XML docs could be loaded into, there would be a revolution. It will happen, not just yet. And when it does happen, look for some big corporation to be backing something that looks a lot like XML, but it will have a different more friendly name and will be claimed as innovative.
      • by Anonymous Brave Guy ( 457657 ) on Monday September 22, 2003 @10:03PM (#7030327)

        The parent post is right on the money here.

        Right now, I don't want flashy, XML-driven power apps. I'd settle for a word processor where I can produce my document with minimal fuss and good quality results. Apparently the vast majority of other word processor users agree with me, because I don't see any big uptake of ueber-powerful macro systems, manipulation tools based on super-flexible file formats, or any of the other much-promised stuff.

        The simple truth is that usability is nowhere near the point where these facilities add value yet. Before you can develop powerful extra tools, you have to get the basics right:

        • a clean but powerful UI (no, this is not impossible)
        • good basic navigation and editing capabilities
        • good basic structure and formatting controls
        • good basic tools (spell check, word count and mail merge would probably do for a very large subset of WP users).

        These are essential for a serious document preparation system, yet no currently popular WP, commercial or free, even comes close to doing them all well. The serious people universally use either DTP packages or typesetting systems, and there's a reason for that.

        When we reach the stage where a word processor can do these things well, without the user ignoring stylesheets because they're too awkward, having to look up the help every time they do a mail merge or finding that limitations in the document structure support prevent you doing what you want to at all in a non-trival document, then we'll be getting to the stage where more powerful "workflow" tools might be of real benefit.

        The second stage, of course, is developing the tools to create those workflow tools, and making them sufficiently usable themselves that people actually take advantage of the advanced capabilities. Right now, we have some awesome-sounding automation tools available, but who really uses them? Not many people, IME. Much of the problem is that the automation tools themselves are, like the applications within which they live, simply too much effort to bother with.

        Give me a usable basic WP and usable tools to automate it (XML-based or otherwise) and I will move the document creation world. Until then, don't call us...

        • by Pfhreakaz0id ( 82141 ) on Monday September 22, 2003 @10:24PM (#7030465)
          I agree with you SOOO much. Often times, it seems applications are written by programmers/computer geeks FOR computer geeks. I work on a workflow-based web application (It uses oracle workflow). We recently completely redid the app to do away with the Oracle-generated web pages for "notifications" (stages in the workflow) to do our own and send messages to the engine via API. Why? Our users just didn't "get" the workflow concepts and we had to design vastly more complicated UI that had pictures, etc.

          and yet we met with massive resistance from the other IT groups... "Why are you doing that, workflow does that" "that's a training issue (code phrase for 'the users are stupid') and "don't you know how to say no?" and (getting to your central point) "you've dumbed it down. Your application doesn't any of the powerful search, etc, features the workflow web interface has" (never mind NO ONE used these things).

          I think it was a piece from Douglas Adams who told a story of someone he knew using word who wanted all the junk removed from Word's menus that he didn't use. He showed him how to remove menu items thru customization and he ended up with just Open, Save, Bold, Italic, Print and Spell check.
        • I generally agree. However, I am one of those users who at one time or another uses a lot of those weird features that "nobody ever uses". Macros, comparing documents, embedding stuff, mail merges, etc. I just did a quick browse of my Word 2000 menu bar, and the only things that I don't recall using are various wizards like auto-summarize, auto-format, and letter-wizard. The thing is, that I don't think I'm that unique in using a wide swath of features. True, most of the time 90% of the features are no
      • Re:XML... (Score:5, Insightful)

        by chiasmus1 ( 654565 ) on Monday September 22, 2003 @10:52PM (#7030622) Homepage
        The important thing about XML is not the end users. As an end user I could care less about the formation of the document as long as I knew I would always have an application that could read the document.

        With XML documents, if the file format is well known, there will be filters for it. Major Office Suites will support well known file formats. If the file format is not as well known, but it is simple XML, there are high chances that smaller applications will also have filters for it.

        I like to write web software and I was discouraged when I discovered that I could not find a Perl library to create OpenOffice.org files, so I created one of my own [sourceforge.net]. Granted it is not the best library, and is probably full of bugs, but it was easy to create and the research was painless. It does the job I made it for and I use it.

        Compare that to the time when at work my boss asked me to take a Pick Basic binary datebase file and extract the data from it. I had to play around a while to figure out which bytes meant what and how to get the information out.

        XML not only makes creation easy, but makes reverse engineering trivial. XML is not for the end users, it is for the developers why do not have the time to sit and read the 500 pages of the file format spec.

    • Re:XML... (Score:3, Insightful)

      by rgigger ( 637061 )
      I just had a thought. What I really want to do is generate some sort of office documents on the web. That way I can make word processing documents, spreadsheets, charts, graphs etc that my clients can download. Now I would love to just generate Open Office XML files and have them use those. The problem with that is that none of my clients use Open Office and they are not going to for the foreseeable future.

      Here however is my super cool idea that I just came up with:

      An open office server. If open offi
      • Re:XML... (Score:4, Informative)

        by ReelOddeeo ( 115880 ) on Monday September 22, 2003 @11:37PM (#7030895)
        Once you learn how to do it, it is definitely possible from, say, a Java program to connect to a running OOo (OpenOffice.org==OOo) make it open a document and re-save it in Word format. You can even make OOo do this without flashing anything on the screen.

        There is a definite learning curve. You need to learn Uno.

        IMHO, despite the learning, this would be way easier than trying to extract the parts of code you need from OOo and building a "converter" program. Maybe I say this because I have spent the time learning Uno and can now program OOo functionality from multiple languages, and how to integrate it into a web server like this seems obvious to me.

        I have personally programmed OOo to do things from: OOo-Basic, Java, Python and MS Visual FoxPro. I know from postings from others that it is most definitely possible to use Delphi and VB.

        Just as an example of what can be done, I built a Maze generator in java. You can run the maze generator on a different computer. Even a different OS. It connects to a running OOo, and then creates a multi page drawing of complex mazes. (You can get it at www.OOoMacros.org or at www.OOoExtras.org.)
    • I'm currently working on a project to retrieve documents accross a company's backed-up data from the past 10 years, and there is very very little metadata available for us to do any searching on.

      Yes, but you can't claim that an absence of metadata is due to a failure to write metadata: I myself used to keep a lot of metadata in my text processing documents and found that if you migrate periodically to new versions of the MS-Word format suite, you will periodically lose the metadata. No errors, no

    • People need to wake up to a simple fact-- XML is for databases, not for documents. (I first pointed this out in 1998 [google.com].)

      The gigantic propaganda campaign about the "wonderful new things" that semantic markup would make possible was always just a masturbatory fantasy by people who'd never implemented anything, encouraged by SGML contractors who saw an opportunity to broaden their target market.

      At the root of this delusion is what I call "Goldfarb's conjecture"-- the claim that document styles are superficial

      • The gigantic propaganda campaign about the "wonderful new things" that semantic markup would make possible was always just a masturbatory fantasy by people who'd never implemented anything,

        So, what have you implemented that's being used by thousands of businesses across the world? Pot. Kettle. Black, Mr failed AI expert.

        So the real outcome of the XML-scam is that the effort to add metadata to webpages has been set back at least five years.

        Adding metadata to webpages is deceased. It has been for ov

  • standardization (Score:5, Insightful)

    by Unregistered ( 584479 ) on Monday September 22, 2003 @08:42PM (#7029775)
    one missing thing is standardization accross OSS. When abiword (and koffice?) support oo files, then we might see more of this. Also, i personally can't think of a use offhand that oo.org can't already do. Once people begin to find uses for this, then more people will actually try to write scripts to take advantage of XML.
  • by hattig ( 47930 ) on Monday September 22, 2003 @08:43PM (#7029779) Journal
    Maybe a script to de-buzzword meaningless missives from above?

    E.g., "We wish to engender a positive business atmosphere" => "Free beer at lunchtime"
  • Well... (Score:5, Informative)

    by Otter ( 3800 ) on Monday September 22, 2003 @08:44PM (#7029795) Journal
    ...when the huge universe of MS Office documents becomes available for processing by any programmer with a Perl script and a bit of intelligence, all sorts of wonderful new things can be invented that you and I can't imagine.

    Well, I'm taking a break right now from generating new Excel graphs by copying old ones and changing the source data, which isn't so bad, and those fucking error bars, which is. Oh, and the scatter plot points are superimposed so you can't click on the back ones.

    So if I could do a find&replace on a flat file, I'd have been done an hour ago.

    Other than that, no, I can't imagine either. VBA exists now and it's not like we're all flying around with wings and harps.

    • Re:Well... (Score:5, Funny)

      by BlueGecko ( 109058 ) <(moc.liamg) (ta) (kcallop.nimajneb)> on Monday September 22, 2003 @08:54PM (#7029870) Homepage
      VBA exists now and it's not like we're all flying around with wings and harps.
      True, but after extensive work with VBA, I grew these sharp red horns and a big red tail with a spike on the end...
      • Re:Well... (Score:3, Funny)

        by Korgan ( 101803 )
        Ahhh... so you got MSOffice to run on WINE in a BSD environment then? ;-)
    • Re:Well... (Score:5, Insightful)

      by croddy ( 659025 ) on Monday September 22, 2003 @09:06PM (#7029951)
      MS won't stand for an XML file format -- it's human-readable. the last thing MS wants is for their file format to be easily convertible and transformable. it's a pity, because switching Office files to XML would quickly make them insanely useful.

      imagine you write an outline in word. file -> export as -> presentation... or in access you select some rows and export to a spreadsheet. this is where staroffice stands to beat them.

      but MS Office derives its profitability from incompatibility -- you have to use their products to get full use of their file format. so using MS Office will necessarily sacrifice this functionality.

      • Re:Well... (Score:3, Insightful)

        by YrWrstNtmr ( 564987 )
        magine you write an outline in word. file -> export as -> presentation... or in access you select some rows and export to a spreadsheet. this is where staroffice stands to beat them.

        This is what Office does (rather) well. Use an xls as a data source for an MDB, a word doc, and a presentation, all at the same time. Or link database info to a remote presentation.

        And while Office prefers Office, you CAN link to and from bare text files. Whether delimited or fixed length.

        Way back with Office95 we were
      • "MS won't stand for an XML file format -- it's human-readable. the last thing MS wants is for their file format to be easily convertible and transformable. it's a pity, because switching Office files to XML would quickly make them insanely useful."

        You people are so biased. Now Office has suddenly "dropped the ball." Of course, that meme will permeate through all Slashbots' thinking, whether or not they've even tried Office 2003.

        Here is a sample XML file. The original message said "This is a <b>test
  • They lied ;-p

    Seriously though, koffice will use the exact same fileformat as staroffice. Is that wonderful enough for you ?
  • Not a big innovation (Score:5, Interesting)

    by Doug Merritt ( 3550 ) <<gro.euqramer> <ta> <guod>> on Monday September 22, 2003 @08:46PM (#7029807) Homepage Journal
    documents becomes available for processing by any programmer with a Perl script and a bit of intelligence, all sorts of wonderful new things can be invented

    This is just a return to part of what made Unix so powerful in the first place: text formats that can be manipulated by the whole suite of command line tools. "Those who don't understand Unix are doomed to re-invent it, poorly" (Henry Spencer).

    Back in the 70s we used nroff/troff for document formatting, producing in some cases professional-quality camera-ready books...but the source code was easily fed to spell checkers, formatting-command-strippers, sort, wc, etc etc etc.

    XML is ok...not bad as a meta-format...but it's not some kind of new magic; it's just more of the same as what we always used to do.

    The great step forward is moving away from the crud that happened in the middle: proprietary underdocumented binary formats that couldn't be fed to filter pipelines.

    In this case, moving backwards is progress. But expecting something amazing to be invented is a bit much; it was already invented a long time ago.

    P.S. pet peeve...people credit Knuth (admittedly an amazing guy for the Art of Computer Programming) for reinventing typesetting with TeX. Now, TeX is nicer than nroff/troff in multiple ways, but it's worse in some others (TeX is not set up for command line filters!), and in any case is only an incremental improvement, not a revolution over the older Unix tools. Credit is not properly being given.

    • by Anonymous Coward

      Now, TeX is nicer than nroff/troff in multiple ways, but it's worse in some others (TeX is not set up for command line filters!), and in any case is only an incremental improvement, not a revolution over the older Unix tools. Credit is not properly being given.

      I see your point. But have you tried doing mathematical formulas in groff? In (La)TeX they're a breeze (relative to just about everything else out there). Right tools for the right job I guess.

    • I'll agree on Tex. I remember the day I gave up on it. I attended a lecture by Knuth himself on abstract graph theory. Guess what he used to generate his overhead transparencies with? Colored felt-tipped markers. Here is the great Knuth himself, the creator of TeX with near-infinite computing resouces available, and he hand-draws equations with felt-tipped markers!! At that moment, I knew TeX was dead.
    • by DrSkwid ( 118965 ) on Monday September 22, 2003 @09:02PM (#7029923) Journal
      Ron Minnich at lanl described this one also (though we weren't talking about XML)

      -----
      You want to make your way in the CS field? Simple. Calculate rough time of
      amnesia (hell, 10 years is plenty, probably 10 months is plenty), go to
      the dusty archives, dig out something fun, and go for it.

      It's worked for many people, and it can work for you.
      ----
      if you must [google.com]

      So get ready for all the gee whizzery now the new kids have "found" plain text.

    • What do you have against TeX?
      TeX is god [ok maybe not $DIETY god , but fairly high up there] .
      TeX , along with latex , allows me to do wonderful things with documents generating into multiple formats. Although I have had some eps integration problems (who knew plot utils used some funky ass default font that know one has ever heard of before) it was my fault for not checking to make sure that I had the right fonts installed. TeX is wonderful for typesetting , it puts the control back in the user .
    • Formatting can be handled by whatever.

      The strength is in the meta-data. By using XML the doc can be formatted by anything that can understand it. But formatting is not the point.

      The docs can then be referenced in a relational database - searched,indexed & importantly shared and migrated to other indexing systems or stripped.

      The XML 'magic' is very simple. The use of the data is whatever you want it to be. Do you want to restrict access, provide access, record access, implement version control and X-r
      • Formatting can be handled by whatever. The strength is in the meta-data.

        True! But it is widely under-appreciated that this can and was done even with troff, and still is today in an important way: the "apropos" command that scans for relevant man pages works by looking at a DB built by searching for semantic tags in the man pages.

        This very handy feature would not be possible if troff just did presentation style.

        It's true that this is not the main emphasis of troff, and that one is at the mercy of w

  • by generic-man ( 33649 ) on Monday September 22, 2003 @08:47PM (#7029815) Homepage Journal
    XML is not a selling point for an office suite. Users expect a good user interface and an easy migration. OpenOffice is not there yet. Its help assistant spawns 1024x768 help windows to say as little as "I have automatically capitalized the first letter of your sentence." It has no integrated PIM software to unseat Microsoft Outlook. It has no easy migration path for the millions of users who open documents with useful macros and scripts. OpenOffice has no drop-in replacement for Microsoft Access-driven applications; primitive as Access is, many companies use it to develop simple database applications that would need to be recreated from scratch in another suite.

    At this point in time, there's no reason to switch from Microsoft Office to another office suite simply because this new suite uses XML. XML is best suited as a tool for the back-end developer, not an excuse to migrate to a product that has so many rough edges in its current form.
    • Agreed.. (Score:5, Insightful)

      by msimm ( 580077 ) on Monday September 22, 2003 @09:00PM (#7029916) Homepage
      And before anyone try's to point out the cost/open source issue: In business that doesn't mean squat. Trying to sell something for free is the wrong attitude, businesses don't want to rely on good will. Kudo to all the dual licensed project out there that have learned how to play both sides of the fence.
    • OpenOffice is not a replacement for MSOffice.
      StarOffice is.
    • by An Onerous Coward ( 222037 ) on Monday September 22, 2003 @10:54PM (#7030636) Homepage
      So that's what OpenOffice has been missing all this time. I knew there was something a bit off about it, but I could never put my finger on it.

      The answer, my friends, is an integrated E-mail/Calendar suite. Integrated right into OpenOffice. This is what will finally drive a stake through Microsoft's undead heart.

      Integrated E-mail. Integrated Calendaring. Right in the office suite. All integrated and everything. You all know you want it. Now go, my toiling minions! Build! Build, I say!
  • Apache module (Score:5, Interesting)

    by codepunk ( 167897 ) on Monday September 22, 2003 @08:47PM (#7029817)
    I sure would like a apache module that can CSS and display native open and star office documents.
    • I believe somebody sells the XSLT scripts to transform OO docs to html and then you can use axkit or cocoon on the server-side.
  • by brandonp ( 126 ) <brandon@petersen.gmail@com> on Monday September 22, 2003 @08:48PM (#7029828) Homepage
    I created a PHP script a few months ago that allowed a client to upload StarOffice templates for company documents. Then the the script automatically generate documents by pulling data from a database and inserting it into the StarOffice document.

    Was really easy, StarOffice documents are zipped files that contain the XML files. I just unzip'ed the file, inserted the appropriate data into the content.xml file and zipped it back up.

    I was absolutely amazed by how easy the StarOffice files were to work with. I'm really excited about the possibilities that are in store for us, especially ones that are better than my little hack.

    Brandon Petersen
    • Sounds cool. Now is there a command line tool that can take said resultant XML file and create a PDF from it?

      (would be great for certain automated server applications where there is no display, etc, and running StarOffice isn't an option because you want it automated)
      • xml - pdf (Score:3, Interesting)

        by jefu ( 53450 )
        XML to PDF can be done with the XSLT outputting FOP and then a FOP to PDF translator.

        That probably sounds icky and scary, but should not be all that hard.

        I don't know what the formats are, but there's a whole pile of flexibility in XSL and FOP so building a very accurate version could take some fiddling. But producing a close approximation is probably very straightforward.

  • by jechonias ( 558456 ) on Monday September 22, 2003 @08:48PM (#7029829)
    The biggest dream that the financial world has ever had with an XML concept has been the concept of standardised financial reports.

    Imagine a world where any finacial (excel based or otherwise) report from any public company can be compared with any other company report and we can all be sure of how the figures were calculated and what they mean.

    AND they are fully comparable. And fully importable into any financial package. No longer is any one company dependant on one financial package. Come to think of it there is no way the vendors of such products will ever allow this to happen!!!

    http://www.xbrl.org/

    jech
  • by pirodude ( 54707 ) on Monday September 22, 2003 @08:48PM (#7029830)
    If there was a way to render out the open office/star office documents on the command line it would explode in the reporting area. Being able to have the end user making a really nice template and have a perl script fill it then pass it off to a pdf or printer is key.
  • by Gravatite ( 21346 ) * on Monday September 22, 2003 @08:50PM (#7029840)
    My team & I just got done building some billing software for one of our customers, and OpenOffice.org's XML based documents turned out to be perfect for generating reports. Our customer is able to open up the document and change the formatting of any report at will, and then we have some Ruby code on the backend that parses the XML document, fills in all the real data from the database and then uses the CLI interface to OpenOffice to render the document as postscript. It was a quick easy way to get powerful report generation with a format that non-technical people could edit that required just a little bit of glue code on the backend, and it's the XML format that made it all possible.
  • Difficult (Score:2, Interesting)

    by iMMo ( 61469 )
    I did take some time and decompress a StarOffice document -- I was attempting to write a couple of modules for manipulating StarDraw images to create dynamic flowcharts.

    It took some time to get up to speed, as the compressed XML is split across four different files (content, meta data, settings and styles). Mostly, I was concerned with modifying the content document.

    Each of the documents is written with space in mind, and for the document I was dealing with, the content was 20K on a single line. I had t
  • by Delirium Tremens ( 214596 ) on Monday September 22, 2003 @08:50PM (#7029842) Journal
    XML developers and Web designers are now able to work on some XML-to-HTML transformer that matches closely what the average office user is spending his time creating with the WYISWYG Writer program. This could be a nice alternative to Frontpage, for example.
    Of course, OpenOffice 1.1 already comes with a nice HTML tool, but that doesn't stop anyone from trying to do better.
    • are now able to work on some XML-to-HTML transformer that matches closely what the average office user is spending his time creating

      The guys at Typo3 have done exactly this. They write an extension that takes a normal Office 2003 XML document (like this one [typo3.org]) and displays it as normal HTML (like this [typo3.org]). The resulting HTML is subject to the same rules as all of the other HTML produced by Typo3, which means the appearance of everything can still be changed by modifying a template.

      Typo3 has always been featur

  • by pjack76 ( 682382 ) on Monday September 22, 2003 @08:51PM (#7029850)
    You know, with charts and graphs and your corporate logo on them. The charts and graphs are populated from a database somewhere. Suitable for your board report.

    I bring it up because my organization paid Crystal reports $10,000 to be able to do this. If I could have written a little perl script that connects to the database and emits an OpenOffice doc, then I could have saved the organization ten thousand dollars, and saved myself a world of pain. (The only thing more evil than Crystal Reports is crystal meth.)

    You might be wondering why I wouldn't just use HTML and some library that automatically creates chart PNG images -- the reason is we have to email the report to our board members because they're demanding like that. So we use Crystal to generate pretty PDFs with all the charts. We also let the board members log into our system to generate their own reports via the web, which they can then email to the group.

    So having an XML-based document format for this would be wonderful, especially if OpenOffice would provide a command-line utility for converting from OO format to PDF.

    • I don't know about command line, but I do know that the newer versions of OO.o sport an export-to-pdf function. I'd be surprised if it couldn't be accessed through the command line somehow.
      • Only problem is that it doesn't import any metadata. hyperlinks, bookmarks, etc...It's just a cold rip of the pages. That limits it's usefullness because you can't do anything with the resultant PDF [i.e. HR manual, reports, manuals] just look at it. That's severly limiting for corperate use.
    • The only thing more evil than Crystal Reports is crystal meth

      Funny you should mention that... I'm at work right now (10:00 PM local time; been here since 9:00 AM) for that very reason! And I'll give you a hint, I've never touched crystal meth
    • I used to make PDF's with Perl Scripts from Database reports. I made HTML Documents from the database queries and then used HTML2PS to make Postscript files. I could make PDF's from the Postscript files, see GSView it comes with a script ps2pdf. The results were mailed to interested parties.

      I made use of "Programming Web Graphics with Perl and GNU Software" O'Reilly Book and some extra research on the Web. It was mostly a pretty print of lots of HTML tables as PDF's + text.

      Some customers demanded Word doc
  • But I don't use office suites. I have plenty of perl scripts to play with, reformat (so to speak - convert articles to slides etc.), and produce LaTeX, which has been a readily available option for years. I'm sure if I end up using StarOffice or OpenOffice.org then I may well be inclined to produce useful scripts for those - in the meantime though I'm quite happy with what I've got.

    Jedidiah.
  • by clinko ( 232501 )
    I like the idea of XML but I can't find one good source of all the XML data lists.

    SOMEONE FOR THE LOVE OF GOD give me a list of XML sites so I can actually finish my app that uses it (hence the "it's still beta" in my sig for about 2 years now)

    later
  • by PeterHammer ( 612517 ) on Monday September 22, 2003 @08:54PM (#7029865)

    At my company, once a failed startup with new life under the wings of a huge corporate parent, we have been using a homebrewed Web publishing system that takes Word 2000 or XP documents, saves them in RTF format, then uses a utility created by Majix [tetrasix.com] to transform the document to XML. From there we use perl, and some XSL to get the document into XHTML combined with some JSP to produce documents that we deploy on our production env. The good part: the system was entirely free of license fees (other than office and Windows of course). The bad: it was a pain in the behind to get all the parts together.

    The steps to produce valid XML from Word are the biggest hack I have ever been a part of as an engineer. We had to write a custom VB DLL we run inside (what else) an IIS server which takes the documents uploaded by authors, then saves the documents as RTF. Control is then handed over to Tomcat, which takes the RTF and uses some custom classes that make Majix a server to transform the documents into XML. All in all we had to use VB, VBA, Java, JSP; two separate server configurations (IIS and Tomcat) and a bunch of really ugly glue to stich all the parts together.

    I for one, and I am sure I speak for my entire team, would love a solution which saves us this ugly cludge.

    • If building what you describe today I would make it short work and rock solid by using BIE Business Integration Engine to glue it together.
    • I find the easiest way of getting usable XML out of Word is you use Word's save as HTML function and then running W3C TidyLib [sf.net] to get rid of all (most) of the M$ crap.

      This leaves you with a HTML-esq document that you can feed to an XSL:T and get whatever XML you need.

      I did consider using OO to open the Word document and to save them as XML however I had trouble with its API (I also had trouble with automating Word but here I had plenty of biter experience to draw on.).

  • XML (in word processors, at least) is nothing really new. Remember WordPerfect? It had a feature called "Reveal Codes" which when activated displayed the underlying "markup" behind the document. One could argue that this was a primitive XML format. I argue that while it was great and all, such an accessible format worked well but didn't inspire great advances in unimaginable new ideas.

    BTM
    • I fondly do remember WordPerfect's Reveal Codes feature. While this is more a reflection on the simplistic nature of WordPerfect (and other word processors of the day), being able to see all of the formatting codes as they appeared in a document was great help when trying to format a document to look a certain way, but have it turn out completely different. Also, if I remember correctly, you could even type in the codes exactly where you wanted them to appear.
  • Two Things... (Score:3, Interesting)

    by Serapth ( 643581 ) on Monday September 22, 2003 @08:54PM (#7029871)
    First Off
    Microsoft did not drop the ball with XML. Microsoft disappointed the slashdot crowd by not going completely open... geee...... big shock there. Microsoft maintains dominance to their office suite by controlling the file formats behind it. Opening that up, without reason would be absolutely stupid from a business point of view. Granted, its an un-popular stance, but that doesnt make it any less true. MS played along with the XML game to be able to use XML as a buzz word... and in some ways, they truly have embraced XML... just not in their holy cash cow called Office. Take a look at Visual Studio (dot) Net, and you will see how strongly MS has infact embraced XML.

    Secondly...
    XML is perhaps one of the most over hyped technologies ever. Self describing datatypes are nothing new. The only really remarkable thing about XML is how embraced by the industry it was. In all honesty... the difference between XML and CSV files really isnt that signifigant. Granted... XML is far beyond anything a CSV ever did, but they all present the same result. In the current work environment I am in, all our enterprise systesm support input/output now via CSV. In addition, im in the auto industry, so the whole hype of Webservices+XML really isnt that special either. RIght now, they have ANX and EDI... granted... XML + Web Services would be much more straight forward... but in 20+ years of evolution... has it really come that far?

    Sorry for the anti-status-quo opinion, but I cant help but believe that XML is way overhyped. Useful... sure... but definatly overhyped!
    • Re:Two Things... (Score:5, Insightful)

      by TummyX ( 84871 ) on Monday September 22, 2003 @09:39PM (#7030147)
      What are you talking about?

      CSV? LOL.

      Does CSV have a transformation language (XSLT)?
      Does CSV have an easy to use parser & object model (SAX, DOM)?
      Does CSV have an in document addressing language (XPATH)?
      Does CSV have a standard way of supporting hierarchical data?

      Just cause you think it's overhyped doesn't mean it isn't worth every bit of that hype. I've been using XML since 1998. I shudder when I think about the pre-XML days.
      • Re:Two Things... (Score:3, Interesting)

        by Serapth ( 643581 )
        I think you misunderstand me here. You say you shudder to think of the pre-XML days... well, the pre-XML days, well... they were CSV.

        Now... the thing is, many of the things you have mentioned are already expressed by Relational databases, which is generally what the CSV file is generated from in a batch based system. In alot of ways, that stuff already existed... just not in the file format, but in the process of creating said file format!

        Dont get me wrong, im not saying that XML is shitty... im just
        • Re:Two Things... (Score:3, Insightful)

          by TummyX ( 84871 )

          Does XML really grant us that much beyond what CSV and good databases behind the scenes really help that much???


          Yes because XML fits in places where databases aren't even worth considering. If you think XML is a replacement for relational databases then you're a bit lost IMO.

          How many generic CSV parsers are there? Are the fields (tabs?) self describing?

          Think of an OS and applications today and the various files they use. Think of configuration files, shortcut files, bookmark files, document files,
    • by SuperKendall ( 25149 ) * on Monday September 22, 2003 @11:42PM (#7030925)
      XML can more easily represent complex data structures than CSV, but that's not the main benefit.

      Nope, the real revolution was in creating standardized parsers. I spent many an hour with LEXX and YACC churning out parsers for many custom file formats. Even though XML may not seem the most efficient way to represent things, it's great not to have to write a new parser every time we have a new bit of information to represent in a file. It frees you to think about what data you want in a file instead of directing your file contents to things that will be easy to parse.

      That's why XML is every bit as valuable as it is made out to be, just not for the reasons usually given...
  • by DJ Rubbie ( 621940 ) on Monday September 22, 2003 @08:56PM (#7029883) Homepage Journal
    XML does make it extremely easy to create documents on the fly, whether a plain old document or a slideshow presentation, all it needs is some template XML, original text, and some programming language to put it together.

    I wrote a song lyric storage system using PHP and MySQL, and I had the idea to have it be able to be put onto a slideshow to teach it to a group of people (or whatever). With the XML format provided by OpenOffice.org, I was able to quickly put it together and show it off, impressing quite a few people in the process. Of course, those people think Word/PowerPoint run the world, and the file format is all but a mystery to them. Hence having something generated on the fly via a webpage has its cool factor, and not to mention it was a good chance to introduce this free word processing suite to them. Also a good chance to tell them that if I were to rely on ASP/PowerPoint it would have costed much, much more.

    Open document format is the way to go in the future, because it definitely allows interoperability.
    • Of course, those people think Word/PowerPoint run the world, and the file format is all but a mystery to them. Hence having something generated on the fly via a webpage has its cool factor, and not to mention it was a good chance to introduce this free word processing suite to them.

      One thing that everyone seems to forget ( or is un-aware of... ) is that Microsoft provides API's for the creation of Office documents via code or script aswell. In the past, due to the bean-counters dependance on Excel sprea
      • And having done this myself you are correct it is fairly easy to do, but it is damn unstable and it scales for shit...now go back to hacking on your hello world vb program.
        • Depends on how you do it... basing an enterprise system around Excel is hacky as shit... Ill give you that... Might as well build your system from popcicle sticks and bubblegum. That said... exporting output to excel, if written correctly, its a perfectly fine thing to do.

          Hey... personally I hate excel itself, but then again, im not a bean counter. But, meeting customer requirements is perhaps the most important thing you do. As an analyst... its your job to contrast proper solutions vs customer requ
  • by Anonymous Coward
    There a many uses, besides simply having a format that multiple programs can open. Besides, when new features are added to the format, the older software could ignore those tags, somewhat like HTML has been doing. Then you get the ability to still open newer variations on the format. Not to mention make it easier to covert between them, and add an XSLT to an older app to "update" it to support the newer fomat better.

    few off the top of my head:
    online services generating template documents; such as online re
  • by cca93014 ( 466820 ) on Monday September 22, 2003 @08:57PM (#7029893) Homepage
    or is XML good for the following things:
    • moderately useful at providing a very basic cross platform information transport.
    • very useful when being mentioned by PHBs in meetings with CEO/Investors in an attempt to look knowledgable, bleeding edge and worthy of their job/salary
    • exceedingly useful when being mentioned by stock analysts to pump a company

    I mean, come on. It's just a standardised file format. That's all it is, OK?
  • Here's someone [lojjic.net] who actually did do something with these. This proof-of-concept shows that you can easily convert the xml files to a browser-readable format.
    • Errr, the page he links to as an example is not there anymore (he's moved servers). So you can't actually SEE the results. But the process and the description are still valid.
  • by g8orade ( 22512 ) on Monday September 22, 2003 @09:05PM (#7029940)
    I helped spec out a document management metadata database 18 months ago for an engineering firm that wanted to catalog its files. They started out wanting just to categorize their CAD drawings, then decided to include all types of project files.

    Our solution was a tcl front end that forced the entry of a minimal amount of metadata *during file creation,* to be picked from preset categories and subcategories. We also provided for free text entry but that was to be used only after the other fields.

    The points are
    a) The general metadata categories were known; the engineering tasks weren't new.
    b) No one is going to go back after the fact and enter the metadata. You have to integrate its entry into the new file work procedure.
    c) It's got to be as easy as file/new in a GUI.
    d) Its utility has got to be very very apparent when juxtaposed with a subdirectory / filename scheme.

  • by Carnage4Life ( 106069 ) on Monday September 22, 2003 @09:09PM (#7029970) Homepage Journal
    Now that MS has dropped the ball on the XML Office front,
    I'm curious, how did Microsoft drop the ball with respect to other XML-based Office suites? The linked article [slashdot.org] points to a report that the ability to import user-defined XML formats into a form that can be understood by the primary Office products is an Enterprise feature. However loading or saving documents using a default XML format is in the base versions of Office and in fact was in the last version of Office given that Excel had a documented XML Spreadsheet Format [microsoft.com].

    Is anybody out there writing Perl/Java/whatever programs to take advantage of StarOffice XML?
    Not me but I am writing C# apps that make use of Excel's XML format. I wrote about using XSLT on the Excel XMLSS format in my blog [kuro5hin.org] a few months ago when I had to update date values in certain columns. I also posted the XSLT stylesheet.

    Disclaimer: I work on the XML team at Microsoft but not directly with Microsoft Office.
  • Yup, peeople are (Score:4, Informative)

    by amblin ( 1997 ) on Monday September 22, 2003 @09:19PM (#7030025) Homepage Journal
    Take a look at Axkit's [axkit.com], OpenOffice filter [axkit.com].
  • XML and MS Office (Score:3, Informative)

    by Mr. Ophidian Jones ( 653797 ) on Monday September 22, 2003 @09:24PM (#7030053)

    I guess there's XML and there's XML and getting between them is not necessarily easy.

    Microsoft made a big deal about the most recent versions of Office writing out XML, but that was because XML was a buzzword, sounded as if it might be more open than ".doc", and was essentially a selling point.

    From what I've read, people have been underwhelmed [com.com] with the XML coming out.

    If only a similar set of transformations could be developed for OpenOffice to import and export the XML of the latest version of Microsoft Office. From what I understand, the schema is not documented and the formatting and rendering rules for documents are still kept a private affair, just as it has been for .doc files.

    You're still locked-in, dude!

  • And it would pan out, too, if MS didn't drop the ball.

    If MS didn't drop the ball, we'd have offices full of non-IT people creating XML documents without realizing it. A mass of structured data would build and become grist for the mill that is the office geek.

    Unless OpenOffice/StarOffice has some huge market share that I'm not aware of, I'm not expecting to see any remarkable perl scripts for parsing office docs soon.

  • by Evangelion ( 2145 ) on Monday September 22, 2003 @09:38PM (#7030136) Homepage
    I've been using these [openoffice.org] XSLT OOo <-> Docbook-XML filters for a little while.

    They work pretty well (if you can manage to get them installed with the broken install instructions) but only for a limited subset of Docbook. There's no support for the programlisting tag, and lists are currently broken.

    If anyone out there has superior XSLT kung fu, getting those two things working would be most appreciated : )

    (I know the basics, but I don't yet have time at work to justify it. Maybe if this project gets done on time...)
  • The issue with MS office files has been more with the ability to present it back to the user the same, not reading the file. Various programs have been able to "read" (grab text from) ms office formats for ages, the issue is that noone has been able to write a word processor that shows a moderately complex document/spreadsheet/powerpoint back to the user closely enough to the same. Don't get me wrong, some are close, but if you're tweaking your fonts and whatnot for say, an investor, you don't want OOo to
  • Office Automation (Score:4, Interesting)

    by merlin_jim ( 302773 ) <{James.McCracken} {at} {stratapult.com}> on Monday September 22, 2003 @09:46PM (#7030190)
    Well I don't know about Free/Open/Libre or XML development for Office... but I do know about the proprietary APIs Microsoft distributes for Office.

    If you wanna give them a try sometime, assuming you got Windows, VB5+, and Office installed... just add Office to your references (try Microsoft Office in the Project References menu) and give it a whorl. It's fairly easy to program in if you've used Office... most of the concepts that make for a good Office user translate directly into programming concepts for the Office object model.

    And yet Office Automation programmers are in scarce supply.

    Microsoft even offers a cert specifically for Office Automation programmers!

    But I haven't seen too many well written Office applications. My speculation is that its not for lack of tools, but that its for lack of concepts. Other than the obvious reporting needs that any large organization has, are there any compelling reasons to spend an afternoon coding an office application?

    I think it is this lack of compelling reasons, and not a lack of easy-to-use programming tools that causes the lack of good free open add-ins...
  • ...Of course, not very well--but it's pretty easy to compile, say, the Docbook 4.1 DTD in Wordperfect and edit moderately complicated documents. Or import... The limitations are that it uses its own formating system, rather than XSLT; and it uses DTDs instead of schemas, because the technology derives from SGML (which wordperfect also supports). Arguably, WordPerfect has better support than any of the alternatives within the word processing space (i.e. discounting pure editors such as EMACS).
  • by EricTheGreen ( 223110 ) on Monday September 22, 2003 @09:52PM (#7030247) Homepage
    Bemoaning the lack of XML-based magic goodness in corporate document processing assumes that a corporate document base exists which a) follows predictable content and structural patterns to allow automated processing, and b) is structured and rigorous enough to do meaningful processing against, an assumption which frankly doesn't hold water in too many places.

    For most of the office document world (at least the world I work with regularly), most documents are unique in both structure and content and I as a programmer can make only the most basic of assumptions regarding what a program can expect to find within the content bundle. Sure the XML gives me a nice set of rules to rely on for breaking the document into parts and reading it in. But it doesn't do a whole lot to ensure that, say, two spreadsheets follow similar content assignment conventions. Most places can't get two managers to agree on the form and structure of a basic memo, or even get the same individual to repeatedly use a consistent structure in all his/her business communications.

    Most organizations need to work on a few things before this type of processing will be useful in the large. Two particular areas would be: a) consistent use of metadata within document definitions to facilitate querying and filtering, and b) more sophisticated use of template functionality beyond just ensuring every page has the same graphic in it's header.
  • Assumption (Score:3, Interesting)

    by m00nun1t ( 588082 ) on Monday September 22, 2003 @09:52PM (#7030249) Homepage
    I still don't get this thing about MS dropping the ball. I've played with Office 2003, and the XML features in particular (mostly Word & Infopath, not the other programs) and I think they are quite well done.

    Word has two different modes. One is where you can save an ordinary word document in an XML format. This is the one /. goes on about mostly. Yes, it's pretty ugly XML, but you are trying to represent non-structured data in a structured format - of course it's going to be ugly. But it is documented & there is a publicly available XSLT from Microsoft to work with it. The other mode is to import and XSD and tag up the document as you like. You can save this in "rich" mode (with all the office formatting - unstructured again) or "clean" mode in which the XML is as pure as your XSD is.

    InfoPath simply rocks. Where else can you create a end user friendly UI that outputs clean XML (with XHTML islands if you choose) and will submit directly into a web service & make the whole thing start to end in a few minutes (for a simple form, of course).

    I just don't get it. Seems like mindless MS bashing to me.
  • by unfortunateson ( 527551 ) on Monday September 22, 2003 @10:57PM (#7030644) Journal
    Having an XML representation of a Word (MS, Open, whatever) document as a stream is really no more useful to me than RTF: I can parse them both.

    The better part is when you can structure your document. Not just a heading surrounding a bunch o' paragraphs, but a (to use the stuff I have to work with) Research Report contains a Title Page, a Synopsis, an Introduction, Materials Section, etc. You can't put tables and figures on the title page or Introduction, you can in the Synopsis and Materials Section. TOCs and things like that are created as part of rendition, between the Synopsis and Introduction, without the user messing with it.

    Now even more than storing those sections (which would, in the HTML world, be DIVs and SPANs), I want control over the UI: disable that table button in the title page, even down to where bold and italics can be used.

    Office 2003 has some facility to implement this, but it's kind of awkward -- it's an extension of how their SmartTags work. Generally pretty ugly, to control everything.

    I don't want to use an XML editor, my users know Word, are used to Word Processors, and they cost 1/5 of XML editors, less in bulk licenses.

    I'd be implementing this now, if it weren't for two things: a) I work for a big corporation that never buys into new releases for a couple of years, and 2) they're laying me off -- closing all the facilities in Chicago (sigh).
  • XSLT (Score:3, Insightful)

    by wwi ( 243026 ) on Tuesday September 23, 2003 @01:53AM (#7031508) Homepage Journal
    In about .5 hrs, I was able to
    extract the content from an
    OpenOffice text document, as
    well as a presentation, and feed them
    into other tools. This without
    trying to read any DTD's. Applying
    more effort would have yielded more
    functionality, but I was in a hurry,
    just trying to get some information
    out with some heirarchy to it.

    Now, extracting the style is a different
    challenge, and of course style
    means different things to different
    people. But it is simply madness to try
    to extract content from Word
    and Powerpoint files for use elsewhere.

    Oh yes, I used Saxon. Nice product.
  • by bertilow ( 218923 ) on Tuesday September 23, 2003 @03:47AM (#7031867) Homepage
    > Is anybody out there writing Perl/Java/whatever programs to
    > take advantage of StarOffice XML?

    Yes, actually I started doing that yesterday: I'm using Perl and XSLT to build documents in StarOffice XML (or actually OpenOffice.org XML), converting some 500 XHTML pages into one huge OpenOffice.org document. It's amazingly easy!

THEGODDESSOFTHENETHASTWISTINGFINGERSANDHERVOICEISLIKEAJAVELININTHENIGHTDUDE

Working...