Resolve image location programmaticaly
Posted: Wed Aug 31, 2011 7:19 pm
Hello,
I have a DTD (a S1000D DTD) which declare graphics prior to use their in the content :
I have to display the graphic at it's use point.
The graphic filename is the concatenation of the tags from "modelic" to "language" with an extension that is among a list of supported one : eg. AAAAA000000MM0001AF.(jpg|png|svg|...)
It's seems impossible to display the image using CSS (or I'm wrong). Is there another way to display the image ? Maybe programmaticaly ?
Thanks for your help,
Nicolas
I have a DTD (a S1000D DTD) which declare graphics prior to use their in the content :
Code: Select all
<!-- declaration -->
<icns>
<icn id="icn1">
<icn-c>
<modelic>AAAA</modelic>
<sdc>A</sdc>
<chapnum>00</chapnum>
<section>0</section>
<subsect>0</subsect>
<subject>00</subject>
<manualcode>MM</manualcode>
<illnum>0001</illnum>
<illver>A</illver>
<language language="F"/>
</icn-c>
</icn>
</icns>
[...]
<!-- content -->
<graphic callicn="icn1"/>
The graphic filename is the concatenation of the tags from "modelic" to "language" with an extension that is among a list of supported one : eg. AAAAA000000MM0001AF.(jpg|png|svg|...)
It's seems impossible to display the image using CSS (or I'm wrong). Is there another way to display the image ? Maybe programmaticaly ?
Thanks for your help,
Nicolas