Key takeaways
- XML-first means the structured XML file, not the layout file, is the master version of the content.
- One source feeds print, EPUB, HTML, platforms and archives, so corrections are made once.
- Choose a schema that fits your content: JATS for journals, BITS for books, DocBook or DITA for technical and modular content.
- Adoption works best in steps, starting with new titles or a single series.
Layout-first versus XML-first
In a traditional layout-first workflow, the manuscript goes into InDesign or a similar tool, the print book is produced, and digital formats are created afterwards from the layout file. The layout file becomes the de facto master, but it mixes content with presentation. Every later format has to unpick that mix. Structured content is what makes publishing production automation practical at scale.
In an XML-first workflow, the edited manuscript is converted to XML that describes what each piece of content is: a chapter title, a learning objective, a worked example, a figure with its caption and alt text. The XML is validated against a schema and becomes the master. Print layout, EPUB, HTML and platform feeds are all generated from it. Our guide to cross-platform publishing formats compares the outputs a single source can feed.
Benefits
- Correct once, publish everywhere: a correction made in the XML appears in every output.
- Consistency: structure enforces rules; a figure always has a caption and an ID.
- Reuse: chapters, exercises and glossary entries can be reused in new products.
- Accessibility: structure, alt text and language tags are part of the source.
- Longevity: XML is an open, durable format for archives and future platforms.
- Discovery: rich metadata and full text feed hosting platforms and indexing services.
Trade-offs
XML-first is not free. It needs a schema and conversion rules, people who understand both content and markup, and composition tools that can work from XML, such as InDesign with XML import, an XSL-FO engine, a LaTeX pipeline or a specialised composition system. Highly designed pages with many exceptions can be harder to automate. For those, a hybrid approach often works: XML as the master, with designed layouts built from it and manual refinement where needed.
Choosing a schema
| Schema | Typical use |
|---|---|
| JATS | Journal articles (NISO standard), used by many hosting platforms and archives |
| BITS | Books, built on the same model as JATS |
| DocBook | Books and technical documentation |
| DITA | Modular, topic-based technical and learning content |
| Custom schema | Publisher-specific structures, often for K-12 or reference content |
Choose the simplest schema that captures what you need. A custom schema can fit your content precisely but needs more maintenance; a standard one is supported by more tools and partners.
How the workflow runs
- Copyedit the manuscript in Word with consistent styles.
- Convert styled Word to XML using conversion rules, and validate against the schema.
- Enrich the XML with IDs, links, metadata, alt text and MathML.
- Compose print pages from the XML using templates, then refine the layout where needed.
- Proof and correct in the XML, regenerating outputs after each round, or apply corrections in both layout and XML under strict control.
- Generate EPUB, HTML and platform feeds from the same XML.
- Archive the XML, assets and transformation rules.
Handling corrections in an XML-first workflow
Corrections are where XML-first workflows succeed or fail. If corrections are made only in the layout file, the XML and the print book drift apart, and the main benefit is lost. There are two sound approaches:
- Correct in the XML and regenerate: every correction is applied to the XML and the layout is regenerated or updated. This keeps one master but needs composition that can absorb changes without heavy manual rework.
- Correct in both, under control: corrections are applied in the layout and the XML in the same step, with a check that both match. This suits designed books with manual layout refinements.
Either way, the change log should record which source each correction was applied to, and the final XML should be checked against the approved pages before archiving.
What editors need to know
XML-first does not require editors to write XML. Most workflows let editors work in Word with a defined set of styles, which conversion rules turn into XML. What editors do need is discipline: applying the right style to every element, not formatting by hand, and flagging unusual content so the conversion can handle it. A short style guide with examples, and feedback from the first few conversions, usually establishes good habits quickly.
Quality checks specific to XML
- Validation against the schema for every file.
- Business rules beyond the schema, such as every figure having alt text or every reference having a year.
- Link and ID checks for cross-references, footnotes and citations.
- Comparison between XML content and approved print pages.
- Spot checks of generated EPUB and HTML on real devices.
Starting the move to XML-first
- Pick a series or content type that is reused often or needs several outputs.
- Define the structure with editors before writing a schema.
- Run a pilot title end to end, including corrections and digital output.
- Document conversion and composition rules, and train editors to style manuscripts consistently.
- Expand to more titles once the pilot is stable.
How M.S. Corporations helps
We convert content to JATS, BITS, DocBook, DITA and custom schemas, compose print from XML and generate EPUB and HTML from the same source. See our conversion services, typesetting and composition and publishing automation pages, or discuss your project.
Related reading: how eLearning content is developed and delivered to an LMS.