Powerful patterns with XSLT 3.0 hidden improvements
summary
XSLT 3.0 extends pattern matching with predicate patterns that start with . and can match atomic items like maps (example: .(key(42))), processors evaluate patterns right to left for speed and now ignore runtime errors inside patterns, avoiding crashes on missing keys. Patterns accept descendant/self/namespace axes and top‑level operators like except and intersect, allow variable references and parentheses for subexpressions, and apply‑templates can take any sequence. Beware disjunctive patterns that force full‑tree searches and hurt performance.
AI-written summary · about
chapters (10)
- 0:00Introduction to patterns
- 3:06Defining XSLT patterns
- 5:19New features in XSLT 3.0
- 7:01Expanded pattern syntax
- 9:13Practical implementation
- 12:28Pattern node nuances
- 16:57Common pattern pitfalls
- 20:07Advanced pattern techniques
- 22:17The power of parentheses
- 26:21Advanced use cases and Q&A
related talks
39mPattern Matching: Small Enhancement or Major Feature?
52mPattern Matching: Small Enhancement or Major Feature?
54mPattern Matching in Java: Past, Present, Future
50mPattern Matching in Java Deep Dive
29mThe Art of Java Language Pattern Matching
30mAdvanced parsing of structured data using Python's new match statement
46mThe Art of Java Type Patterns
29mMy Little Parser: Tooling is Magic
