View Single Post
  #1 (permalink)  
Old October 11th, 2012, 04:38 AM
WilliamYou WilliamYou is offline
Authorized User
Points: 141, Level: 2
Points: 141, Level: 2 Points: 141, Level: 2 Points: 141, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2012
Posts: 35
Thanks: 18
Thanked 0 Times in 0 Posts
Default Reading a schema's facets using Java

Hello.

We have various schema definitions that contain various facets such as xs:annotations, xs:restrictions. I would like to be able to load one of these files and extract this information so I could use an annotation's content as a tooltip or populate a combo box list with the enumerations from a restriction for example.

But to be honest I'm not to sure where to start? I guess it could be done using XPath but I suspect that isn't the correct approach. My processing engine of choice is Saxon 9, so does anyone have a link they could share or some pointers to documentation where I can get a head start.

Thank you.
--
William