|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
xsl:result-document to OutputStream?Hi all,
I'm using a stylesheet that contains multiple <xsl:result-document> elements. When I'm using JAXP like this: transformer.transform(new StreamSource("document.xml"), new StreamResult(System.out)); the result of the xsl:result-document redirects is written to file (named according to href attribute). Is it possible, using JAXP, to catch the output of those xsl:result-document redirects to an OutputStream? -- Thanks and regards, Jeroen ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ saxon-help mailing list archived at http://saxon.markmail.org/ saxon-help@... https://lists.sourceforge.net/lists/listinfo/saxon-help |
|
|
Re: xsl:result-document to OutputStream?It's not possible using JAXP interfaces because JAXP still doesn't support
XSLT 2.0! But you can do it with Saxon by setting an OutputURIResolver, which works in a similar way to the JAXP URIResolver. You have to cast the JAXP Transformer to a Saxon Controller to get access to the relevant interfaces. Michael Kay http://www.saxonica.com/ > -----Original Message----- > From: saxon-help-bounces@... > [mailto:saxon-help-bounces@...] On Behalf > Of Jeroen Verhagen > Sent: 16 July 2008 20:37 > To: saxon-help@... > Subject: [saxon] xsl:result-document to OutputStream? > > Hi all, > > I'm using a stylesheet that contains multiple > <xsl:result-document> elements. When I'm using JAXP like this: > > transformer.transform(new StreamSource("document.xml"), new > StreamResult(System.out)); > > the result of the xsl:result-document redirects is written to > file (named according to href attribute). Is it possible, > using JAXP, to catch the output of those xsl:result-document > redirects to an OutputStream? > > > -- > > Thanks and regards, > > Jeroen > > -------------------------------------------------------------- > ----------- > This SF.Net email is sponsored by the Moblin Your Move > Developer's challenge Build the coolest Linux based > applications with Moblin SDK & win great prizes Grand prize > is a trip for two to an Open Source event anywhere in the > world http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > saxon-help mailing list archived at > http://saxon.markmail.org/ saxon-help@... > https://lists.sourceforge.net/lists/listinfo/saxon-help ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ saxon-help mailing list archived at http://saxon.markmail.org/ saxon-help@... https://lists.sourceforge.net/lists/listinfo/saxon-help |
|
|
Re: xsl:result-document to OutputStream?Hi,
On Thu, Jul 17, 2008 at 12:58 AM, Michael Kay <mike@...> wrote: > It's not possible using JAXP interfaces because JAXP still doesn't support > XSLT 2.0! right... > But you can do it with Saxon by setting an OutputURIResolver, which works in > a similar way to the JAXP URIResolver. You have to cast the JAXP Transformer > to a Saxon Controller to get access to the relevant interfaces. I tried your suggestion and got it to work, thanks! -- regards, Jeroen ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ saxon-help mailing list archived at http://saxon.markmail.org/ saxon-help@... https://lists.sourceforge.net/lists/listinfo/saxon-help |
| Free Forum Powered by Nabble | Forum Help |