@@ -172,7 +172,18 @@ public XSLDocument(final XML src, final String base) {
172172 * @since 0.7.4
173173 */
174174 public XSLDocument (final URL url ) throws IOException {
175- this (new TextResource (url ).toString (), url .toString ());
175+ this (url , url .toString ());
176+ }
177+
178+ /**
179+ * Public ctor, from URL with alternative SystemId.
180+ * @param url Location of document
181+ * @param base SystemId/Base
182+ * @throws IOException If fails to read
183+ * @since 0.26.0
184+ */
185+ public XSLDocument (final URL url , final String base ) throws IOException {
186+ this (new TextResource (url ).toString (), base );
176187 }
177188
178189 /**
@@ -182,7 +193,19 @@ public XSLDocument(final URL url) throws IOException {
182193 * @since 0.21
183194 */
184195 public XSLDocument (final File file ) throws FileNotFoundException {
185- this (new TextResource (file ).toString (), file .getAbsolutePath ());
196+ this (file , file .getAbsolutePath ());
197+ }
198+
199+ /**
200+ * Public ctor, from file with alternative SystemId.
201+ * @param file Location of document
202+ * @param base SystemId/Base
203+ * @throws FileNotFoundException If fails to read
204+ * @since 0.26.0
205+ */
206+ public XSLDocument (final File file , final String base )
207+ throws FileNotFoundException {
208+ this (new TextResource (file ).toString (), base );
186209 }
187210
188211 /**
@@ -195,14 +218,37 @@ public XSLDocument(final Path file) throws FileNotFoundException {
195218 this (file .toFile ());
196219 }
197220
221+ /**
222+ * Public ctor, from file with custom SystemId.
223+ * @param file Location of document
224+ * @param base SystemId/Base
225+ * @throws FileNotFoundException If fails to read
226+ * @since 0.26.0
227+ */
228+ public XSLDocument (final Path file , final String base )
229+ throws FileNotFoundException {
230+ this (file .toFile (), base );
231+ }
232+
198233 /**
199234 * Public ctor, from URI.
200235 * @param uri Location of document
201236 * @throws IOException If fails to read
202237 * @since 0.15
203238 */
204239 public XSLDocument (final URI uri ) throws IOException {
205- this (new TextResource (uri ).toString (), uri .toString ());
240+ this (uri , uri .toString ());
241+ }
242+
243+ /**
244+ * Public ctor, from URI.
245+ * @param uri Location of document
246+ * @param base SystemId/Base
247+ * @throws IOException If fails to read
248+ * @since 0.26.0
249+ */
250+ public XSLDocument (final URI uri , final String base ) throws IOException {
251+ this (new TextResource (uri ).toString (), base );
206252 }
207253
208254 /**
0 commit comments