public Source[] getAssociatedStylesheets() throws TransformerException {
if (stylesheets.size()==0) {
return null;
}
if (uriResolver==null) {
uriResolver = new StandardURIResolver(config);
}
Source[] result = new Source[stylesheets.size()];
for (int i=0; i<stylesheets.size(); i++) {
String href = (String)stylesheets.get(i);
Source s = uriResolver.resolve(href, baseURI);