what's wrong with this config ( simple test ? ! )
<config> <var-def name="params"> <xpath expression="data(//height)"> <json-to-xml> <http url="http://gallica.bnf.fr/proxy?method=M&ark=btv1b7710894p.f1"/> </json-to-xml> </xpath>
</var-def> <file action="write" path="/home/metronome/harvest/bnf_image/params.txt" charset = "utf-8" > <template> WIDTH : {$height} </template> </file>
</config>
the config has been cut
you could add a root code. like this:
<var-def name="p"> <template><aaa>${params}</aaa></template> </var-def>
Log in to post a comment.
what's wrong with this config ( simple test ? ! )
<config>
<var-def name="params">
<xpath expression="data(//height)">
<json-to-xml>
<http url="http://gallica.bnf.fr/proxy?method=M&ark=btv1b7710894p.f1"/>
</json-to-xml>
</xpath>
</config>
the config has been cut
you could add a root code. like this: