General remarks

Figure 648. Why XML based publishing? Slide presentation
Why XML based publishing?

Figure 649. XML features Slide presentation
  • Extensibility

    • Define your grammar

    • XML core extensions (linking,...)

  • Interoperability

    • Cross-platform software support

  • Open standard, no vendor lock-in

  • Tons of (processing) frameworks / APIs

Figure 650. Editors, compositors, designers ... Slide presentation

Quote from How and Why Are Companies Using XML?.

It's Not about You! It is about publishers.

  • they think it's their content

  • they want

    • to use it, re-use it, slice it, and dice it

    • to own it and control it

    • to have access to it and be able to move it

Figure 651. Promises in publishing Slide presentation

XML for publishing ...

  • saves time and money

  • is platform independent

  • avoids vendor lock-in

  • can be validated for QA

  • allows for creating different target formats

Figure 652. Publishing reality Slide presentation
  • Refrain from fancy catalogs

  • Stick to simple layouts

    • Technical documentation

    • Law publications

Single source publishing aims at creating different output formats from a given document source:

Figure 653. Single source publishing Slide presentation
Single source publishing

Conceptionally each format implements a view to our source in question. Separating a document's structure from its derived (visual) presentation greatly facilitates this task. From an abstract perspective we may conceive a document having:

Figure 654. Separating Structure, content and format Slide presentation
Separating Structure, content and format

Figure 655. Separating concerns Slide presentation

Words, images, audio / video


Chapters / sections, tables, lists


Physical formatting (boldface, text size/color, ...)

Figure 656. Content Slide presentation

Figure 657. Hierarchical structure Slide presentation
Hierarchical structure

Figure 658. Hierarchical structure, XML source Slide presentation
Hierarchical structure, XML source

Figure 659. Presentation Slide presentation

We shed some light on a document's structure and presentation:

Figure 660. Example 1: HTML 5, pure structure Slide presentation
Structure Presentation
<html xmlns="">
        <p>Some content</p>
Example 1: HTML 5, pure structure

Figure 661. Example 2: TeX / LaTeX Slide presentation
Structure / content Presentation (PDF)

  A nice LaTeX formula:

    e^x = \sum_{i=0}^{\infty}{x^i \over i!}

Example 2: TeX / LaTeX

Separating a document's structure from its presentation(s) provides a number of benefits:

Figure 662. Separating structure and presentation(s) Slide presentation
Pros Cons
  • Separation of editing / formatting concerns

  • Focus on content rather than formatting

  • Oblivious to format evolution (e.g. Epub)

  • Well suited for SCM, diff-ing

  • No true WYSIWYG

  • Fixed formatting rules, no flexibility

  • Less layout control, especially in print

Figure 663. Sample technical document Slide presentation
Sample technical document

Figure 664. Observations Slide presentation
  • Well structured documents

  • Focus on content rather than style

  • Clearly defined semantics

  • Automated generation supporting multiple output channels

Figure 665. Pros and cons of TeX / LaTeX Slide presentation
Pros Cons
  • Excellent typography

  • Large community

  • Mature engine

  • Excellent platform support

  • Multiple problem domain support

  • Extensible vocabulary

  • Focus on print

  • Bad office authoring tool support

    • Steep learning curve

    • Inverse editing

    • Cryptic error messages

  • Bloated vocabulary

Figure 666. Tools of the trade Slide presentation
XMLMind Editor
  • Strictly validating, near WYSIWYG, DocBook / DITA / MathML / XHTML editor.

  • Plugin architecture

  • Cross-platform Java based.

OxygenXML Editor
  • Full-fledged XML IDE.

  • Strictly validating, near WYSIWYG, DocBook / DITA / MathML / XHTML ... editor.

  • Eclipse based