<why-and-what/>
Why & What is XGR XML Lab
The tool, the philosophy, and the AI advantage
Why β Structured Authoring & AI
Treating your content as code β known as structured authoring β means your text, data, and metadata live in well-defined XML elements rather than in formatted word-processor documents. This separation of content from presentation unlocks a powerful combination: a dedicated XML IDE paired with an AI agent working directly on the source files.
Because every piece of content is addressable by XPath and transformable by XSLT, an AI agent operating alongside XGR XML Lab can generate or modify any component of a document automatically:
- <SVG graphics/>Instruct an AI agent to produce SVG markup inserted directly into your XML source as a native element. The SVG renders in PDF or HTML output without any manual drawing step.
- <Equations/>An agent generates mathematical expressions in plain LaTeX notation and places them inside an equation/expr element. The Book2 pipeline typesets them as high-quality PDF output β no manual conversion required.
- <Text & summaries/>Sections, abstracts, or summaries can be generated by an AI agent that reads the surrounding XML context and writes well-formed content back into the document structure.
- <Any output format/>Because the output format is entirely determined by the XSL stylesheet, an AI agent can author or tune the stylesheet itself β producing customised HTML, PDF layouts, EPUB structures, or any other target format.
The result: a single XML source file becomes a living document that an AI can read, extend, and publish β without touching a word processor.
What β The Application
XGR XML Lab is a Windows desktop application for XML editing, XSLT transformation, and document publishing. It combines a full-featured XML editor with three dedicated transformation engines:
Multi-purpose pipeline
XSLT 1.0 and 2.0 via Saxon-HE. Produces HTML, XML, or PDF (when FOP is selected in the tool menu).
Book1 pipeline
XSL-FO β PDF via Apache FOP. Designed for structured books, reports, and CV documents.
Book2 pipeline
Same as Book1 plus a built-in LaTeX math engine. Renders equations as typeset SVG output in the PDF.
The editor supports XPath evaluation, XSD schema validation, XInclude for multi-file projects, spell checking, and syntax highlighting. Output formats include PDF, HTML, Excel, and EPUB3. Supported standards: XSLT 1.0/2.0, XPath 1.0/2.0, XSL-FO, XSD, XInclude, DocBook, and LaTeX/AMS-Math notation.
Processor versions: Saxon-HE 9.9 Β· Apache FOP 2.9 Β· Windows 10/11.