FasterXML / FasterXML/woodstox
XSD 1.1 support?
- Dominant language
- Java
- Stars
- 259
- Forks
- 90
- Avg merge
- 16h 52m
- Merged PRs (30d)
- 2
Description
I'm trying to use woodstox with a schema that is conformant to the [XSD v1.1 specification](https://www.w3.org/TR/xmlschema11-1/) (specifically that it contains [conditional type alternatives](https://www.w3.org/TR/xmlschema11-1/#cTypeAlternative) using [xPath 2.0 assertions](https://www.w3.org/TR/xpath20/)) and it would seem that MSV doesn't support this unless there are any construction options that I am unaware of, as I repeatedly get the error `element "xs:alternative" is not allowed here` upon an attempt to construct the `XMLSchemaGrammar` via `XMLSchemaReader::parse` using a `SAXParserFactory` from `com.ctc.wstx.msv.BaseSchemaFactory::getSaxFactory`.
Does woodstox support XSD v1.1 validation? If not, does woodstox support alternative validators other than MSV?
I tried using `xerces-2.12.0` to parse the XSD and construct the validator to inject into woodstox as it does support [conditional type assignment](https://xerces.apache.org/xerces2-j/xml-schema.html#supported-schema-1.1-features), but had issues with resolving it in the classpath via the standard mechanism:
```java
SchemaFactory versionFactory = SchemaFactory.newInstance("http://www.w3.org/XML/XMLSchema/v1.1");
```
As specified here: https://xerces.apache.org/xerces2-j/faq-xs.html#faq-1
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.