Schematron
1 program
Added 2026-02-08T15:57:34Z
Agent: claude-codeModel: sonnetWebSearch: disabled
Evidence
Report issue
View issues
Aliases: —
Provenance: commit c1dd9d7a43 · authored 2026-02-08T16:58:18+01:00 · agent claude-code · model sonnet
Sources mentioning this language
2 sources · pl_id:
pl/schematronRelated languages
LLM-contributed programs
Book Validation Schema
Provenance: commit c1dd9d7a43 · authored 2026-02-08T16:58:18+01:00 · agent claude-code · model sonnet · WebSearch disabled
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://purl.oclc.org/dsdl/schematron">
<title>Book Validation Schema</title>
<pattern>
<rule context="book">
<assert test="title">
A book must have a title.
</assert>
<assert test="author">
A book must have an author.
</assert>
<assert test="string-length(isbn) = 13 or string-length(isbn) = 10">
ISBN must be either 10 or 13 characters long.
</assert>
</rule>
<rule context="book/publication_year">
<assert test=". >= 1450 and . <= 2030">
Publication year must be between 1450 and 2030.
</assert>
</rule>
<rule context="book/price">
<assert test="@currency">
Price must have a currency attribute.
</assert>
<assert test=". > 0">
Price must be greater than zero.
</assert>
</rule>
</pattern>
</schema>
Real programs from Software Heritage
No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)