/** * Return list of stylesheets that matched, as an array of Source objects * @return null if there were no matching stylesheets. * @throws net.sf.saxon.trans.XPathException if a URI cannot be resolved */ 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 instanceof SAXSource) { ((SAXSource)s).setXMLReader(config.getStyleParser()); } if (s == null) { s = config.getSystemURIResolver().resolve(href, baseURI); } result[i] = s; } return result; }
/** * Return list of stylesheets that matched, as an array of Source objects * @return null if there were no matching stylesheets. * @throws net.sf.saxon.trans.XPathException if a URI cannot be resolved */ 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 instanceof SAXSource) { ((SAXSource)s).setXMLReader(config.getStyleParser()); } if (s == null) { s = config.getSystemURIResolver().resolve(href, baseURI); } result[i] = s; } return result; }
/** * Return list of stylesheets that matched, as an array of Source objects * @return null if there were no matching stylesheets. * @throws net.sf.saxon.trans.XPathException if a URI cannot be resolved */ 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 instanceof SAXSource) { ((SAXSource)s).setXMLReader(config.getStyleParser()); } if (s == null) { s = config.getSystemURIResolver().resolve(href, baseURI); } result[i] = s; } return result; }