This repository is for code samples that appear in the XSpectacles blog.
Each post corresponds to a subfolder under src/
.
- 6 Tips for Embedding JSON in XSpec Tests
- A Tale of Two Text Nodes, Plus Balisage 2024
- Adaptable Code Reuse in XSpec, Part 1: Value Templates
- Adaptable Code Reuse in XSpec, Part 2: XPath Matching
- But the Diffs Look the Same
- Code Reuse at the File Level in XSpec
- Code Reuse in XSpec: How to Use x:like
- Comparing Attributes Selectively in XSpec 3.0
- Content Outside the Selection in XSpec
- Fixing Surprise Spaces in XSpec Actual Result
- How to Test Error Handling in XSpec
- Ignoring Code Comments During XSpec Testing
- Inheritance as a Form of Reuse in XSpec
- Multiple Cases in One XSpec Scenario
- My XML Content in XSpec Causes an Error
- One-or-More Ways to Foil Empty-Sequence Surprises in XSpec
- Saying "Almost Valid" or "Beyond Valid" in XSpec Tests for Schematron
- Saying "Not Yet" in XSpec
- Saying "Whatever" in XSpec: How, Why, When
- Testing a RELAX NG Schema Using XSpec
- Testing a Thin-Wrapper XSLT Template Without Excessive Repetition
- Testing an XPath Function Library with XSpec 3.0
- Testing Boolean-Valued Functions: An XSpec Blooper with Easy Fixes
- Testing Explicit Whitespace in XSpec
- Testing Invisible XML using XSpec
- Testing Preformatted or Codelike Text in XSpec
- Testing Schematron Code Embedded in RELAX NG
- Testing Schematron Messages with XSpec 3.0
- Testing Schematron Patterns in Isolation
- Text Nodes and Locations in XSpec Tests for Schematron
- The Equality Check that's Neither True Nor False
- Ways to Access XSLT Result in XSpec Testing: Dot Versus Result Variable
- XQuery Makeover to Improve Testability with XSpec
- (NEW!) XQuery Update Facility Can Simplify XSpec Test Helper Functions