STXT - Semantic Text
Built for humans. Reliable for machines.

Use cases — Publications and editorial content

Editorial systems live in a constant tension between:

STXT makes it possible to treat a publication as a human document first, without losing the ability to validate, transform, and automate.

What we mean by “publications”

In this context, “publication” includes:

Common problems in editorial workflows

In practice, repeated patterns appear:

STXT proposes another path:

Example 1 — Technical article

Article with metadata, sections, and long text.

Article (@com.acme.editorial.article):
	Title: Introduction to STXT
	Slug: introduction-to-stxt
	Authors:
		Author:
			Name: Joan Costa
			Role: Editor
	Published date: 2026-01-10
	Status: Draft
	Tags:
		Tag: stxt
		Tag: formats
		Tag: documentation

	Abstract >>
		STXT is a textual language designed to balance
		human readability and reliability for machines.

	Content >>
		## Why another format?

		Most existing formats force a choice:
		either they are comfortable for humans or they are reliable for machines.

		STXT tries to eliminate this dichotomy.

		## Principles

		- Human First
		- Minimal syntax
		- Optional validation
		- Security by design

Observations from the example

Example 2 — Multi-section publication

Book or long document divided into sections.

Publication (@com.acme.editorial.publication):
	Title: STXT — The book
	ISBN: 978-1-23456-789-0
	Language: es
	Status: In Progress

	Chapters:
		Chapter:
			Number: 1
			Title: Introduction
			Content >>
				This chapter introduces the basic concepts of STXT.

		Chapter:
			Number: 2
			Title: Syntax
			Content >>
				This chapter describes the language syntax
				with practical examples.

		Chapter:
			Number: 3
			Title: Validation
			Content >>
				Templates and Schemas make it possible to add semantic rules.

Typical editorial workflow with STXT

A common workflow can be:

  1. The author writes the STXT document.
  2. It is versioned in Git.
  3. A template validates minimal structure.
  4. It is transformed to HTML, PDF, or other formats.
  5. It is published.

Each step is independent and replaceable.

Validation with @stxt.template

An editorial template ensures consistency without imposing rigidity.

Template (@stxt.template): com.acme.editorial.article
	Description: Standard editorial article
	Structure >>
		Article:
			Title: (1)
			Slug: (1)
			Authors: (1)
				Author: (+)
					Name: (1)
					Role: (?)
			Published date: (?) DATE
			Status: (1) ENUM [Draft, Review, Published]
			Tags: (?)
				Tag: (+)

			Abstract: (?) TEXT
			Content: (1) TEXT

This template:

Content / presentation separation

With STXT:

Examples:

Practical advantages

Editorial recommendations

Summary

STXT is especially suitable for editorial publishing: