Hello Antoine, --- Antoine Levy-Lambert wrote: > Hello Matt and others, > > I want to change the xslt task, so that the > stylesheet can be either a > regular file or a zip entry (or may be even any > resource). I finally implemented a working solution of xslt task accepting its stylesheet as a resource. > This brings me to point : we do not have yet a > syntax to generate > resources from attributes, do we ? I didn't checked if this syntax exists. Instead, I did it in the following way: or I implemented it by adding addConfigured(Resource) to XSLTProcess. XSLTProcess delegates the xslt transformation work to instances of XSLTLiaison. They accepted the stylesheet as a file, so I hacked them to accept to is as a resource. The attached patch contains the changes for XSTLProcess.java, XSLTLiaison.java, TRAXLiaision.java and some unit tests for these changes. Regards Ivan > > My dream : > > styleresource="zip:file:foo/bar/my.zip!alpha/beta/style.xml"/> > > which would mean of course take from foo/bar/my.zip > the entry > alpha/beta/style.xml and use it to transform > somedata.xml into > someresult.html. > > Any ideas ? > > Regards, > > Antoine > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > dev-unsubscribe@ant.apache.org > For additional commands, e-mail: > dev-help@ant.apache.org > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com