Replace XSD path when transforming with Xalan
I am working an XSLT to transform various XML documents supplied by my client. Each of these documents define the XSD in the header.
Like -
<root xmlns="http://www.mycustomer.com/si/schemas/MyCustomersSchema.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.mycustomer.com/si/schemas/MyCustomersSchema.xsd">
The transformation fails because it can't find the XSD http://www.mycustomer.com/si/schemas/MyCustomersSchema.xsd
I do have a local version of the XSD at c:\work\MyCustomersSchema.xsd
As a workaround I've edited all the clients files and everything works fine
<root xmlns="file:///c:/work/MyCustomersSchema.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="file:///c:/work/MyCustomersSchema.xsd">
I'm uncomfortable with the fact that I'm editing all my test cases.
Is there any way I can instruct xalan to replace one URI with another?
I see that Transformer has a setProperties method and a setURLResolver method but can find no examples of their use. I'm not convinced that these will solve my problems. Anyone got any pointers?

