[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] using relative paths and Saxon 8


Subject: Re: [xsl] <xsl:include> using relative paths and Saxon 8
From: andrew welch <andrew.j.welch@xxxxxxxxx>
Date: Fri, 20 Jan 2006 16:59:18 +0000

>             URL url = new URL(xsltUrl);
>             URLConnection urlConn = url.openConnection();
>
>                 InputStream is = urlConn.getInputStream();
>                 Source xslSource = new StreamSource(is);

Add the line:

xslSource.setSystemId(url.getPath());

cheers
andrew


Current Thread