AI & XML / LLM test suite / Results / Test cases / Xhtml11StrictPage

Test case description

This test checks whether a model can generate a fully valid XHTML 1.1 page. It requires an XML declaration, correct DOCTYPE, namespace declaration, a head with metadata and a strictly XML-compliant body with typical HTML structures.

Source file

Xhtml11StrictPage.txt

Series

1

Categories

xml, xhtml, structure

Evaluation

LLM judge

Prompt SHA-256

c67905aba7d9bcd68766b232c31757956fa156ba2ba411511b78012cab2d611e

LLM judge: The answer is evaluated with LLM support. A judge model compares the model’s answer with the domain expectation and decides whether its content meets it.

Expected result

DTD Valid XHTML 1.1 document with XML declaration, correct DOCTYPE, head and required body structures.

Expectation in the catalog

No

Correct result in the catalog

Yes

Judge instruction

Check strict XML and XHTML 1.1 conformance, including DOCTYPE and DTD validity.

Must be satisfied

  • The output begins with an XML declaration.

  • The XHTML 1.1 DOCTYPE uses PUBLIC '-//W3C//DTD XHTML 1.1//EN' and the system identifier http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd.

  • The root element html uses the namespace http://www.w3.org/1999/xhtml.

  • head contains title and at least one permitted meta element.

  • body contains h1, several p elements, ul with li, a form with an input element and a table with thead and tbody.

  • All elements and attributes are permitted in XHTML 1.1, correctly nested, lowercase and closed in accordance with XML.

  • The document is valid against the XHTML 1.1 DTD.

Error criteria

  • The XML declaration, correct DOCTYPE or XHTML namespace is missing.

  • HTML5-specific elements or attributes, or ones not permitted by the DTD, are used.

  • Empty elements are not closed in accordance with XML.

  • The required body structures are missing.

Prompt

Erzeuge unter content eine vollständige XHTML 1.1 Datei.

Erforderliche Bestandteile
XML Deklaration
korrekter XHTML 1.1 DOCTYPE
html Element im Namensraum http://www.w3.org/1999/xhtml
head mit title und mindestens einer meta Angabe
body mit
  h1
  mehreren Absätzen
  einer ul Liste
  einem Formular mit mindestens einem input
  einer Tabelle mit thead und tbody

Alle Tags müssen geschlossen sein.
Die Syntax muss strikt XML konform sein.
Gib ausschließlich das XHTML Dokument zurück.

# content

709 Runs 1390 evaluated 55.9 % Score 44.8 % exactly correct

Help on evaluation, score and exact correctness

Score is a graded quality measure: correct = 100 %, mostly_correct = 80 %, partial = 50 %, wrong/not_answered = 0 %.

Exactly correct is stricter: only correct-labeled runs count. Mostly correct increases score but does not count as exactly correct.

Evaluated counts all runs with a substantive judgment. LLM-judge errors also count as evaluated, with score 0 %.

Model Category Access route

x

back to top