Re: Xerces, schema caching, and namespaces
I've done a schema cache implementation using Xerces-J. In cases where a schema location hint is provided, I compare both namespace and location. If a cache didn't use the location hint when provided, I would consider it to be broken unless the user had given specific instructions to ignore the hint. But if no schema location is specified, which is perfectly legitimate, the cache will return any schema with the same namespace (or no namespace). Though this could cause problems, it seems to fit the usage patterns of people who do not like to specify locations, who tend to set up a 1-1 correspondence between schema and namespace. Bob Foster http://xmlbuddy.com/
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