camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Titov (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-5505) Unable to customize URIResolver in xslt component
Date Tue, 14 Aug 2012 17:22:38 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-5505?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13434285#comment-13434285
] 

Alexander Titov commented on CAMEL-5505:
----------------------------------------

Hadrian, thanks for advice. Can you share some documentation or other reference about that?
I agree, that there is no documentation about '#' in xslt component. I studied souce code
of camel-core, particularly EndpointHelper.resolveReferenceParameter and i see that in this
version of camel all # signs replased with empty string. In samples from Camel in action book
beans with # called reference beans. Maybe this book is old, or this information is outdated,
or somthing like that. 

Despite this, proplem is in createEndpoint implementation of xslt component. Currently, after
parameter is set in configureXslt, it is removed from parameters Map. URIResolver resolver
= resolveAndRemoveReferenceParameter(parameters, "uriResolver", URIResolver.class) will allways
return null, after configureXslt is called, and resolver will be always initialized to new
XsltUriResolver.  
                
> Unable to customize URIResolver in xslt component
> -------------------------------------------------
>
>                 Key: CAMEL-5505
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5505
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.10.0, 2.11.0
>            Reporter: Alexander Titov
>            Assignee: Hadrian Zbarcea
>            Priority: Minor
>              Labels: camel-core,, test, xslt
>         Attachments: camel-core-xslt-CustomURIResolver.patch
>
>
> In xslt component we can't customize uriResolver For instance in route with uri "xslt:org/apache/camel/component/xslt/include_not_existing_resource.xsl?uriResolver=#customURIResolver"
camel still uses default XsltUriResolver.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message