[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: How to handle dynamic XPath
Michael Kay wrote:
You haven't given a great deal of detail about the requirements
However, on the surface, I think my preferred approach here would be to write a (meta)stylesheet that takes the schema as input and generates an XSLT stylesheet as output. This latter stylesheet should then expand the default values in your form. This approach is more portable than using xx:evaluate(); it is also likely to be more efficient, more resilient to namespace variations, and more maintainable.
The other part of your application architecture I would question is theidea of processing raw schema documents as your input. It's almost impossible in practice to do this correctly - there are so many different ways that users can write the same schema, and I bet that you end up testing your code on only a tiny fraction of these. As an alternative, you might consider using as input the SCM output available from the Saxon schema processor, which gives you an XML view of the compiled schema, eliminating all these variations.
Thanks again for your responses! Fred van Blommestein
|
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
|