Hello Ray,
I think the effect of surrounding the chapter title in an "i" element in
the olink target file is intended, not a side effect as you can see in
the template which generates it:
<xsl:template match="chapter|appendix" mode="insert.title.markup">
<xsl:param name="purpose"/>
<xsl:param name="xrefstyle"/>
<xsl:param name="title"/>
<xsl:choose>
<xsl:when test="$purpose = 'xref'">
<i>
<xsl:copy-of select="$title"/>
</i>
</xsl:when>
<xsl:otherwise>
<xsl:copy-of select="$title"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
You can remove the <i> and </i> tags in a customization layer of the
main DocBook stytlesheet which duplicates this template and modifies it
by removing these tags. Apply the customization layer instead of the
main DocBook stylesheet to remove the tags prior to transformations and
perform the transformations at the same time (if collect.xref.targets is
set to 'yes').
We will consider publishing this customization on the <oXygen/> website.
Best regards,
Sorin
http://www.oxygenxml.com/
Miller, Ray (Centech) wrote:
docbook-rng-5.0b8 xsl-1.71.0 saxon-6.5.5 oxygen-7.2.0 (eclipse-3.2 plugin)
When generating an olink target data file (targetdb.xml), tags <i> and
</i> surround each chapter’s element text. Would like a macro to strip
the aforementioned tags from targetdb.xml subsequent to pre-processing
but prior to transformations, executing automatically each time a
transformation is run on the project AND the stringparm
collect.xref.targets is set to ‘yes’ or ‘only’. Currently performing
this activity utilizing find/replace (ugh).
I believe a site-published solution (under Documentation/Articles)
addressing the removal of unwanted tags and characters (along with the
macro) from a DocBook target.db document will be of interest to other
oXygen/DocBook users.
Advise and comments please.
Ray
_______________________________________________
oXygen-user mailing list
[email protected]
http://www.oxygenxml.com/mailman/listinfo/oxygen-user