Re: [xep-support] Problems with fo tags written via disabledoutput-escaping

From: Nikolai Grigoriev (grig@renderx.com)
Date: Fri May 23 2003 - 21:46:03 PDT

  • Next message: Martin Goik: "[xep-support] text margins"

    Hi Doug,

    > I have an input structure like this:
    >
    > 1<container>
    > 2 <element1>mixed-content</element1>
    > 3 <container>
    > 4 <para1>mixed-content</para1>
    > 5 zero or more additional paras, lists, etc.
    > 6 </container>
    > 7</container>
    >
    > I need the following in the output:
    >
    > <fo:block>
    > <fo:block>
    > <fo:inline>mixed content from element1</fo:inline>
    > mixed content from para1
    > </fo:block>
    > any additional blocks, list-blocks etc. from line 5
    > </fo:block>

    One way of doing it, out of many:

    <xsl:template match="container[element1]">
      <fo:block>
        <xsl:apply-templates match="element1"/>
        <xsl:apply-templates match="./container/node()"/>
      </fo:block>
    </xsl:template>

    <xsl:template match="container/element1">
      <fo:block><xsl:apply-templates/></fo:block>
    </xsl:template>

    Regards,
    Nikolai Grigoriev
    RenderX
    -------------------
    (*) To unsubscribe, send a message with words 'unsubscribe xep-support'
    in the body of the message to majordomo@renderx.com from the address
    you are subscribed from.
    (*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html



    This archive was generated by hypermail 2.1.5 : Fri May 23 2003 - 21:51:51 PDT