Subject: Re: [xsl] Keeping Text Together From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Mon, 14 Jun 2010 21:16:14 -0400 |
Thanks for taking the time to response to my post. Yes, I have tried using <block keep-together.within-column="always"> and the result is the same as detailed below.
Here is how the "<br>" element is handled:
<!--=======+Line break (br) template+=======--> <xsl:template match="br"> <fo:block break-after="auto"> <xsl:choose> <xsl:when test="parent::productname"> <fo:block keep-together.within-column="always"> <xsl:apply-templates/> </fo:block> </xsl:when> <xsl:otherwise> <xsl:apply-templates/> </xsl:otherwise> </xsl:choose> </fo:block> </xsl:template>
<xsl:template match="br"> <fo:block/> </xsl:template>
-- XSLT/XQuery training: after http://XMLPrague.cz 2011-03-28/04-01 Vote for your XML training: http://www.CraneSoftwrights.com/s/i/ Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Male Cancer Awareness Nov'07 http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Keeping Text Together, siarom egrub | Thread | [xsl] ASPX generation, Vladimir Nesterovsky |
Re: [xsl] Keeping Text Together, siarom egrub | Date | Re: [xsl] ASPX generation, Vladimir Nesterovsky |
Month |