On Thu, 22 Feb 2007 23:22:11 +0100, Andreas L Delmelle wrote:

> On Feb 22, 2007, at 23:12, Arturo Perez wrote:
> 
>> On Thu, 22 Feb 2007 22:08:58 +0100, Andreas L Delmelle wrote:
>>
>>> Before we go any further:
>>> Did you try Jeremias' suggestion and set the URIResolver on both the
>>> FopFactory and the TransformerFactory?
>>
>> During one iteration I put the URIResolver on every XMLReader created by
>> that
>> codepath.  Same problem.  Is that different than what you/Jeremy
>> suggested?
> 
> To follow Jeremias' suggestion to the letter, try adding:
> 
> stf.setURIResolver(ArticleHelper.getURIResolver());
> 
> right after you get the SAXTransformerFactory instance.
> 
> HTH!
> 
> Cheers,
> 
> Andreas

So, doing the below I still got the error:
Can not load requested doc: unknown protocol: urn

Fop fop = FOPConfigurator.newFop(outStream);
SAXTransformerFactory stf = 
(SAXTransformerFactory)TransformerFactory.newInstance();            
Transformer transformer = stf.newTransformer();
transformer.setURIResolver(ArticleHelper.getURIResolver());
//Make sure the XSL transformation's result is piped through to FOP
Result res = new SAXResult(fop.getDefaultHandler());

grrr!
arturo


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to