[
http://jira.codehaus.org/browse/MOJO-735?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=142422#action_142422
]
Rainer Langbehn commented on MOJO-735:
--------------------------------------
I agree with Mark, Jerome and Vincent and I also have a strong need for this
feature.
My current project "XDP To XSL-FO", http://xdp2fo.sourceforge.net/, depends on
this plugin. Neither with version 1.0-beta-2 nor 1.0-beta-3 is it
possible to resolve the initial stylesheet in the way described. This
collection of stylesheets, count > 100, will be deployed as a jar archive.
Expanding this jar archive to be able use the stylesheets is not desired. Users
of the DocBook XSL stylesheets will have the same need,
given the stylesheets will be deployed as a jar archive.
I think the ResourceManager based approach as discussed before is the right
solution. The resolver and catalog based approach to resolve the initial
stylesheet used for transformation is not the intended purpose of the
URIResolver interface. I'm not sure whether this is possible at all.
The URIResolver javadoc says:
"An object that implements this interface that can be called by the processor
to turn a URI used in document(), xsl:import, or xsl:include into a Source
object. "
Some good reasons for the ResourceManager based approach:
- the stylesheet is a dendency of the consumer of the stylesheet and hence
should be handled accordingly
- one of the strengths of maven is dependency management; let maven do the job
- version management with the catalog based approach is a nightmare
- dependencies should be specified in the pom and NOT in the catalog
- other plugins will not work with the catalog based approach, e.g. the
maven-eclipse-plugin
Thanks
Rainer
> Allow XSL to be obtained from classloader resources
> ---------------------------------------------------
>
> Key: MOJO-735
> URL: http://jira.codehaus.org/browse/MOJO-735
> Project: Mojo
> Issue Type: Improvement
> Components: xml
> Reporter: Mark Hobson
> Assignee: Jochen Wiedmann
> Attachments: MOJO-735.patch
>
>
> It'd be handy to be able to use classloader resources when specifying the
> XSL. This would work in the same way as the maven-checkstyle-plugin's
> configLocation param, which I believe utilises the plexus ResourceManager.
> This would allow XSLs to be brought in from external resource jars by
> specifying an appropriate plugin dependency.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email