
If you use the DITA for Publishers HTML2, EPUB, or HTML5 transform it will generate a "graphic copy" Ant script that lists all things referenced by <image>. It will not handle references from within SVGs, although that's an interesting use case and one that the D4P code could be made to handle. (The EPUB transform is bundled with later versions of Oxygen). The logic that finds all graphic references could be used in isolation to produce the graphic report you're looking for. The XSLT to look at is: net.sourceforge.dita4publishers.common.xslt/xsl/map2graphicMap.xsl This takes a (resolved) map and processes it and all topics referenced to find all references to graphics and objects (<image> and <object>). The result is an XML "graphic map" that maps graphic source URIs to output URIs (where the graphic should be copied to in the output). It doesn't look like it would be too hard to extend this code to handle references within inline or referenced SVG. Cheers, E. On 9/12/13 3:26 PM, "KAATMAN Matthew" <matthew.kaatman@biomerieux.com> wrote:
I'd like to be able to get a list of images (paths + filenames) referenced from the topics within a map including those referenced from within SVGs.
So far I've been doing fairly hackish things like using File/Replace in Files with a regular expression of \. And restrict to Xpath: //image[@href] using only attribute values.
Then deduping the list and removing garbage but there's got to be a better way to get an accurate list quickly.
Any thoughts?
Matt
AVIS : Ce courrier et ses pieces jointes sont destines a leur seul destinataire et peuvent contenir des informations confidentielles appartenant a bioMerieux. Si vous n'etes pas destinataire, vous etes informe que toute lecture, divulgation, ou reproduction de ce message et des pieces jointes est strictement interdite. Si vous avez recu ce message par erreur merci d'en prevenir l'expediteur et de le detruire, ainsi que ses pieces jointes. NOTICE: This message and attachments are intended only for the use of their addressee and may contain confidential information belonging to bioMerieux. If you are not the intended recipient, you are hereby notified that any reading, dissemination, distribution, or copying of this message, or any attachment, is strictly prohibited. If you have received this message in error, please notify the original sender immediately and delete this message, along with any attachments.
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user
-- Eliot Kimber Senior Solutions Architect | RSI Content Solutions Work: 512.554.9368 <http://www.youtube.com/watch?v=Sj4qT8sH42s> Web: http://www.rsicms.com Book: DITA For Practitioners, from XML Press, http://xmlpress.net/publications/dita/practitioners-1/