Hello Antoine, --- Antoine Levy-Lambert <[EMAIL PROTECTED]> 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: <xslt in="somedata.xml" out="someresult.html"> <file file="style.xml"/> </xslt> or <xslt in="somedata.xml" out="someresult.html"> <url url="style.xml"/> </xslt> 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 : > > <xslt in="somedata.xml" out="someresult.html" > 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: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]