PureXML/Tests
Mihaela Mihaljevic 4df9eda52e feat(schema): compile import-chained documents as a union (#161)
Schema documents that form an import chain are now compiled as a single
union (Document.init(composing:)) rather than as separately compiled
documents merged after the fact. Merging froze each document's content
models with only the substitution-group members visible in its own import
closure, so a substitution member declared in an importing document never
reached the head's content model in the imported document.

This clears XSTS ctZ007, a cross-document substitution group, taking
valid-instances-rejected (#146) from 4 to 3 with no other bucket moving
(now 1/262/3/147). The union pools each document's container closure into
one context, deduplicating a document supplied directly and also reached
through another's import by target namespace and component-name set.

The XSTS runner uses the union only for import chains, detected by matching
import/include/redefine schemaLocation basenames against the listed
documents; independent roots stay on the lenient per-document merge, which a
union would wrongly trip with cross-document checks.

The remaining three valid-instance rejections are the Ethiopic-digit \d
cases (reS17, reS38, reZ004v), which contradict \d = \p{Nd}.
2026-06-16 23:16:26 +02:00
..
Fixtures feat(validation,schema): composable validation framework and cross-document composition 2026-06-16 09:57:43 +02:00
AdversarialCriticTests.swift fix(schema): enforce element order and import constraints 2026-06-15 23:29:47 +02:00
C14NSpecExampleTests.swift feat(canonical): C14N 1.0 spec-example vectors, three conformance fixes 2026-06-10 08:51:47 +02:00
CanonicalC14N11Tests.swift
CanonicalPrefixRewriteTests.swift
CanonicalSelectionTests.swift
CanonicalSubsetTests.swift
CanonicalTests.swift
CatalogBaseURITests.swift
CatalogGroupPreferTests.swift
CatalogSGMLTests.swift
CatalogSuffixPreferTests.swift
CatalogTests.swift
ConformanceCanonicalModesTests.swift
ConformanceCatalogTests.swift
ConformanceCorpusTests.swift
ConformanceDTDTests.swift
ConformanceEmittingTests.swift
ConformanceHTMLDepthTests.swift
ConformanceRegexTests.swift fix(regex): use the XSD definition of \w and \W 2026-06-13 18:31:07 +02:00
ConformanceSchematronTests.swift
ConformanceXIncludeTests.swift
ConformanceXPathAxisTests.swift
ContentMatcherDifferentialTests.swift feat(schema): full NameAndTypeOK type derivation in element restriction 2026-06-14 13:47:18 +02:00
ContentModelDeterminismTests.swift feat(schema): enforce Unique Particle Attribution (cos-nonambig) 2026-06-14 09:35:33 +02:00
ContentNFAStateBudgetTests.swift feat(schema): full NameAndTypeOK type derivation in element restriction 2026-06-14 13:47:18 +02:00
DTDAttributeTests.swift
DTDConditionalNotationTests.swift
DTDDefaultingTests.swift
DTDEntityDeclaredTests.swift
DTDIdentifierTests.swift
DTDLocatedContentTests.swift
DTDParameterEntityDepthTests.swift
DTDStandaloneTests.swift
DTDSubsetStrictnessTests.swift
DTDTests.swift
DTDValidationTests.swift
DTDValidityConstraintTests.swift refactor(validation): located structured validity findings 2026-06-10 10:45:17 +02:00
EncodingMismatchTests.swift
EncodingTests.swift
EntityBaseURITests.swift
EntityResolverTests.swift
EntitySplicingTests.swift
ErrataValidityTests.swift
EXSLTTests.swift
HTMLAdoptionTests.swift
HTMLDocumentTests.swift
HTMLForeignContentTests.swift
HTMLFramesetTests.swift
HTMLSelectTests.swift
HTMLTests.swift feat(xslt): output methods in depth 2026-06-10 13:10:50 +02:00
HTMLTokenizerTests.swift
HTMLValidationTests.swift
LineEndingTests.swift
LintTests.swift
ModelTests.swift
NamespaceConstraintTests.swift
NamespaceTests.swift
OutputEncodingTests.swift
ParityEdgeTests.swift
ParsingTests.swift perf(parsing): byte-backed Reader and bulk content runs 2026-06-10 18:48:57 +02:00
PatternTests.swift
PullPushDifferentialTests.swift
PushParserTests.swift
QuickFixTests.swift
RecoveringReaderTests.swift
RegexCategoryTests.swift fix(schema): advance XSTS valid-instances-rejected to 4 (#146) 2026-06-16 22:22:05 +02:00
RegexTests.swift fix(schema): advance XSTS valid-instances-rejected to 4 (#146) 2026-06-16 22:22:05 +02:00
RelaxNGCombineTests.swift feat(relaxng): schema-correctness validation, spec suite complete 2026-06-10 11:38:45 +02:00
RelaxNGCompactAnnotationTests.swift
RelaxNGCompactConcatTests.swift
RelaxNGCompactFollowAnnotationTests.swift
RelaxNGCompactParamTests.swift
RelaxNGCompactTests.swift
RelaxNGDataParamTests.swift
RelaxNGDatatypeLibraryTests.swift feat(relaxng): schema-correctness validation, spec suite complete 2026-06-10 11:38:45 +02:00
RelaxNGLocatedErrorTests.swift
RelaxNGNameClassTests.swift
RelaxNGQNameTests.swift feat(relaxng): QName values with dual-context resolution, instance level clean 2026-06-10 10:57:14 +02:00
RelaxNGSchemaCorrectnessTests.swift feat(relaxng): schema-correctness validation, spec suite complete 2026-06-10 11:38:45 +02:00
RelaxNGSpecSuiteTests.swift feat(relaxng): schema-correctness validation, spec suite complete 2026-06-10 11:38:45 +02:00
RelaxNGStreamingTests.swift feat(validation,schema): composable validation framework and cross-document composition 2026-06-16 09:57:43 +02:00
RelaxNGTests.swift
RelaxNGValueSpaceTests.swift
SaveOptionsTests.swift
SAXTests.swift
ScalarLexingTests.swift feat(parsing): scalar-level lexing, xmlconf archive fully conformant 2026-06-10 08:40:26 +02:00
SchemaAllGroupPlacementTests.swift fix(schema): reject an all-group referenced inside a compositor (cos-all-limited) 2026-06-15 12:38:30 +02:00
SchemaAttributeDefaultUseTests.swift feat(schema): attribute default requires use=optional (src-attribute.2) 2026-06-15 13:44:21 +02:00
SchemaAttributeRefTests.swift fix(schema): resolve <xs:attribute ref> to global attribute declarations 2026-06-13 19:30:11 +02:00
SchemaAttributeRestrictionTests.swift fix(schema): inherit and prohibit attributes under complexContent restriction 2026-06-15 18:52:23 +02:00
SchemaAttributeUniquenessTests.swift fix(schema): enforce attribute-use uniqueness and the single-ID rule 2026-06-15 10:29:40 +02:00
SchemaCircularDerivationTests.swift fix(schema): reject circular model-group, attribute-group, and substitution-group references 2026-06-15 01:50:35 +02:00
SchemaConformanceTests.swift
SchemaContentOrderTests.swift feat(schema): enforce simpleContent derivation content order 2026-06-14 14:05:49 +02:00
SchemaDerivationControlTests.swift feat(schema): validate final/block derivation-control value space 2026-06-14 14:19:10 +02:00
SchemaDifferentialHarness.swift feat(validation,schema): composable validation framework and cross-document composition 2026-06-16 09:57:43 +02:00
SchemaDifferentialTests.swift feat(validation,schema): composable validation framework and cross-document composition 2026-06-16 09:57:43 +02:00
SchemaDurationFacetTests.swift style(schema): satisfy swiftlint on the XSTS conformance additions 2026-06-13 18:04:25 +02:00
SchemaElementBlockTests.swift fix(schema): enforce element-level block against xsi:type substitution 2026-06-13 18:04:25 +02:00
SchemaElementRefApplicabilityTests.swift feat(schema): element ref excludes declaration-only attributes and inline type (src-element.2.2) 2026-06-15 14:29:13 +02:00
SchemaExtensionAllGroupTests.swift feat(schema): reject an all group extending a base with content (cos-all-limited.1.2) 2026-06-15 15:31:01 +02:00
SchemaFacetApplicabilityTests.swift feat(schema): enforce facet applicability to simple-type variety 2026-06-14 11:36:21 +02:00
SchemaFacetDefinitionTests.swift fix(schema): implement facet applicability and validation constraints 2026-06-16 00:02:04 +02:00
SchemaFuzzTests.swift test(schema): generative robustness fuzz harness for the schema engine and parser 2026-06-15 00:10:14 +02:00
SchemaIDAttributeTests.swift feat(schema): validate the id attribute (xs:ID) at compile time 2026-06-13 22:29:29 +02:00
SchemaIdentityXPathTests.swift feat(schema): validate identity-constraint selector/field XPath subset 2026-06-14 10:30:06 +02:00
SchemaIDIDREFTests.swift fix(schema): enforce document-scoped xs:ID uniqueness and xs:IDREF resolution 2026-06-13 19:17:34 +02:00
SchemaIDValueConstraintTests.swift fix(schema): an ID-derived attribute or element may not have a value constraint 2026-06-15 11:41:26 +02:00
SchemaIncludeTests.swift feat(validation,schema): composable validation framework and cross-document composition 2026-06-16 09:57:43 +02:00
SchemaListFacetTests.swift fix(schema): enforce document-scoped xs:ID uniqueness and xs:IDREF resolution 2026-06-13 19:17:34 +02:00
SchemaLocatedDiagnosticsTests.swift feat(schema): locate compile diagnostics with validation coding paths (#169) 2026-06-16 10:26:11 +02:00
SchemaMixedEmptyTests.swift fix(schema): allow character data in a mixed type with no content model 2026-06-13 19:37:24 +02:00
SchemaMultiDocumentTests.swift feat(validation,schema): composable validation framework and cross-document composition 2026-06-16 09:57:43 +02:00
SchemaNameUniquenessTests.swift fix(schema): validate duplicate names across separate files with identical content 2026-06-15 22:57:00 +02:00
SchemaNestedDefinitionTests.swift feat(schema): a nested simpleType or attributeGroup may not be named (localSimpleType) 2026-06-15 15:41:48 +02:00
SchemaNotationValidityTests.swift fix(schema): validate notation declarations and enumeration restrictions 2026-06-15 22:27:04 +02:00
SchemaPatternFacetTests.swift feat(schema): validate pattern facet regular expressions at compile time 2026-06-13 23:52:11 +02:00
SchemaQNameLengthTests.swift fix(schema): treat QName length facets as non-constraining 2026-06-13 18:04:25 +02:00
SchemaReferenceTests.swift fix(schema): enforce targetNamespace matching on local references 2026-06-15 20:08:39 +02:00
SchemaSimpleTypeFinalTests.swift feat(schema): enforce simpleType final for list and union derivation (st-props-correct) 2026-06-15 15:12:11 +02:00
SchemaSimpleTypeRestrictionTests.swift fix(schema): enforce variety constraints on list itemType and union memberTypes 2026-06-15 20:01:51 +02:00
SchemaSimpleTypeVarietyTests.swift fix(schema): enforce variety constraints on list itemType and union memberTypes 2026-06-15 20:01:51 +02:00
SchemaStringWhitespaceTests.swift fix(schema): preserve significant whitespace in simple-content values 2026-06-13 20:08:08 +02:00
SchemaStructureDerivationTests.swift fix(schema): validate xml:lang and xml:space on documentation elements 2026-06-15 22:36:51 +02:00
SchemaStructureTests.swift chore(release): prepare 0.2.0 2026-06-16 01:27:10 +02:00
SchemaSubstitutionBlockTests.swift fix(schema): enforce block="substitution" on substitution-group heads 2026-06-13 18:31:07 +02:00
SchemaSubstitutionTypeTests.swift feat(validation,schema): composable validation framework and cross-document composition 2026-06-16 09:57:43 +02:00
SchemaTopLevelAttributeGroupTests.swift fix(schema): reject local-use attributes on top-level group and attributeGroup definitions 2026-06-15 19:03:38 +02:00
SchemaTopLevelAttributeTests.swift feat(schema): top-level attribute may not have use/form/ref (topLevelAttribute) 2026-06-15 14:18:25 +02:00
SchemaTopLevelElementTests.swift feat(schema): top-level element may not have ref/form/minOccurs/maxOccurs (topLevelElement) 2026-06-15 14:39:54 +02:00
SchemaTopLevelGroupTests.swift fix(schema): reject local-use attributes on top-level group and attributeGroup definitions 2026-06-15 19:03:38 +02:00
SchematronAbstractPatternTests.swift
SchematronAbstractTests.swift
SchematronDiagnosticTests.swift
SchematronDynamicTests.swift
SchematronFunctionTests.swift
SchematronLetTests.swift
SchematronScopedLetTests.swift
SchematronTests.swift
SchemaTypeExclusivityTests.swift fix(schema): a type attribute and an inline anonymous type are mutually exclusive 2026-06-15 11:02:48 +02:00
SchemaUnionFacetTests.swift style(schema): satisfy swiftlint on the XSTS conformance additions 2026-06-13 18:04:25 +02:00
SchemaUserTypeValueConstraintTests.swift feat(schema): validate value constraints against user types; fix inline restriction base 2026-06-15 14:06:26 +02:00
SchemaValueConstraintExclusionTests.swift feat(schema): reject both default and fixed on one declaration (src-element.1/src-attribute.1) 2026-06-15 13:25:14 +02:00
SchemaValueConstraintTests.swift fix(schema): honor empty-element default/fixed values and replace enumeration on restriction 2026-06-13 18:04:25 +02:00
SchemaValueConstraintValidityTests.swift feat(schema): validate built-in-typed default/fixed values 2026-06-14 11:55:55 +02:00
SchemaWhiteSpaceRestrictionTests.swift feat(schema): whiteSpace facet may only strengthen the base (Part 2 4.3.6) 2026-06-15 14:54:47 +02:00
SchemaWildcardNamespaceTests.swift feat(schema): validate wildcard namespace constraint value space 2026-06-14 11:00:45 +02:00
SchemaXSTSDiagnosticTests.swift fix(schema): advance XSTS valid-instances-rejected to 4 (#146) 2026-06-16 22:22:05 +02:00
SchemaXSTSRegressionTests.swift fix(schema): advance XSTS valid-instances-rejected to 4 (#146) 2026-06-16 22:22:05 +02:00
SerializationEscapeTests.swift
SerializationOptionsTests.swift
SerializerTests.swift
SourceSpanTests.swift
StreamingDTDValidationTests.swift
StreamingXSDTests.swift
StrictRecoveringDifferentialTests.swift
StrictSubsetProfileTests.swift feat(parsing): strict internal-subset profile, xmltest 185 of 186 2026-06-10 08:29:54 +02:00
TextReaderBreadthTests.swift
TextReaderTests.swift
TreeNodeEditingTests.swift
TreeNodeIdentityTests.swift
TreeNodeTests.swift
ValidationConfigurationTests.swift feat(validation,schema): composable validation framework and cross-document composition 2026-06-16 09:57:43 +02:00
ValidationFieldCoverageTests.swift feat(validation,schema): composable validation framework and cross-document composition 2026-06-16 09:57:43 +02:00
ValidationFrameworkTests.swift feat(validation,schema): composable validation framework and cross-document composition 2026-06-16 09:57:43 +02:00
ValidationRuleDTDTests.swift feat(validation,schema): composable validation framework and cross-document composition 2026-06-16 09:57:43 +02:00
ValidationRuleMiscTests.swift feat(validation,schema): composable validation framework and cross-document composition 2026-06-16 09:57:43 +02:00
ValidationRuleRegistryTests.swift feat(validation,schema): composable validation framework and cross-document composition 2026-06-16 09:57:43 +02:00
ValidationRuleStructuralTests.swift feat(validation,schema): composable validation framework and cross-document composition 2026-06-16 09:57:43 +02:00
ValidationRuleTestSupport.swift feat(validation,schema): composable validation framework and cross-document composition 2026-06-16 09:57:43 +02:00
ValidationRuleXSDTests.swift feat(validation,schema): composable validation framework and cross-document composition 2026-06-16 09:57:43 +02:00
ValidationTests.swift
ValidationWarningsTests.swift feat(validation,schema): composable validation framework and cross-document composition 2026-06-16 09:57:43 +02:00
W3CEduniSuiteTests.swift feat(parsing): scalar-level lexing, xmlconf archive fully conformant 2026-06-10 08:40:26 +02:00
W3CIBMSuiteTests.swift feat(parsing): scalar-level lexing, xmlconf archive fully conformant 2026-06-10 08:40:26 +02:00
W3CJapaneseSuiteTests.swift
W3COasisSuiteTests.swift
W3CSunSuiteTests.swift
W3CXMLSuiteTests.swift feat(parsing): scalar-level lexing, xmlconf archive fully conformant 2026-06-10 08:40:26 +02:00
WriterTests.swift
XalanConfSuiteTests.swift feat(xslt): top-level stylesheet parameters 2026-06-10 17:35:11 +02:00
XIncludeNegotiationTests.swift
XIncludeTests.swift
XMLCharacterTests.swift
XMLDeclarationTests.swift
XPathAxisTests.swift
XPathContextTests.swift
XPathExpressionTests.swift
XPathFunctionTests.swift
XPathNamespaceTests.swift
XPathTests.swift
XPointerRangeTests.swift
XPointerTests.swift
XSDCategoryTests.swift feat(schema): full NameAndTypeOK type derivation in element restriction 2026-06-14 13:47:18 +02:00
XSDCompletionTests2.swift
XSDComplexTypeTests.swift feat(schema): full NameAndTypeOK type derivation in element restriction 2026-06-14 13:47:18 +02:00
XSDCompositionTests.swift
XSDDatatypeTests.swift fix(schema): advance XSTS valid-instances-rejected to 4 (#146) 2026-06-16 22:22:05 +02:00
XSDDerivationControlTests.swift
XSDIdentityTests.swift feat(validation,schema): composable validation framework and cross-document composition 2026-06-16 09:57:43 +02:00
XSDImportTests.swift
XSDLocatedContentTests.swift feat(schema): full NameAndTypeOK type derivation in element restriction 2026-06-14 13:47:18 +02:00
XSDNamespaceTests.swift
XSDParticleRestrictionTests.swift feat(schema): enforce particle element type restriction and bypass prohibited attributes 2026-06-15 18:10:21 +02:00
XSDRestrictionContentFreeOrderTests.swift fix(schema): implement MapAndSum (sequence restricting a choice) in particle restriction 2026-06-14 23:46:37 +02:00
XSDSchemaTests.swift
XSDSchemaValidationTests.swift feat(schema): locate compile diagnostics with validation coding paths (#169) 2026-06-16 10:26:11 +02:00
XSDTypeResolutionTests.swift
XSDValueConstraintTests.swift
XSDWildcardTests.swift
XSLTApplyImportsTests.swift
XSLTAttributeSetTests.swift
XSLTCDATASectionTests.swift
XSLTCompositionTests.swift fix(xslt): composition cycles terminate; id() gains a per-document index 2026-06-10 18:07:02 +02:00
XSLTCreatedNamesTests.swift feat(xslt): literal result element namespace copying 2026-06-10 12:55:48 +02:00
XSLTDecimalFormatTests.swift fix(xslt): no fatal traps on extreme format-number and xsl:number values 2026-06-10 15:35:36 +02:00
XSLTDoctypeOutputTests.swift
XSLTDocumentFunctionTests.swift
XSLTFallbackTests.swift
XSLTFunctionTests.swift
XSLTHTMLOutputTests.swift
XSLTKeyNodeSetTests.swift
XSLTMatchCacheTests.swift
XSLTMessageTests.swift
XSLTNamespaceAliasTests.swift feat(xslt): literal result element namespace copying 2026-06-10 12:55:48 +02:00
XSLTNumberingTests.swift fix(xslt): no fatal traps on extreme format-number and xsl:number values 2026-06-10 15:35:36 +02:00
XSLTOutputMethodTests.swift feat(xslt): global variable scope and precedence, NCName:* name tests 2026-06-10 16:38:03 +02:00
XSLTParityTests.swift feat(xslt): output methods in depth 2026-06-10 13:10:50 +02:00
XSLTParserTests.swift feat(xslt): output methods in depth 2026-06-10 13:10:50 +02:00
XSLTResultFragmentTests.swift
XSLTSortCaseOrderTests.swift
XSLTTests.swift feat(xslt): output methods in depth 2026-06-10 13:10:50 +02:00
XSLTWhitespaceTests.swift
XSTSSuiteTests.swift feat(schema): compile import-chained documents as a union (#161) 2026-06-16 23:16:26 +02:00