Altova Mailing List Archives>Archive Index >xsl-list Archive Home >Recent entries >Thread Prev - Re: [xsl] Elegant way to create an empty line [Thread Next] Re: [xsl] Elegant way to create an empty lineTo: xsl-list@-----.------------.--- Date: 7/9/2009 8:14:00 PM Hi Alain,
thank you. Your idea was the final hint.
My solution looks like this:
<xsl:template match="p[not(node())]" priority="1">
<fo:block>
<fo:leader/>
</fo:block>
</xsl:template>
<xsl:template match="p">
<fo:block>
<xsl:apply-templates/>
</fo:block>
</xsl:template>
Ken, the <p> implementation of the Antenna House HTML2FO converter does
not work like in HTML Empty paragraphs are converted to empty blocks
which collapse.
Thanks for your help
Jan
COUTHURES Alain schrieb:
> Hi Jan,
>
> Don't you need a specific template with match="p[not(node())]"
> priority="1"
>
> Cheers,
>
> Alain Couthures
> <agenceXML>
> http://www.agencexml.com
>> Hi,
>> is there an elegant way to create empty lines using block elements?
>>
>> My template is quite simple:
>>
>> <xsl:template match="p">
>> <fo:block>
>> <xsl:apply-templates/>
>> </fo:block>
>> </xsl:template>
>>
>> How do I tell FO to create a new line for each <p/>?
>> Cheers
>> Jan
>>
>> --~------------------------------------------------------------------
>> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>> To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
>> or e-mail: <mailto:xsl-list-unsubscribe@l...>
>> --~--
>>
>>
>
>
> --~------------------------------------------------------------------
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
> To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
> or e-mail: <mailto:xsl-list-unsubscribe@l...>
> --~--
>
>
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe@l...>
--~--
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
