On 05/15/2013 03:37 PM, Praveen Sivasankaran wrote:
I am using XXE Professional 5.1.0 for our documentation purposes.
We prepare user documents that have to be delivered to multiple
clients, and we often face issue with images that will differ for each
client (i.e, the color, logo and label names).  So please let me know
how can I  handle the images in the document for delivering multiple
clients.


--> The approach described below is sufficiently general to apply to both DITA and DocBook:

[1] Insert in your document one ``image element'' per client, each image element having a different ``audience attribute''. (Yes, this means that the XML document contains several consecutive variants of the same image.)

[2] When you convert the document to a format such PDF, HTML, etc, specify the value of the ``audience attribute'' which means: keep the element; a different value meaning: discard the element.

DocBook:

This is specified using "profile.XXX" XSLT stylesheet parameters. See "Change Document Conversion Parameters" in http://www.xmlmind.com/xmleditor/_distrib/doc/help/customizeConfigurationMenu.html

DITA:

This is specified using a conditional-processing (.ditaval) file. See "Conditional Processing Profile" in http://www.xmlmind.com/xmleditor/_distrib/doc/dita/help-2.html#map_menu



--> Now, which attributes to use, what is a .ditaval file, etc, is explained in these manuals:

DocBook:

DocBook XSL: The Complete Guide
Fourth Edition
Bob Stayton
Chapter 26. Profiling (conditional text)
http://www.sagehill.net/docbookxsl/Profiling.html

DITA:

Darwin Information Typing Architecture (DITA) Version 1.2
OASIS Standard
2.1.3.6 Conditional processing (profiling)
http://docs.oasis-open.org/dita/v1.2/os/spec/archSpec/condproc.html#condproc




--> If you find the above, standard, approach (which we daily use for our own documents) hard to understand and/or has a steep learning curve, then please remember that XML documents are basically plain text files and that a script invoking a command-line utility like sed (http://en.wikipedia.org/wiki/Sed) is sufficient to automatically switch from one set of images to another set of images.


--
XMLmind XML Editor Support List
xmleditor-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to