Wow, thank Peter for this amazing explanation. I'm currently sumerged into the gsoc project too so I can't give it a try right now but I'm sure I will once I finish it. The problem right now is I don't know most of the things you're talking about so I'll need first to get my feet wet. I'll let you know when I start to work on it.<br>
<br><div>Greetings</div><div><br><div class="gmail_quote">2011/7/7 Peter Jentsch <span dir="ltr"><<a href="mailto:pjotr@guineapics.de">pjotr@guineapics.de</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi Xisco,<br>
<br>
one more thing: I looked at at XSLTFilter code again and noticed that<br>
although a lot of data get's passed in to the import call, only a tiny<br>
fragment of that makes it to the actual transformation, so you won't be<br>
able to use any parameters in the transformation. I don't like that<br>
situation, and if you'd chose to investigate deeper into the approach I<br>
sketched out I'd extend the XSLT Filter call to pass parameters to the<br>
transformation.<br>
<br>
We get a MediaDescriptor struct handed in there, which has a string<br>
field "FilterOptions" that can be passed unmodified to any<br>
transformation. That should be sufficient if the total amount of<br>
information to get into the transformation remains small.<br>
<br>
Cheers,<br>
<div class="im"><br>
Peter<br>
<br>
Am 04.07.11 12:42, schrieb Michael Meeks:<br>
</div><div><div></div><div class="h5">> Hi Xisco,<br>
><br>
> Peter - Xisco is working on re-writing the wizards in Java :-)<br>
><br>
> On Fri, 2011-07-01 at 16:05 +0200, Xisco Faulí wrote:<br>
>> Michael wrote:<br>
>> Weelll - so you're both right; but really we need to<br>
>> grub about inside the templates themselves to add some<br>
>> improved translation scheme I think; now we have fast native<br>
>> XSLTs - I guess we could use the native XSLT filters to allow<br>
>> the templates to be self-standing, and yet adapt<br>
>> to the locale nicely.<br>
>> But - your task is primarily the Java -> python<br>
>> conversion I guess :-)<br>
>> Xisco wrote:<br>
>> Yes, you're right but if I have some time before gsoc finishes (or<br>
>> even after) I'd like to take a look to it. Who should I get in<br>
>> contact with in order to get my feet wet ?<br>
> Ah - so the XSLT expert is Peter Jentsch who has done a load of great<br>
> work in this area, writing the much faster / smaller native C++ filter<br>
> etc. He can prolly help out with some code pointers, and/or perhaps some<br>
> simple example XSLTs that might be useful for translating attributes /<br>
> elements (?), and ways to get feed the required data to them elegantly.<br>
><br>
> HTH,<br>
><br>
> Michael.<br>
><br>
<br>
</div></div></blockquote></div><br></div>