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

Nikolai Grigoriev grig at renderx.com
Fri May 23 21:46:03 PDT 2003


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 at 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



More information about the Xep-support mailing list