Hi folks,

We have a very, very strange problem: Our project DTD contains <p>- and
<graphic>-tags which work absolutely fine, if the tags are called
seperated - but when testet this combination (nesting <graphic> in <p>): <p>
foo... <graphic.../> bar... </p> we lose the last line of the text beyond
the graphic. Could this be a FOP problem with nesting <fo:graphic> in
<fo:block>? All the other elements don't have problem with being nesting in
"<p>".

These are the templates:

  <xsl:template match="p">
    <fo:block id="[EMAIL PROTECTED]" ...>
      <xsl:apply-templates select="text() | thesis | formula | em | gloss |
footnote | link | ref | def | ulist | olist |
                table | graphic | code | note | conclude | quote"/>
    </fo:block>
  </xsl:template>

  <xsl:template match="graphic">
      <fo:external-graphic id="[EMAIL PROTECTED]">
        <xsl:attribute name="src"><xsl:choose><xsl:when
test="starts-with(@source, 'http')"></xsl:when></xsl:choose>
                <xsl:value-of select="@source"/></xsl:attribute>
      </fo:external-graphic>
      <fo:block ...>
        <xsl:value-of select="$lang/illustrations"/> <xsl:number
count="graphic" level="any"/>: <xsl:value-of select="@alt"/>
      </fo:block>
  </xsl:template>


Jens Posingies, Lüneburg (Germany)
_______________________________________

    **** COMMODORE 64 BASIC V2 ****

64K RAM SYSTEM  38911 BASIC BYTES FREE

READY.
_
_______________________________________

Reply via email to