# XSLT 2.0

Source: https://xmlvalid.com/schemas/xslt-2.0

> XSLT 2.0 stylesheets checked against the W3C schema for XSLT: elements, attributes and where they may appear.

The schema is published with the XSLT 2.0 Recommendation. It catches misplaced instructions, unknown xsl: elements and wrong attributes before a processor such as Saxon is run.
It imports XMLSchema.xsd and xml.xsd, included here.

- Type: XSD
- Version: 2.0
- Namespace: `http://www.w3.org/1999/XSL/Transform`
- Root element: `stylesheet, transform`
- Publisher: W3C (W3C Software and Document License), source: https://www.w3.org/2007/schema-for-xslt20.xsd
- Validate against it: https://xmlvalid.com/validate?schema=xslt-2.0

## Notes

- XPath expressions in select, match and test are checked as strings only, not parsed.
- Stylesheets marked version="1.0" can also be checked; elements new in 2.0 are then still allowed.
- The example is by xmlvalid.com.
