relaxng / jing-trang

Schema validation and conversion based on RELAX NG
http://www.thaiopensource.com/relaxng/
Other
228 stars 69 forks source link

Get the start pattern of PatternSchema #273

Open angelozerr opened 2 years ago

angelozerr commented 2 years ago

This PR provides the capability to get the start pattern when the RelaxNG Schema is loaded.

In my case, I need to get the start pattern to support XML completion based on RelaxNG.

The CombineSchema is updated too to get the 2 Schemas and in this case we can get the first Schema, cast it to PatternSchema to get the start pattern.