I'm trying to have url's included inline in a paragraph.  The relevant code is:

---
<xsl:template match="summary">
  <fo:block font-size="11pt">
    <xsl:apply-templates/>
  </fo:block>
</xsl:template>

<xsl:template match="link">
      <fo:basic-link>
        <xsl:attribute name="external-destination"><xsl:value-of
select="url"/></xsl:attribute>
        <xsl:attribute name="color">blue</xsl:attribute>
        <xsl:value-of select="text"/>
      </fo:basic-link>
</xsl:template>
---

Where the summary element in the XML is mixed content containing a link element.

When I try to convert the XML document to PDF, I get the following error:
"org.apache.fops.apps.FOPException:  inline formatting objects cannot be
directly under flow"

Okay, if I surround the <fo:basic-link>...</fo:basic-link> block with
<fo:block></fo:block> tags, the PDF is generated but the link is placed on its
own line, which is obviously not a desired result.

Any suggestions, work arounds, etc., would be most appreciated.

TIA,

Steven Berkowitz

PS - if this is an XSL:FO issue and not a FOP issue, feel free to tell me RTFM,
I've got a thick skin.  Googling around, though didn't get me anywhere, so here
we are.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to