DTD W3C · 1.1 (second edition)

XHTML 1.1

XHTML 1.1, the modular XHTML used by EPUB 2 books and some publishing pipelines.

About

XHTML 1.1 is XHTML 1.0 Strict assembled from modules, with Ruby annotations added. EPUB 2 content documents are XHTML 1.1.

This entry uses the flattened, single-file form of the DTD that W3C publishes.

Good to know

  • Named entities such as   are only known when the DTD is read while parsing, which the browser cannot do for a DOCTYPE that points at w3.org. Use character references ( ) or the five XML entities.
  • The example is by xmlvalid.com.

Files

1 file · 154 KB

Example document

page.html · 513 B · valid against this schema

In CI and from code

The same schema by its name, xhtml-1.1, through the API.

npx @xmlvalid/cli validate "**/*.xml" --schema xhtml-1.1
- uses: xmlvalid/validate-action@v1
  with:
    files: "**/*.xml"
    schema: xhtml-1.1
    api-key: ${{ secrets.XMLVALID_API_KEY }}
curl https://xmlvalid.com/api/v1/validations \
  -H "Authorization: Bearer $XMLVALID_API_KEY" \
  -F document={{ $schema->example ?? 'document.xml' }} -F schema=xhtml-1.1

Free accounts get 100 API validations a month. On Pro, a URL monitor can check a published document against this schema every hour and email you when it breaks. More CI setups