Slashdot Mirror


Creating and Using XML-Based Internal Documents?

Richard Emberson asks: "Once again into the breech...or at least the ground floor in a new startup. This time around, I would like to have all of the Engineering documentation internally online: a unified, internal, CVS-ed, web-based, development organization document tree covering the engineering process, methodology, coding standards, nightly build/test reports, FAQs, new hire information and help pages and the documentation for each project. Recently I've written documentation (on Linux of course) using the Apache XML-stylebook tags, stylesheets, and Ant-base publishing - and I like it. So my questions are: Has anyone done this and, if so, how were the links between documents managed?" Does your workplace use XML in its internal documentation? If so, how well does your system work, and what advice would you pass on to anyone else attempting something similar?

"If you start out with only one project (product), how do you structure it so that when new projects come into existence they can easily be integrated? Are there documentation templates out there upon which I can base the various development documents (like requirements, product development plan, design, coding walk-thru standards, etc.) and not have any of this swell too be so large that no one will be able to produce, maintain or read it?"

69 of 176 comments (clear)

  1. InfoImaging and Dig35 meta data uses XML by purduephotog · · Score: 3, Informative

    Don't know if you'd consider it engineering texts, but XML is used in moving metadata from pictures around. There's an open source and binaries downloadable.... might help your implementation.

    Good luck- it's quite impressive once you get the trees set up correctly :)

  2. The problem is by EQ · · Score: 2, Insightful

    Document interchange with our customers had to be in WOrd, so thats what we got stuck with eventhough we initially started off in the direction you are heading.

    Good luck taking on the Microsoft Monster.

    --
    Buffalo buffalo Buffalo buffalo buffalo buffalo Buffalo buffalo! http://goo.gl/J9bkO
  3. Doc Book by jjr · · Score: 5, Informative

    Why not use DocBook it is XML based extendable what more could you ask?
    Have Fun

    1. Re:Doc Book by Anonymous Coward · · Score: 3, Informative

      Another vote for DocBook. We use it and it works great. You can process DocBook SGML (it also comes in an XML flavor, but we haven't used it) into pdf, rtf, and html. Books can come with multiple chapters so that many folks can work from a cvs repository at once. Then, you build the docs every night the same way you build the code. It takes a smart person a few hours to set up the build process, but it's no big deal. O'Reilly has a book on it, check Amazon.

      DocBook is excellent, no question about it.

    2. Re:Doc Book by asyn42 · · Score: 2, Interesting

      Doc Book is fine for tech people that can understand and value the benefits of the open nature it promotes. But at the risk of starting a flame war, is there a good editor that provides a WYSIWYG environment for editing the documents?

      We have a very common environment of mixed levels of technical expertise. MS-Word is the standard that everyone has, and everyone can use. Currently it is the dictated standard for internal documentation within R&D. The only way to get something in to replace it, is to provide a UI which is at least close to its simplicity of use

      Any solutions out there for DocBook?

    3. Re:Doc Book by cenobyte · · Score: 3, Interesting

      I'd agree. DocBook is excellent, and comprehensive. It is designed for applications like this (technical documentation, etc.), is well supported (built into all ArborText's editors, Frame+SGML, etc.). It is well documented: it has an O'Reilly book written by Norman Walsh. It is very easy to add support for it into stanard text editors: I use xemacs and it works fine (no flames please).

      Linking features between documents can be achieved using <olink> and <ulink> tags. The exact details would depend on your repository setup, but the things you want to do are catered for.

      Best of luck.

    4. Re:Doc Book by jon · · Score: 3, Insightful

      I just finished using docbook-xml 4.1.2 - docbook-dsssl 1.71(contains a print and an HTML sytlesheet for use with RTF and TeX backends) - openjade 1.4devel1 (which uses the stylesheets just mentioned in its RTF and TeX backends) and pdfjadetex to produce a 140 page technical manual in .pdf format. I used psgml mode with Emacs 20.7 as my editor. (I was looking at the interesting group of programs called psgmlx but didn't have time to actually try them.)

      In short, for editing, Emacs/psgml mode worked fine, but the complexity of keyboard commands, my aging brain, and deadline pressure meant that I could only learn to use a small chunk of the possible features, especially of psgml mode which, unlike Emacs, was new to me. I opened one Emacs frame on one page on a 4 x 7 desktop for each chapter and then skipped from desktop page to desktop page with a full screen for each. Hint: Make a tags table so that you can then do search and replace operations across all files that make up your book. (See 22.16 Tags Tables in the latest GNU Emacs Manual (14th edition).)

      Using docbook-xml, I found that tables were difficult, too difficult. I was unable to make a simple 3 colum x 5 row table within the hour I'd alloted and finally gave up. Ended up using the tag to get literal text. Fortunately, only one or two tables were desired. Checking the archives on the docbook-related mailing lists, I was not able to put Norm Walsh's advice (given to someone with a similar table-related problem) to go read the info on the new table model to practical use within my limited timeframe.

      Also, index generation was a bitch. I used collateindex.pl in conjunction with openjade. There must be a better way, but I couldn't find it in the limited time I had.

      No graphics were included, but some of the traffic regarding the problems of others gave me a headsup that I should allow plenty of time for experimentation before actual work could begin, learning how to insert both vector and bitmap graphic files in a document that would be turned into a .pdf.

      Incidently, I was also able to produce MIF files for FrameMaker from the same XML source with openjade, a client requirement.

      YMMV.

    5. Re:Doc Book by cpeppler · · Score: 2, Interesting

      You may want to take a look at XML Spy as an XML Editor. It's a commercial product (about $199), but I've used it to build a DocBook file, and then used the DocBook XSLT scripts to generate HTML. I've also used it to generate custom DTDs, which worked pretty well. The product can import Word files (converts Word Styles to element types). What they really need is an XSL script to generate Word formatted files. That would be great! I'm not sure your basic office folks are quite ready for it, but with a little training, they might be weaned off of Word.

  4. Why Are You Asking Me? by 4of12 · · Score: 5, Insightful

    It sounds to me like you're already a step ahead of the rest of the world, for the most part.

    My workplace uses a hodge-podge of formats including "special" ASCII text files, Framemaker, HTML and Microsoft Word. Needless to say, it's a mess. No open, standard, consistent tools to examine all of our documentation. Yeah, you can grep HTML, but the others are a pain. And don't even think about automatic script language based conversion among these formats.

    I suspect you're more advanced in your thinking than 90% of the places out there. Why not continue with your thinking and let the rest of us know what you decide?

    --
    "Provided by the management for your protection."
    1. Re:Why Are You Asking Me? by sphealey · · Score: 5, Interesting

      "My workplace uses a hodge-podge of formats including "special" ASCII text files, Framemaker, HTML and Microsoft Word. Needless to say, it's a mess"

      The question I would ask is, Is that because the tools are inadequate? Or because human thinking and creative processes are a mess?

      I have worked in highly structured engineering shops where everything is done according to procedure and every document stored in a structured manner (basically using procedures laid down in 1920!). These shops excel at delivering well-scoped projects in understood knowledge realms (the mythical bridge) on-time and on-budget. They do not do so well at handling projects in poorly understood knowledge realms, or projects where the environment and/or requirements changed rapidly.

      I have also worked in loose, no-standards, anything goes engineering shops without any structured document/knowledge processes. I wouldn't hire one of these shops to build a bridge on time, but in fast-changing environments they do much better than the first type.

      Conclusion: Be sure you understand what type of shop you are supporting before tying everything down with highly structured processes.

      sPh

    2. Re:Why Are You Asking Me? by FFFish · · Score: 2

      A common misunderstanding of the ISO900x (and similar) requirements is to think that it demands inflexible, planned-in-advance, detailed-to-the-extreme structures.

      It doesn't.

      You can run a highly creative shop and still achieve ISO9001 compliance. When documenting the processes, you "build in" the flexibility that's required to maintain the creativity, while at the same time avoid regulating it to such an extent that you squelch the creativity.

      It can -- and has -- been done. Standards are a *very* good thing in all work environments. Standards that require source-cause fixing of "bugs" (errors, mistakes, mis-steps, call it what you will) are even better.

      --

      --
      Don't like it? Respond with words, not karma.
  5. I love how MS is dealing with XML by the_2nd_coming · · Score: 2, Interesting

    they say that office will use XML, however, I doubt that they will use it as file formating as that would put a big leak in thier desktop domination.

    they will most likly us it for communicating between thier office applications.
    of cource they don't tell you that in the press releases, they just say "Office will be moving to XML because we want to support standards" to bad they arn't using XML in a standard way (I know I will get flamed for that last part :-p)

    --



    I am the Alpha and the Omega-3
    1. Re:I love how MS is dealing with XML by MobyDisk · · Score: 2

      Your information is dated: Microsoft Word 2000 and beyond use XML as the native file format.

    2. Re:I love how MS is dealing with XML by big.ears · · Score: 2

      It is so ironic that MS is embracing XML as the state-of-the-art cutting edge technology (evidence of their innovation?). Why? Well, what is XML? some super-encrypted file format? some highly compressed communication system? Some super-efficient binary code transfer protocol? No--its text-based markup, designed specifically to avoid the inter-operability problems associated with a long tradition of proprietary binary document formats.

    3. Re:I love how MS is dealing with XML by mfarver · · Score: 2, Informative

      Really? My copy of Word 2k doesn't seem to save native in XML, nor can I find any options concerning it. We would love to see this feature, since most of our technical documents are in word and the inability to search the documents is killing us. In fact XML is the primary reason we are examining OpenOffice.

    4. Re:I love how MS is dealing with XML by coyote-san · · Score: 2

      Last I heard, the MS XML format replaced

      blob of binary data

      with

      <ms-office type="word">
      blob of binary data
      </ms-office>

      Or something like that. Just like that joke about the guy lost in the helicopter, they provided a format which is technically correct, but totally misses the point.

      --
      For every complex problem there is an answer that is clear, simple, and wrong. -- H L Mencken
    5. Re:I love how MS is dealing with XML by FFFish · · Score: 2

      Alas, Microsoft *has not* moved to XML.

      Word2K saves its files in an ASCII format that *looks* like XML, but isn't. It's jam-packed with, you guessed it!, proprietary "extensions." It's not parseable as pure XML.

      Add in that the Word DTD isn't, to my knowledge, a publicly-available DTD, and the XML mess that Word produces is just as opaque as the hodgepodge mess that they called RTF.

      --

      --
      Don't like it? Respond with words, not karma.
    6. Re:I love how MS is dealing with XML by spankenstein · · Score: 2

      Ok... so i looked at a document that I created in Word 2000 and saw nothing that even resembled XML.

    7. Re:I love how MS is dealing with XML by coyote-san · · Score: 2

      It might be an old joke, but if so it's based in fact. Knowledgeable people I know and trust have told me the same thing - that early XML support (at least) was nothing but a thin wrapper around the existing file format.

      The question is if Office XP has peeled back a few layers of the onion.

      --
      For every complex problem there is an answer that is clear, simple, and wrong. -- H L Mencken
    8. Re:I love how MS is dealing with XML by MobyDisk · · Score: 2

      I guess you guys never heard of compression. It is a technique that allows files to become smaller, and often times a side effect is that text files become binary.

      If you ever use the Word 2000 object model to contact MS Word you will get XML streams in and out of it.

  6. Zope by DOsinga · · Score: 5, Informative

    Have you considered zope? It is perfect for storing a document tree, it has strong support for XML, including an extension for DocBook and supposedly it integrates with Apache. Gives you also lots of options to format the
    XML as Html.

    1. Re:Zope by Anonymous Coward · · Score: 2, Interesting
      Zope is fine for some shared writing environments, but I'll take a step out on the branch and say that there isn't enough failsafe tools readily available that can handle XML conversion, storage, and group-writing to make it worthwhile to invest in Zope instead of the solution he's thought up.

      CVS is designed for the group. Revision control is handled in Zope primitives, but to be able to back out of something, while diff'ing another thing would be a pain to code for it while maintaining its (admittedly half-decent) UI.

    2. Re:Zope by hey! · · Score: 2

      Strong support for XML? A lot depends on what you mean by support.

      The Zope people have been tinkering with XML for some time, and have had some interesting capabilities, but they are a bit behind the curve (IMHO) on supporting XML standards like XSLT. Perhaps there's a bit of impedence mismatch, since Zope has alway been about content/presentation separation, but does it in a different way than XML. I'd say that Zope is currently rather more web centric than most people seriously interested in XML need it to be. People will want the capabilities to generate printed manuals and PDFs from their documents. On the other hand, Zope rocks for making HTML. For example, I think that for transforming XML into various forms of HTML pages, Zope's Page Templates is going to be a far simpler and better for HTML designers to deal with than Apache Turbine or WebMacro. On the other hand it's apples to oranges, because there is a lot more flexibility built into the servlet model than into Zope.

      It's not saying you can't do everything with Zope, just that you have a lot more that you will have to either develop or wait for somebody else to do before you really have a complete solution.

      --
      Post may contain irony: discontinue use if experiencing mood swings, nausea or elevated blood pressure.
    3. Re:Zope by dgroskind · · Score: 2, Informative

      Three relevant links to read in considering Zope for XML are:

      Creating XML Applications With Zope

      Create a XML Based Document Repository

      Cant Handle Humongous XML

      In some data management scenarios, using Zope obviates the need for XML markup. In practice, content management issues like security, revision control, and online access through a browser are bigger issues than markup. Zope provides solutions to all these problems.

      My main caveat in using Zope is that finding all the relevant documentation for XML or anything else is a veritable Easter egg hunt. The Zope API doesn't seem to be documented in one place. More than once a Zope tutorial seriously proposed that the reader read the Python source code for further information.

  7. Stylebook is dead by Lt · · Score: 3, Informative

    I use stylebook for internal documents at planetu.com, but stylebook seems to be dead. Docbook is a much better choice. I just have not got around to converting to it.

    The really nice thing about using XML is that I can automate some of the documents. Such as the list of valid form fields for a HTML/jsp page.

    For the nightly builds, change logs and javadocs, I use Alexandria.

  8. Re:XML is good by Jules+Bean · · Score: 3

    ...and people should bear in mind that that is in fact about all that is good about XML.

    XML is simply a notation for structured information. It's not the first, it won't be the last, it's not the most compact (lisp is far compacter), and it may well not be the best.

    But it's around, there are some robust libraries to parse it, so you might as well use it.

    It's all directed acyclic graphs, really...

    Jules

    --
    -- Any sufficiently advanced technology is indistinguishable from a perl script.
  9. Linking between documents by kampi · · Score: 3, Informative

    In your case I'd probably choose docbook, but if you're just looking for a way to automatically setup the links between several XML documents you might take a look at w3make (which I wrote) or a similar project called XWeb which was written by Peter Becker.

    --
    -- a blessed +42 regexp of confusion (weapon in hand) You hit. The format string crumbles and turns to dust
  10. Re:XML by MobyDisk · · Score: 2, Insightful

    1) Your point is irrelevant since this discussion is not about HTML.
    2) XML is not a replacement or a complement for HTML. HTML has nothing to do with XML. XML is a extensible markup language which can be used to transfer an infinitum of data forms, HTML happens to be one of th emany many uses it has, but not nearly the most important. XML is more commonly used for databases, RPC calls, log files, EDI, or new languages than as a complement for HTML.

  11. Maybe in the old days... by Carnage4Life · · Score: 2

    XML is a complement to HTML
    XML is not a replacement for HTML.


    I disagree rather strongly with this. I don't know what your experience is with XML but there are lots of shops that use XML for both presentation and data interchange because of its versatility. An XML document can be presented using an XSLT stylesheet or parsed using a DOM, SAX or whatever API. So the same document that can appear on a website because it has a stylesheet to transform it to HTML to maker it viewable is the same document that is used by your applications as a config file, data file, database updategram, etc. with zero modifications to the file.

    This is a very, very powerful aspect of XML. In my opinion, HTML is dead and considering that there's been an XHTML Recommendation for close to two years I wonder why people are still clinging to XHTML (Yes, I know it's because the browser developers have dropped the ball).

    1. Re:Maybe in the old days... by lectos · · Score: 2, Insightful

      You just proved his point. Displaying XML as HTML is the only way to insure compatibility cross browsers. XSLT, DOM parsing, and SAX parsing use transformations into HTML to display the XML. You notice you are still using HTML? I do!!! It's not the direct use of HTML to style the XML, but it is still HTML. XSLT's template formatting is based on HTML you know. Since, the majority of web browsers only read HTML directly HTML is the easiest and most logical way to style XML. By that definition, XML is a complement to HTML because HTML will still exist regardless. With that said, if we ditch HTML what are we going to use to style the XML? What would the web browser developers have to create to style XML in the browser? They'd have to integrate an XML based schema for styles...hey that's what XHTML/HTML is!!! XHTML is just an XML representation of HTML in insure your style and outputs are valid and well formed. And yes, I know you can use CSS to style XML but that is not totally cross browser. We still have those people running around with Netscape 4 out there that doesn't support any of this stuff. It's silly to say HTML is dead.

  12. Our company is using XML for all documentation. by MemRaven · · Score: 5, Informative
    I asked our docs infrastructure person to pipe up, I'll see if she does before this gets to like 400 comments and nobody sees.


    We standardized all our early documentation on XML, and it's been working great. Admittedly we're using Perforce, not CVS, but we're doing something very similar to what you want to do.


    All our documentation is in XML format, in a DTD that we defined. We then have XSLT transformation scripts that convert that documentation to HTML format, and scripts that automatically update our development intranet whenever changes get checked in, along with scripts that invoke javadoc and doxygen on all the code to convert that to HTML format. We're in the process of being able to convert the same documents to PDF format to be able to publish those same documents, in the same formatting, to pretty-formatted documents for printing.


    This, aside from the simplicity of not having to worry about formatting documentation when you write it, is pretty cool. It's easier for me (as an engineer) to write a very sparse, structured XML document that will end up looking very good on screen, than to learn enough HTML to make my documents look good. And it's easier for us to enforce a standard look and feel across all documentation this way, because only the XSL transforms have to change if we change our formatting.


    But the real advantage is coming out with more advanced uses. For example, when we have configuration files, we have a special DTD that we define the documentation for the configuration files in, and then any documents that describe the configuration files are automatically converted both to the HTML documentation, AND to an example configuration file for users. We can also mark some things as only visible internally, so that the same document can have data that's visible to end-users, and data that's visible to employees (so if we have advanced configuration options that we don't want customers mucking with because they're for debugging the system, we can document them in the same place, and just hide them from customers but let our support and professional services people in on the secret).


    The best part is that because our XML DTD is very structured, someone like me (an engineer), will actually use it because it ends up being easier for me than writing in plain text, whereas I wouldn't do it in HTML (or if I did, it would just look like crap). It also makes it much easier to do integrations across branches of code: because we know the DTD for our XML documents very well, it's more likely that integrations will go smoothly, which helps keeping multiple branches of code and docs in sync automatically. If you go with a binary format, you're not going to be able to do that, and every time you make a change, you're going to have to manually change the documentation for each and every branch. With ASCII or HTML, everybody's going to produce documents that look a little different, so you're not going to be able to have as easy a time in integrating between branches.


    Our docs infrastructure person can pipe up in terms of the particular technology that we're using, but it's turned out to be one of the best infrastructure decisions that we (actually, she) made, and it's saved uncountable hours and actually made it more likely that people will write documentation themselves, because they don't have to pull out some crazy windows tool: just edit the document in emacs, and it'll still look pretty for the customers.

    1. Re:Our company is using XML for all documentation. by sien · · Score: 2

      Do you use XML for storing UML designs ? If so what tools do you use ?

  13. Re:s/again/more by EnderWiggnz · · Score: 2

    sed: -e expression #1, char 12: Unterminated `s' command

    if you're going to correct someone using regex, do it right :-)

    --
    ... hi bingo ...
  14. Introducing XML documentation in the company by thbzcrt · · Score: 3, Informative

    Unless you are the CTO or the only developer in your company, you may not have complete control over the documentation format. Other people may, and probably will prefer to write documentation in Word than in XML. And I won't condemn them because Word is a good editor for documentations in plain English.

    A way to introduce XML-based documentation in a company is to prove what it can do (and not just speak about it). In a previous company, I expressed the desire to have a documentation generated from the source code, but nobody seemed really interested. So I did it myself, and when they saw it, they loved it.

    The idea was to parse our source files (which were in various languages, more or less easy to parse) and generate an XML documentation for the APIs. In a second step, other programs read the XML documentation and transformed it in RTF (Word) and HTML, using SAX and XSLT (I tried both and preferred SAX).

    The HTML version was installed on the Intranet and the developers used it as a reference documentation in their everyday work. They knew they could trust it more than any other documentation, because it was regenerated every night. They also liked it because, unlike Javadoc, the source code parser worked very hard to gather information from the code without forcing the programmer to use constraining comment conventions.

    The Word version was delivered to the clients as an API documentation.

    Other documentations were written directly in Word. The system worked very well, and ensured a good-quality and up-to-date API documentation without too much work.

    I also used the intermediary XML documentation for other purpose, including some code generation, which proved the versatility of XML.

  15. Try Conglomerate by Colin+Smith · · Score: 4, Informative

    More worthy, full document management system than the efforts being put into word processing.

    Conglomerate

    --
    Deleted
    1. Re:Try Conglomerate by sien · · Score: 2
      Just had a look at that - thanks.

      But I have to say - check the docs section for an interesting quote:
      "Sadly, Conglomerate has very little documentation at the moment, both user and developer documentation is practically nonexistent. There is, however, an introduction to conglomerate's architecture available, which should at least be of interest to potential developers."

      Now surely this is a terrible inditement of a system that is intended to be used as:
      "Software development groups who want a system integrating the entire process of authoring, storage, revision control and publishing, while using the same tools to create API documentation, release notes, tutorials, reference guides, and more, and publish them to online formats (HTML, Windows Help, custom formats) and paper formats (TeX/LaTeX) from the same sources."
  16. XML Document Architectures by under_score · · Score: 5, Informative
    Hi. I have a little experience with this. I'm not going to bore you with the story, rather just get to a simple description of possible architectures for what you want and why you might want them. Finally, I'll conclude by saying that what you are doing is extremely ambitious: don't falter when it gets hard and overwhelming.
    1. Plain XML, without schemas
      XML is a markup langauge that is supposed to be human readable. Thus anyone can whip up an XML document that describes some data (e.g. documentation on software). It helps if you have standards to make the XML consistent.
    2. Plain XML, with schema (or DTD)
      Creating schemas for all you different types of documentation is probably the first big pain in the butt you will deal with, but it is pretty essential to get a project like you describe to work. It helps by setting common standards which all participants in your org can use to understand the docs they are looking at. Now you also get some tool support for creating and validating your XML documents.
    3. Database -> XML
      Store all your documentation data in a database and use common db tools to extract it and format in XML. Why bother? Tool support! Lots of software development project tools support using a db as a repository for the various work products (documentation and code and stuff). This also allows you to have somewhat easier methods for serving your content to interested parties with appropriate security constraints.
    4. Repository -> XML -(XSLT)-> HTML
      Here we add the ability to transform the human-readable-but-cumbersome syntax of XML into html for viewing on a browser. The big effort for this sort of architecture is that you have to create the XSLT for all your different document types and you need some way of linking-to/searching your documents from the html into the repository. Some application and web servers help with this. I'm most familiar with the Java space, and Tomcat with various xml libraries can be made to do this.
    5. Repository -> XML -(XSLT)-> XML -(XSLT)-> HTML
      This is the most flexible architecture in which pure data XML is transformed into an intermediate form which represents an abstract presentation of the XML and which is then transformed into HTML (or WML or PDF or whatever). The first stage of transformation you need one XSLT style sheet for each document type to convert it into the presentation XML. Then for the second stage you need one stylesheet for each display format. The big advantage here is that if you need to publish to a new document format, you don't need to re-write _all_ of your first stage transformations, you only need to add one new second stage transformation.
    There are of course variations. Check out IS Architectures - Organizing the Web Server for more details when one of your outputs is HTML.
  17. Why XML? by dgroskind · · Score: 3, Informative

    A good place to start is Open Source XML Database Toolkit by Liam Quin.

    The key point is that the best approach depends upon how the data will be accessed, used and updated. There does not appear to be an off-the-shelf, one-size-fits-all solution, even if you go to a commercial platform.

    The advantage of XML is that you can start with a simple approach and migrate to a more complex approach without having to do an expensive data conversion.

    The disadvantage is that XML can be quite expensive to set up on legacy documents and expensive to maintain as well. For documents that change frequently, have multiple uses, or require precise retrieval strategies, XML is the way to go. It's particularly useful when version control must be tracked at the paragraph level.

    If version control takes place at the level of the whole document, retieval is done by keyword, and documents are displayed in one form only, XML may not add anything but trouble.

  18. Files Easy, Editing Hard by dschuetz · · Score: 4, Insightful

    Forget about how do you build the repository -- that's easy. (Well, okay, non-trivial, but with databases, cvs, and even just simple shared folders, storing the docs is the least of your worries).

    I still maintain that the biggest hurdle in any standardized document system (especially if you include multiple concurrent authors) is the front-end editor. I wrote a simple (and highly buggy, I'll admidt, so you who know me keep your traps shut!) VB application that provided a multi-user front end to a database. The back-end (PHP) pulled all the appropriate rows for any given doc together and mashed it into a nice, navigable HTML document. I even had PDF support at one time (but it was even flakier than the GUI).

    However, it was not XML, so it was REALLY limited in how easy it was to create new views on the data. The biggest problem I ran into was trying to find a good GUI editor -- this thing was written for security engineers, not HTML experts, and I wanted them to concentrate on content, not tags. I eventually settled (and settled is the right word) on the Microsoft DHTML control. Worked well enough for the time (two years ago at this point), but I still think half my problems stemmed from that widget, or bad interface programming to it. The advantage? WYSIWYG (more or less) editing. Seamless multi-user editing of the same document (well, okay, we had some record locking issues. :) ) But again, the long pole of the tent was the editor widget.

    Since then, I've wanted very much to rewrite the thing to handle full XML, and I understand there's an effort underway to do just that (I've since moved to different pastures), but it's slow going. I've looked at current technology (ABIword, for example), and i'm just not convinced that it's going to be easy to get a good semi-WYSIWYG XML editor going. At least not on the cheap.

    Some time ago was posted here an app called Conglomorate, which I still think has about the best approach to visually representing an XML document. But it hasn't been updated in forever, and was slow/buggy the one time I played with it. More recently, the XMLmind XML Editor (XXE) has shown a lot of promise, even including CSS files for editing DocBook XML. They even have source available. Again, goes a long way to letting you edit diverse XML files in a logical way -- not by forcing you to look at ugly tree-views of an XML file, like so many first-generation editors. Finally, the latest XML Spy editor beta goes a bit father even than XXE, using a full XSLT transform to provide a WYSIWYG format for XML files. Theoretically, with this, you should be able to display any of your documents in whichever approach you like -- full WYSIWYG, tables, trees, block labels, whatever.

    Of course, neither of these latter tools work in a concurrent editing fashion. But that's a "minor" enhancement -- put together a robust DB back end, allow for good record locking, editor-to-editor communications for lock management, transaction log to allow back-out of changes, etc. Lots of possibilities. Take XXE, put this kind of capability on the back-end, an integrated login and document management system, and you've got a kick-ass document solution. Work the backend to allow for multi-stage review and publishing, and provide output engines for HTML, PDF, WAP, whatever, serve different subtrees of the system to, say, internal project web servers, external web servers, sales and marketing (for glossies), etc., and everyone can manage everything, real-time, GUI, with one tool.

    But I dream.

    (seriously -- if anyone's really working this, I'd love to help. I just wanna use it at home for my own web pages.)

    1. Re:Files Easy, Editing Hard by smallpaul · · Score: 2

      XMetaL is the leader in the XML editing category (in North America, anyhow). They've been in the structured editing business for roughly 15 years. Another strong contender is Documentor.

  19. Forget CVS; start a Wiki! by Sunlighter · · Score: 3, Informative

    The Wiki Wiki Web is a set of editable, cross-referenced web pages. Anybody can view them and anybody can edit them, and they are searchable. Wikis are pretty useful for internal documentation projects. It should be possible to extend the concept to add the security that is typically required and to add support for XML. Of course, all that means I am practically suggesting you write your own custom Wiki, which may take too long for you. But you could probably start with an existing Wiki and get good results. I have set up UseModWiki (which is a CGI script written in Perl) and gotten good results.

    Hope this helps!

    --
    Sunlit World Scheme. Weird and different.
  20. Re:XML by Tet · · Score: 3, Interesting
    XML is more commonly used for databases, RPC calls, log files


    I'll curse the brain dead moron that first suggested using XML for log files for the rest of my days. It is completely unsuited to the task. I have to wade through megabytes of pointless XML every day, searching for errors that are obfuscated by the sheer volume of crap that surrounds them.

    --
    "The invisible and the non-existent look very much alike." -- Delos B. McKown
  21. One word ! Wiki ! by Khalid · · Score: 4, Insightful

    More exactly one of the best incarnation I know of : twiki (twiki.org). Absolutly terrific ! it can be used as a collaboration medium, a knowledge base repository and much, much more, you will find new ways of using it everyday. I have installed it where I work ! and people have been ecstatic !

    1. Re:One word ! Wiki ! by Cato · · Score: 2

      I use TWiki a lot as well - it doesn't address the same problem space as XML, and in fact doesn't really have semantic markup, but it is very useful as a way of collaborating by creating web pages. The idea is that anyone with a web browser can edit any web page. There are some people working on transforming Wiki pages into documents, using TWiki, but that's not really its focus.

    2. Re:One word ! Wiki ! by Winged+Cat · · Score: 2

      Agreed...for less structured data. If you've got a poorly understood problem you're documenting, where the lack of understanding precludes even putting together a DTD for the docs, Wiki works well. And given as "poorly understood" tends to mean "interesting"...

  22. we use XML for our knowledge base by valmont · · Score: 3, Informative

    I work at an ISP ... (not AOL, not MSN) We have a whole department who's in charge of writing up procedural documentation, walkthroughs, how-to's, FAQ's, to solve just about any problem you could ever encounter on almost any platform and operating systems under the sun on your way to getting connected to the internet.

    As soon as XML standards and derived technologies and languages (XSLT, DOM, and more) started to be strongly established nearly 2 years ago, we moved whatever existing documentation we had into XML, conforming to internally developed DTD's and specs, after a couple guys and I built a handy HTTP-based authoring tool that leverages technologies built-in Internet Explorer 5.0 which I've previously described right here, allowing writers to not have to know anything about XML, and simply click their way thru easy interactive forms, in a fairly compelling user interface ...

    With all of our information stored in XML, we can easily present it to various audiences, may it be our members who can search it by keywords to help themselves in our online support area or our technical support reps who can browse directory trees to specific XML documents and have access to more detailed information about hardware and platform configurations, document revision information and more.

    The bottom line is this system works really well. And we have the amazing peace of mind of having GREAT information in a format that can never become completely obsolete, and that is always a couple XSLT stylesheets away from fitting just about *any* need.

    Whether you make up your own DTD's or follow existing standard DTD's like DocBook mentioned in other posts, as long as you put some thought into structuring your XML data at the beginning, you can only win in the long run: XML documents can easily be processed into other XML DTDs/formats to represent the information in a way that better fits another application, and/or transformed into other documents made of a markup language meant for presentation like HTML or WAP.

    yea. XML is nifty. :)

  23. Re:Use a wiki by Khalid · · Score: 3, Informative

    Yes I confirm this ! at work we use twiki (twiki.org) one of the best wikis I kow of, really a very nice collaboration tool. It can be used as knowledge management repository too, very easy to use and to start getting people using it.

  24. Similar problem here... by Eminence · · Score: 2, Informative

    At my company (in fact it's a local branch of an US based corporation) we have similar problem. There is a team here developing a system designed specifically for a customer. As one can expect along with such a system goes all the documentation - everything you could expect starting from the analysis, through functional specification and coding guidelines to end user and administrator's manuals. To make things more complicated part of the development - and the documentation - is being done by a subcontractor (which happens to be on another hemisphere) - and it is being prepared in English, but some parts of it (especially the manuals) have to be translated into local language.

    Up until now it has been a growing mess with documentation being written in Word (with all the usual problems Word has with large files, with lots of graphics - screens, no versioning etc.), with no standards, with people getting into one another's way while trying to update the numerous documents.

    Recently together with a friend we have came up with the idea to switch all that into neat XML/SGML files, with CVS based versioning and everything based on open standards and free software as much as possible. To our surprise the management liked the idea and we got a green light to do some research. And then the problems have begun.

    First, the editor. Coding XML files with vi or alike might be nice for a hacker - and is great for creating and testing XML formats used then for data storage etc. - but it is out of the question for documentation authors. And it is pretty understandable - to be able to concentrate on the content, on the text itself, the author needs to see only the contents, as nicely rendered as possible - no tags getting into way in each sentence, no learning for years how to use the editor (thus Emacs with its psgml mode is not an option - don't flame me, it's just a fact). After a long search I have to say that there is no working, finished GNU/free editor that would match our requirement of almost-WYWSIG presentation of an XML/SGML file. As to commercial ones the only two that look good are XML Spy 4.0 - but it is just a poorely working beta for now - and Arbortext's Epic - which is almost exactly what we need, but is a bit expensive at around $700 a license.

    Nevertheless, with no other options left we decided to go for the Epic when it comes to the editing side. We got an evaluation package and begun testing.

    Now, we were from the start convinced that DocBook DTD & tools that go along with it are the best choice for the kind of problem we faced. Epic supports the DocBook but comes along with their own version, which in turns doesn't work well with the Linux sgml tools that we use for translating the XML/SGML files to useful end formats. On the other hand not all Epic's features can be used when one just tries to edit the document based on an "external" DTD. To enable things like being able to see the graphics files inserted into the document one has to hm... "customize" the Epic by creating some additional configuration files (like .FOS files) using yet another expensive tool Arbortext sells - the Epic Architect.

    But that is not the end of the problem, because the stylesheets currently available for translating the Docbook based XML/SGML files into useful formats are not well documented and partially don't work (for example tags related to inserting pictures in the document are ignored when trying to generate a printable document). There is for example a project on Sourceforge that develops XSLTs and DSSSLs for translating Docbook based XML into various formats, but so far I was not able to make them work - and there is no documentation. Also the DSSSL based machinery for translating SGML files that comes with various Linux distros is far from perfect - HTMLs are generated mostly OK, but printed documents (.tex and .pdf) leave much to be desired.

    So, from our point of view it looks like we will have to buy an expensive editor and then someone would have to spend a month or so tweaking the editor, modifying the stylesheets for our needs, developing procedures and so on. And that someone would have to be quite a competent person (with deep knowledge of the subject), someone, who could be probably better used directly in the development project.

    As for now the future of our little plan of switching from mess to neat XML based solution is uncertain. Mainly because we would have to build that neat solution ourselves, as what we can get from outside at the moment are some bits and pieces that - although nice by themselves - just don't fit together.

    (And, BTW, I haven't even touched the nice catch with CVS - to be really useful in the kind of environment that we envisioned it would have to be integrated with the editor - and that doesn't seem likely).

  25. Word to XML? by Bilbo · · Score: 3, Insightful

    MS-Word is the standard that everyone has, and everyone can use.
    True enough, but it doesn't answer the original question. Can MS-Word (or even StarOffice, if you want a non-MS option) output XML? I know it will output HTML, but it's such a bastardized mass of proprietary and font/format specific crap that it's essentially useless unless you extensive filter it first.

    The whole point here is not to create pretty formatted documents, but to leverage the power of XML to add context and meaning to the content of the documents in order to create a rich and interlinked heirarchy of information. Conventional word processors just create blobs of information -- pretty formatted blobs, but blobs nonetheless...

    --
    Your Servant, B. Baggins
    1. Re:Word to XML? by coyote-san · · Score: 2

      But what does that XML actually look like? Early MS XML support, at least, replaced

      blob of binary data

      with

      <ms-office type="word">
      blob of binary data
      </ms-office>

      Technically a well-formed XML file (assuming that the DTD shows the ms-office tag as having CDATA content), but it's useless as a shared document format.

      --
      For every complex problem there is an answer that is clear, simple, and wrong. -- H L Mencken
  26. XLink by Jeffrey+Baker · · Score: 2

    For links between document, use the w3c's XLink Specification

  27. Star Office by LetterJ · · Score: 3, Interesting

    OpenOffice (the equivilant of Mozilla to StarOffice/Netscape) has gone to an XML format for its native format. It's actually several XML files Zipped up in an archive, but you can easily open it and look at the plain XML. Check out the recent builds of OpenOffice. Many of the gripes against StarOffice 5.2 have been resolved.

  28. biggest barrier in a small shop/startup by StandardDeviant · · Score: 2

    The biggest barrier I've encountered in small or startup environments to something like this is organizational "buy in". For example, at $workplace[-1] I wrote a defect tracking system custom tuned for us. Worked pretty well on a technical level ... but nobody used it becuase with < 10 people, it was easier to just turn around and hand somebody a postit-note bug report.

    Then again, that is characteristic of one of the central challenges facing a small organization, namely how to grow the structures to make a larger organization maintainable. I.e. overcoming the "this is a pain in the ass, why do we need this now?" factor. The answer to this depends strongly on the people involved, but if you can make the system about as painless as typing into an ASCII file or scribbling on a postit, you stand a better chance of success.

  29. Use XHTML by Ars-Fartsica · · Score: 2
    You will get the extensability of introducing your own namespaces, but you can use straight HTML where it is applicable, which will allow you to use pre-built browsing and editing tools.

    You really don't want to get involved in building browsing and editing tools for an arbitrary schema, its not worth the time.

  30. XML is huge threat to Microsoft by pubjames · · Score: 2, Interesting

    I've not seen this point of view expressed much on Slashdot, so here goes:

    Microsoft have been very clever getting where they are today. One of the principal means they have got there is using the interfaces between different functional elements like keys, to lock customers in, and lock competing technologies out.

    XML is a simple, standard way of formatting diverse information types so that it is easy to exchange data between applications, and easy to write programs for. It is brilliant in it's simplicity, and anyone who has studied it will know that it is 'not just another format', but one of the most important standards ever developed in the history of computing.

    This represents a huge threat to Microsoft as it threatens one of their main strategies. I believe that everyone in the open source world should learn XML and it's associated standards, and use them as far as possible in their programming work. If, for instance, the open source community adopts DocBook, or Sun's forthcoming XML standard for documents, for all open source word processors, I don't think it will be long before there are so many useful document manipulation applications available that there will be a compelling business reason to move from Microsoft Word to an open source alternative.

    Learn XML folks!!!

    (There are probably a few reading this who are thinking - 'but Microsoft says that their office file formats are now XML based'. To you all I can say is that you should learn XML, and then you'll realise that what Microsoft is doing doesn't really have anything to do with what XML is all about).

  31. Re:XML and CVS by Zeinfeld · · Score: 2
    My biggest worry with XML and CVS is someone using a GUI editor that chooses to re-wrap hard line breaks, or change every tag in some (XML) legal, yet CVS noticeable way.

    What you really need is a source code system that can recognize that the input is XML and convert the document to canonical form before applying the diff. Unfortunately you would have to write code, the C14N for XML is, well utterly unsuited for that task.

    Alternatively you could switch to a source code manager that used compression across the different archived versions rather than a simple diff. Unfortunately that probably involves writing the code yourself.

    --
    Looking for an Information Security student project suggestion?
    Try http://dotcrimeManifesto.com/
  32. Editor? by xant · · Score: 2
    The question I keep hitting is how do you create these documents in the first place? The XML "editors" out there are badly inadequate for writing documentation. What you need is something that will let you write with no more effort than a text editor, and then go back and select a bunch of text and ctrl-c and voila, you have a comment, or voila, you have a section title. HTML editors such as Mozilla's have the right idea; unfortunately there's logically no way to write in HTML and convert it to XML.


    Clearly having the document stored as XML is superior because you can convert it to whatever you want, and the tags represent the document's meaning rather than its appearance. But producing the document using raw tags is not friendly; it discourages documenters.


    What editor do you use?

    --
    It's rare that you're presented with a knob whose only two positions are Make History and Flee Your Glorious Destiny.
  33. UML by MemRaven · · Score: 2
    Actually, kinda. We use Visio to create our UML diagrams (so the few people that actually draw them have to have Windows, other than that all engineers use Linux or Solaris), but then we translate the drawing (which is just for pictoral reference) into another XML DTD.


    That one gets fed into a custom repository system which automatically generates all the code we need for using the objects, including javadocs and XML documents, when then go into the rest of the channel for documentation. The repository system also generates multiple types of storage back-ends (Oracle, Postgres, Java Serialization, In-Memory-Only, etc.) so that the engineers never have to worry about data access code, and we can change what type of storage we're using at a customer site.


    So in that respect, we're using Visio or MagicDraw just for the documentation of the UML model, but the "real" model is always in XML and only used by the repository system we've developed.

  34. Different problems by coyote-san · · Score: 3, Informative

    You're dealing with different problems here.

    DocBook, and any decent document XML DTD, gives you the ability to tag your text with some description of what it means. It might be "chapter" or "list," or it might be domain specific like "files," "bugs" and "see also" (for man pages). The presentation details are left to the processing software to handle.

    MS-Word, in contrast, is nothing but a paint tool for words. You can certainly give your styles names that have some domain meaning to you, but it's still ultimately nothing but a set of style instructions.

    For a single document, this isn't a big issue. But if you have a lot of documents and you want to reuse content, it's impossible with the MS-Word approach. With DocBook, in contrast, it's easy to set up your documents so that the same file can be reused in multiple places, but only selected content will be reused.

    IMHO, if your technical writers can't make the shift to meaningful tags, you're better off without them. (The writers, not the tags.) If they can't handle this level of structure, their writing is undoubtably muddled and confused no matter how pretty it looks.

    --
    For every complex problem there is an answer that is clear, simple, and wrong. -- H L Mencken
  35. Re:XML by cduffy · · Score: 2

    How much work is it to write a script (I'd use Python, but whatever) that parses the log files and extracts whatever's interesting to you, and displays that info in your preferred format?

    Really, I'm asking: how much work?

    Because from where I stand (as a programmer who does some sysadminning on the side), it doesn't look that hard.

  36. UML in XML by pi_rules · · Score: 2

    Ever heard of the viso-ish tool called 'Dia'? It's a GTK based application, with ports to Win32. It stores all of it's diagrams in an XML format nativly. It's not as robust as Visio, but it diagrams all my thoughts out rather nicely and I can send them over to all the other developers using Win32 platforms.

    Sounds like a nice system -- and a well organized team. You hiring? :)

  37. How we do it around here: by Hard_Code · · Score: 2
    --

    It's 10 PM. Do you know if you're un-American?
  38. Re:XML by Tet · · Score: 2
    How much work is it to write a script (I'd use Python, but whatever) that parses the log files and extracts whatever's interesting to you, and displays that info in your preferred format?


    More than you'd imagine, because it's not pure XML. It's XML intermixed with other data in different formats. But still not that hard. The point is, though, how much less work would it be if they'd just logged stuff in a sensible format to start with?

    --
    "The invisible and the non-existent look very much alike." -- Delos B. McKown
  39. Re:XML and CVS by coyote-san · · Score: 2

    You don't have to rewrite the entire source control software, just put in a filter. CVS has a number of hooks for this - at a minimum you should run an XML validator to ensure that only valid XML is checked in.

    --
    For every complex problem there is an answer that is clear, simple, and wrong. -- H L Mencken
  40. Re:XML by Hard_Code · · Score: 2

    Ditto for configuration files:

    <a-big-configuration>
    <a-section>
    <a-section-name>
    whoopee
    </a-section-name>
    <a-section-comment>
    here is an irrelevant comment!
    </a-section-comment>
    <a-value>
    <note-about-this-value>
    in case you didn't know, this is a value - watch out!
    </note-about-this-value>
    <a-value-name>
    bloatedness.factor
    </a-value-name>
    <a-value-value>
    <a-value-value-type>
    <a-value-value-type-value>
    integer
    </a-value-value-type-value>
    <a-value-value-type-description>
    an 'integer' is a whole number...ya moron...
    </a-value-value-type-description>
    </a-value-value-type>
    <a-value-value-value>
    1000000000000
    </a-value-value-value>
    </a-value-value>
    </a-value>
    </a-section>
    </a-big-configuration>

    --

    It's 10 PM. Do you know if you're un-American?
  41. The docs infrastructure person pipes up by shepk1 · · Score: 2, Informative

    I didn't realize this thread was already going when I posted, so I'm pasting it in again here:

    This is what we do. It works, and it solves many of the issues associated with traditional documentation "systems".

    1. Define a DTD of the elements you will need in your documents. You can go with a predefined DTD like DOCBOOK, or you can roll your own. Because my goal was to get engineers to write as many documents as possible (thereby making my life easier), I chose to create my own DTD - There's about 60 elements. Special documents (like projects, or resumes, for example) have their own
    DTD (and XSL) in order to keep the main documentation DTD as simple as possible.

    2. Create a general XSL sheet that transforms all
    documents which conform to the DTD into HTML for your internal web-site - all of the presentation
    logic is in this one XSL sheet (although it can use xsl:include if you'd like to break it up by header, table of contents, content, footer, etc).

    3. Set up documentation sub-branch(es) in the source control system. (In the
    code base and QA/infrastructure/whatever else you plan to document and publish). The closer it is to the code, the more likely that engineers will add reviewcomments, fix errors, update it, etc.

    4. Anyone and everyone writing documents does so
    according to DTD and checks them into the designated directory structure in the source control repository. (As far as they are concerned, this is the end of their work -- it just magically appears on the site)

    5. Set up Ant to use one of the Trax processors (I use Xalan2).

    6. Write general purpose ant targets to convert
    documentation with general XSL sheet, build indexes, etc. Write build.xml files that call these tasks and convert/index/etc all the documentation in each sub-branch.

    7. A monkey or chron-job converts the documentation and pushes it to the website.

    Benefits:

    Tables of Contents, Index pages, indexing, image-links, etc. are all generated. There is a much lower chance of links being broken.

    Once you get the XSL right, you don't have to worry about consistency with the look and feel.
    You really can just concentrate on content.

    In my experience, engineers are much more likely
    to use VI/emacs to edit/review a document than Word or Framemaker. The GUI XML editors are getting better...

    Drawbacks:

    Someone has to own the DTD, beat their head against the wonderful syntax of xslt, and be willing to decipher the Ant stack traces when things inexplicably bail.

    It's not yet commonly done (or at least they don't post on may newsgroups), so often you are charging ahead without much feedback.

    Technical writers are difficult to hire. We haven't tried to find another one yet, but I imagine asking people to write in XML will limit our talent pool. Of course... in theory I could make all this work with Framemaker+SGML...

  42. Everything is the only solution by Sixty4Bit · · Score: 2

    I seriously think the Everything http://www.everything2.com/ engine would be a great way to maintain documentation on a project. I know it isn't XML based but I am sure one could easily connect to the database and kick out the needed files and put them into XML. The meat of this gentleman's quesstion was "How do you link your documents?" Currently we link ours with Rational Requisite Pro. Which if anyone took the time to actually use it would be very beneficial. But what better tool for linking than Everything? I can easily add a link by adding brackets around a [link]. If I want to [link] to the [requirements] or a specific requirement [req1.4.2] or a use case [Authenticate User] I just add brackets.

    I am preparing to start a new project. I may have to install [Everything] first to see if it will work. Just have to make a couple of rules like all requirements must have a [Requirements] link so that they can all be found. Or better yet, instead of using Person, Place, Idea or Thing you could use Requirements, Use-Cases, Test Cases etc... Interesting idea. Customize [E2] to be a requirements/documentation management system.

    --
    This is not the sig you are looking for...
  43. Tree Views are my bane by xant · · Score: 2
    There are several good and bad treelike XML editors. Merlot was the best cross-platform one I found. Unfortunately these projects all use the same interface: you must laboriously add each element, click in the right box, type the text, all the while making sure not to break the docbook specification.


    We need something better. We need an interface like kword or abiword or lyx, all three of which offer:

    • a fast, unintrusive text editing interface, and
    • poor-to-mediocre docbook export from its internal format

    but not a single one of which offers docbook/xml import, which is critical if you are writing documentation in XML. XML is designed to be the source, the font from which all formatted, renderable versions (read: pdf, html, rtf, txt, etc.) spring. Hence, it must be the saved version, the one you keep in your source/document control system. The others are just conversions from XML. Yet no editor imports XML! This ought to be the easy part! You just write an XSL stylesheet to convert XML-of-your-choice into your editor's internal format.
    --
    It's rare that you're presented with a knob whose only two positions are Make History and Flee Your Glorious Destiny.
  44. Re:XML by cduffy · · Score: 2

    XML *is* the simplest format, because nobody ever needs to write an XML parser: every major language already has three.

    There are databases optomized for loading and running queries on XML data based only on the included metadata. There are graphical XML editors which allow a structured view of arbitrary data, given a DTD (which is also standardized and has tons of tools capable of processing).

    Writing a custom parser for every single data file one might wish to store because one chose to use a text format that looked easier strikes *me* as stupid in the extreme.

    Btw, I didn't learn this stuff in school -- I learned it the hard way, writing conversion tools for other people's "simple" proprietary formats.