add a <programlisting .. output="image" ..> attribute avoiding to replicate the content in <scilab:image>..< />
Reported by Samuel GOUGEON (@sgougeon)
Originally assigned to Calixte DENIZET
BUG DESCRIPTION:
----------------
Presently, when an example produces an image and we wish to display it in the page,
the Scilab code yielding the image must be entered twice:
1) once in the <programlisting>..<./> section displaying the code in the page
2) another time in the next <scilab:image>..<../> section to actually yield the image
when generating the doc nad including it in the page.
A new flag in the <programlisting> tag would be useful to avoid duplication of the
code. It would do both actions.
It would avoid explicitly "synchronizing" both codes when the example is modified.
HOW TO REPRODUCE THE BUG:
-------------------------
for instance, edit the help page replot.xml. Here is a part of it:
<programlisting role="example"><![CDATA[
xdel(winsid());
plot() // plot demo
f=gcf();
replot([-1,-1,10,2],f.children(1)) // specify axes handle's value
replot([-3,-2,8,4],f.children(2))
]]></programlisting>
<scilab:image>
xdel(winsid());
plot()
f2=gcf();
replot([-1,-1,10,2],f2.children(1))
replot([-3,-2,8,4],f2.children(2))
</scilab:image>
OTHER INFORMATION:
------------------
Later, a output="console" value could be implemented, in order to display in
the following section of the page the result as it would be in the console.