[oXygen-user] Error when transforming

Bernhard Kleine bernhard.kleine at gmx.net
Mon Oct 8 15:02:26 CDT 2018


I have analyzed the situation:

When I transform the glossar of my book, transformation is without
trouble. However, when transforming the whole book plus the glossar, it
stumbles

I then analyzed the glossar: It has seven glossdivs. The last one
consists of some 20 glossdefs, of which I show the last ones:

      <glossentry xml:id="glo.Tumor">
        <glossterm>Tumor</glossterm>
        <glossdef>
          <para>Als Tumor wird zunächst eine raumfordernde Wucherung von
Zellen bezeichnet, ein
            synonymer Ausdruck ist Neoplasie. Dabei gibt es gutartige
Tumoren und bösartige. Je nach
            Ort der Geschwulst und nach Art des verdrängten und
geschädigten Gewebes können
            Krankheiten bis hin zum Tod entstehen. Bösartige Tumoren
sind die Ursache von Krebs, bei
            dem sich ausgehend von den ursprünglichen Tumorzellen
weitere Geschwulste (Metatasen) in
            anderen Körperregionen bilden.</para>
        </glossdef>
      </glossentry>
      <glossentry xml:id="glo.geneticCode" xreflabel="Glo.T Genetischer
Code">
        <glossterm>Genetischer Code<indexterm>
            <primary>Genetischer Code</primary>
          </indexterm></glossterm>
        <glossdef>
          <para>
            <table frame="sides" rowsep="0" colsep="0"> [163
lines]            
          </para>
        </glossdef>
      </glossentry>
    </glossdiv>
  </glossary>
</sect2>

It is this table which made the transformation choke. But only in the
context of the book, not in the glossar itself. Can you please explain
to me what I do wrong and how to change the behaviour?

I have changed the transformation scenario to:


and are using the following stylesheet:

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:fo="http://www.w3.org/1999/XSL/Format"
  xmlns:d="http://docbook.org/ns/docbook"
  version="1.0">
  <xsl:import
href="http://docbook.sourceforge.net/release/xsl-ns/current/fo/docbook.xsl"/>
     <xsl:param name="caption.align">justify</xsl:param>
 
  <xsl:template match="d:mediaobject/d:caption">
    <fo:block role="caption">
      <xsl:if test="$caption.align = 'right' or
        $caption.align = 'left' or
        $caption.align = 'justify' or
        $caption.align = 'center'">
        <xsl:attribute name="text-align">
          <xsl:value-of select="$caption.align"/>
        </xsl:attribute>
      </xsl:if>
      <xsl:apply-templates/>
    </fo:block>
  </xsl:template>
</xsl:stylesheet>

Regards
Bernhard


-- 
spitzhalde9
D-79853 lenzkirch
bernhard.kleine at gmx.net
www.b-kleine.com, www.urseetal.net
-
thunderbird mit enigmail
GPG schlüssel: D5257409
fingerprint:
08 B7 F8 70 22 7A FC C1 15 49 CA A6 C7 6F A0 2E D5 25 74 09

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.oxygenxml.com/pipermail/oxygen-user/attachments/20181008/0633d9dd/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jjnaoncickhfccje.png
Type: image/png
Size: 24267 bytes
Desc: not available
URL: <http://www.oxygenxml.com/pipermail/oxygen-user/attachments/20181008/0633d9dd/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://www.oxygenxml.com/pipermail/oxygen-user/attachments/20181008/0633d9dd/attachment.sig>


More information about the oXygen-user mailing list