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);
if (s == null) {
s = new StandardURIResolver(config).resolve(href, baseURI);
}
result[i] = s;
}
return result;
}