I've reopened MOJO-735 to track this.

Mark

2008/7/18 Mark Hobson <[EMAIL PROTECTED]>:
> 2008/7/18 Jochen Wiedmann <[EMAIL PROTECTED]>:
>> On Fri, Jul 18, 2008 at 12:25 PM, Mark Hobson <[EMAIL PROTECTED]> wrote:
>>> MOJO-735 was raised to allow the XSL specified in a transformation set
>>> to be obtained from the context class loader's resources.  Looking at
>>> the commits, it only seems to address loading resources via
>>> URIResolvers and EntityResolvers, but not the actual initial XSL used
>>> for transformation.
>>
>> I think it is implemented as using the resource: prefix.
>
> I've tried that and it doesn't work.  Looking at
> TransformMojo.transform, it doesn't go anywhere near Resolver which
> provides support for the resource protocol:
>
>        File stylesheet = pTransformationSet.getStylesheet();
>        if ( stylesheet == null )
>        {
>            getLog().warn( "No stylesheet configured." );
>            return;
>        }
>        stylesheet = asAbsoluteFile( stylesheet );
>        Templates template = getTemplate( pResolver, stylesheet,
> pTransformationSet );
>
> Hence stylesheets are always considered to be files and never resources.
>
> Mark

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to