On 06/28/2013 11:12 AM, Vic Steadman wrote:
I have tried the ditaval suggestion but cannot find any attribute to filter on
that will affect the topic titles.
Any standard filtering attribute may affect the topic titles once this
filtering attribute is properly declared in a .ditaval file. For
example, attribute otherprops. See
http://docs.oasis-open.org/dita/v1.2/os/spec/common/select-atts.html#select-atts
I tried your suggestion to link a table by reference but I was not sure what you meant by
a "chapter topic"
It is the XXX topic referenced in your bookmap as follows:
<chapter href="XXX"/>
as I am using dita not docbook so used a strict topic file.
You are using a bookmap. Hence some strict topic files play the role of
chapters and other strict topic files play the role of sections.
This successfully omits the topic heading (as there is no content in that
heading) but it also means there is no topic heading to pass to the header,
where I do want it.
Is there a way I can pass a metadata value from a topic into the header (I have
tried using a keydef and keyref)? I could then put the required heading value
in the metadata and then leave the topic heading blank as you suggest?
I'm sorry but I don't understand what you call a header.
Alternatively, as these are very simple reference tables which use very few
dita elements or attributes and have very simple formatting, we could create
some bespoke transforms to handle just these files and pass them to pdf without
using ditac and combine them with the rest of the publication using Acrobat.
It's probably much, much, simpler to customize ditac. E.g. add attribute
outputclass="no-title" to some of your topic titles and use a
replacement for the stock
XXE_install_dir/addon/config/dita/xsl/fo/fo.xsl similar to the following
one:
---
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
exclude-result-prefixes="xs"
version="2.0">
<xsl:import href="dita-config:xsl/fo/fo.xsl"/>
<xsl:template match="*[contains(@class,' topic/title ')]
[contains(@outputclass, 'no-title')]">
<fo:block>
<xsl:call-template name="commonAttributes"/>
<!-- Empty block but may have some useful attributes
such as id.-->
</fo:block>
</xsl:template>
</xsl:stylesheet>
---
References:
* XXE_install_dir/addon/config/dita/xsl/fo/topic.xsl (where you'll find
the templates used to process titles).
* XMLmind XML Editor - Configuration and Deployment
10. Customizing the XSLT style sheets used in the Convert Document submenu
http://www.xmlmind.com/xmleditor/_distrib/doc/configure/customizing.html
* Menu item "Options|Customize Configuration|Customize Document
Conversion Stylesheets"
http://www.xmlmind.com/xmleditor/_distrib/doc/help/com.xmlmind.xmleditapp.kit.part.ConversionStylesheetsEditor.html
--
XMLmind XML Editor Support List
xmleditor-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support