[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Schema fragments form style sheets?
This is closely related to what Saxon-SA does internally
when processing a schema-aware stylesheet - it analyzes the paths that are
present in each template rule and checks that they are consistent with
structures defined in the schema. Actually generating a schema that the
paths are consistent with would not be too different.
The
path analysis that Saxon does to support document projection (which is then used
when loading documents, to filter out the parts of the document that are
reachable) is also very similar, though it only works well for XQuery, because
of the difficulty of doing static matching of apply-templates calls. If you want
to try grovelling in the internals of the product, you could certainly use the
output of this path analysis as the basis for a schema generator. However, I'm
not sure why you would want to - I would think that generating a schema from the
instance document is usually more reliable.
Michael Kay
http://www.saxonica.com/
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] |
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|