Robert B. wrote:
We have quite a few cases where sections have an immutable identifier, particularly when related to software requirements. So for example, we could do: <section xml:id="REQ_001"> <title>My Requirements Title</title> <para>Section content here.....</para> </section> What would be really helpful is if we could cause the section’s xml:id to be rendered into the title element, so we’d actually see the following in the PDF output: 1. My Requirements Title (REQ_001)
This question is about the customization of the output of the "Convert Document" menu.
In the general case (your use case), this involves adding code to the XSL stylesheets which are used to convert XML (e.g. DocBook v5+) to other formats (e.g. XSL-FO the intermediate format used to generate PDF, RTF, DOCX, etc).
Writing XSL customization code is not part of the support we provide our customers with. More in this FAQ "How do I customize the HTML, PDF, RTF, etc, generated using the "Convert Document" menu?", http://www.xmlmind.com/xmleditor/faq.html#custom_deliverables
However, exceptionally (we'll not do that again for you), we have written this XSL customization code for you. See attached "docbook_MB.xsl" file.
In order to use it, please proceed as follows: 1) Open any DocBook document of yours in XXE. This document is expected to be a DocBook 5.0 or 5.1 document.We'll also assume here that you use the plain DocBook XSL stylesheets and not the profiling DocBook XSL stylesheets.
2) Select menu item "Options|Customize Configuration|Customize Document Conversion Stylesheets". (See http://www.xmlmind.com/xmleditor/_distrib/doc/help/ConversionStylesheetsEditor_reference.html)
This displays a dialog box. See attached screenshot #1. 3) Select "Convert to PDF, Postscript" from the combobox. 4) Click "Add". This displays another dialog box. See attached screenshot #2.5) Select attached file "docbook_MB.xsl" and type a description of this customization file.
6) Click OK to close all the dialog boxes.This setting is done once for all and will be used by both the xxe desktop application and the xxetool command-line utility (provided that you did this setting on the computer where you plan to run xxetool).
docbook_MB.xsl
Description: application/xslt
-- XMLmind XML Editor Support List xmleditor-support@xmlmind.com http://www.xmlmind.com/mailman/listinfo/xmleditor-support