[Home] [By Thread] [By Date] [Recent Entries]
Hi Alan,
> > What more can I do to organize XSLT? Project organization has been a > real challenge. One thing you might want to do is have a default or fallback project. So if you have multiple projects, and these projects tend to use the same XSL, you have a location where these defaults can be resolved. If a project needs something different then the particular project can override the default. You can implement a custom javax.xml.transform.URIResolver - something like: public Source resolve(String href, String base) throws TransformerException { File file = new File(getWorkDir(), href); if (file.exists()) { return new StreamSource(file); } else { file = new File(getFallbackDir(), href);
if (file.exists()) { return new StreamSource(file);
} else {
throw new TransformerException("Could not find file: " + file);
}
}
}Alan wrote: Here's the details on a method of project organization I've adopted.
|

Cart



