[ 
http://issues.apache.org/jira/browse/XALANJ-1131?page=comments#action_12439840 
] 
            
Cormac Blackwell commented on XALANJ-1131:
------------------------------------------

I came across this bug when using XOM and NUX. XOM uses a Templates object to 
get a transformer. The Transfomer instance is created and used inside a method 
in a final class so it is impossible for me to set the URIResolver on the 
Transformer. NUX lets me set the resolver on the factory but it is not used in 
this case. It seems fairly unhelpful to have different behaviour between the 
two ways of getting a transformer.
It also does not match the javadoc: 
http://xml.apache.org/xalan-j/apidocs/javax/xml/transform/TransformerFactory.html
 
If this bug is not getting fixed the docs should be updated

> Transformer doesn't keep URIResolver from Templates
> ---------------------------------------------------
>
>                 Key: XALANJ-1131
>                 URL: http://issues.apache.org/jira/browse/XALANJ-1131
>             Project: XalanJ2
>          Issue Type: Bug
>          Components: JAXP
>    Affects Versions: 2.4Dx
>         Environment: Operating System: Linux
> Platform: PC
>            Reporter: Daniel Burn
>         Assigned To: Xalan Developers Mailing List
>
> I'm finding that calls to document() that worked when I generate a 
> transformer with 
> javax.xml.transform.Transformer transformer = 
> tFactory.newTransformer(xslSource);
> fail when I generate it with 
> javax.xml.transform.Templates templ = tFactory.newTemplates(xslSource);
> javax.xml.transform.Transformer transformer = templ.newTransformer();
> it fails siliently - simply returning nothing.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Reply via email to