<xi:include href="shared_input.dbk" ..> wrongly set shared_input_#.png as images names for the calling page. So the last calling&built page overwrites and imposes all its images
@sgougeon)
Reported by Samuel GOUGEON (xinclude_15822.zip (9.07 KB, application/octet-stream)
minimal module structure to build help and see the bug
BUG DESCRIPTION:
----------------
When a page my_page_id has some <xi:include href="shared_input.dbk" ..> tags while the shared content does not generate any <scilab:image>,
unshared <scilab:image> images of the page are named shared_input_#.png instead of my_page_id_#.png.
Since <xi:include href="shared_input.dbk" ..> stands in distinct pages, the last page generates and imposes all its my_page_id_#.png images to all other pages. Finally, all pages display the same images..
This bug is definitely blocking. It makes <xi:include> unusable. What a pity!
I discovered this bug while factorizing the alpha/theta/leg/flag/ebox descriptions in the contour/param3d/plot3d/plot3d1/plot3d2/plot3d3 pages.
The inclusions work well and are so useful! But now images are not the right ones!
So, i can't push prepared lighted pages.
ERROR LOG:
----------
None. Wrong behavior:
--> tbx_make . help
Building help...
Building the master document:
SCIHOME\_WIP\xinclude\page\help\en_US
Building the manual file [javaHelp] in SCIHOME\_WIP\xinclude\page\help\en_US.
Generate image ./theta_ebox_argins_1.png from Scilab code from file theta_ebox_argins.dbk <<<<< Building plot3d2.html
Generate image ./theta_ebox_argins_1.png from Scilab code from file theta_ebox_argins.dbk <<<<< Building plot3d3.html: same image name!
Generating loader.sce...
Generating unloader.sce...
Generating cleaner.sce...
HOW TO REPRODUCE THE BUG:
-------------------------
// 1) Unzip the attachment.
// 2) set the Scilab directory to the unzipped "page" directory
// 3) run with Scilab
tbx_make . help
// 4) Look at the information during the building process (as above)
// 5) Go to the help/en_US/Scilab_en_US_help subdirectory with your OS file browser
// 6) No plot3d2.png nor plot3d3.png have been generated, only theta_ebox_argins_1.png appearing in both plot3d2.html and plot3d3.html
OTHER INFORMATION:
------------------
Same issue with Scilab 5.5.2 and Scilab 6.0.1