xslt extension exemple

Asked by v1nce

wiki
http://wiki.inkscape.org/wiki/index.php/Extension_subsystem#Implementation_Types
suggests you could write extension in xslt.

Is there an exemple somewhere ?

Question information

Language:
English Edit question
Status:
Solved
For:
Inkscape Edit question
Assignee:
No assignee Edit question
Solved by:
v1nce
Solved:
Last query:
Last reply:
Revision history for this message
su_v (suv-lp) said :
#1

Did you check in the shared extensions folder? Below is what I see in current trunk:

AI SVG Input:
aisvg.inx/aisvg.xslt

FXG Output:
svg2fxg.inx/svg2fxg.xsl

XAML Input/Output:
<http://wiki.inkscape.org/wiki/index.php/SpecXAMLExport>
xaml2svg/*
svg2xaml.inx/svg2xaml.xsl
xaml2svg.inx/xaml2svg.xsl

Revision history for this message
v1nce (vincent-pennec) said :
#2

Thank you.

When I read
 Note: XSLT at this time appears to support input and output filtering, but not effects filters (i.e. there is no implementation of Inkscape::Extension::Implementation::XSLT::effect(), only ::open() and ::save() )

I thought this meant I can't process the svg and output a fragment tree (like for filters) but FWIU this really means I can't pass any argument at all = I'm stuck with only output/input.

After that I thought I could create a minimal INX with xsltproc as command. No luck. xsltproc needs parameter in the form --param name value when inkscape outputs --name value. So I'll need to write a minimal python script to rewrite the parameter before calling xsltproc.