
Hi Matt, If you take Eliot's approach, the D4P EPUB plugin is already integrated in Oxygen. So you could to edit the DITA Map to EPUB transformation scenario and in the Parameters tab set the "clean.temp" parameter to "no". You will find this resource after the DITA Map to EPUB transformation: MAP_DIRECTORY\temp\epub\epub_temp\graphicMap.xml Another alternative would be to publish to PDF using the same "clean.temp" set to "no". Then in the temporary files folder you will find a resource like "map_MERGED.xml" which merges the entire DITA content in one file. Then you create and apply an XSLT 2.0 stylesheet which removes duplicates and makes an HTML report, possibly also parsing the SVG images to check for additional references. But what is your final intent on this? Do you want to check for orphan images? Regards, Radu Radu Coravu <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com On 9/13/2013 12:25 AM, KAATMAN Matthew wrote:
Thanks Eliot, That looks like a great jump-start for me!
Matt
-----Original Message----- From: Eliot Kimber [mailto:ekimber@rsicms.com] Sent: Thursday, September 12, 2013 4:24 PM To: KAATMAN Matthew; Oxygen User Subject: Re: [oXygen-user] Looking for a creative solution for an image report
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/
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