At 2007-08-27 08:21 -0700, you wrote:
It's not outputting anything.
That's because you didn't make the changes I suggested.
I tried changing it around (below), but all that gave me was the first
occurance of a para inside a note.
That's correct, because I suggested that you not use <xsl:value-of>
but that you change it to be an <xsl:for-each>.
<fo:block keep-together="always">
Above is something I missed the first time ... you probably want
keep-together.within-column="always" because otherwise your lines
will not wrap. This is a common mistake.
<fo:block text-align="center"
font="bold 11pt arial" space-before="3mm" >NOTE</fo:block>
<fo:block padding-left="30pt"
padding-right="30pt">
<xsl:choose>
<xsl:when
test="count(./para) > 1">
The "./" is unnecessary.
<fo:character character="□"/>□ <xsl:value-of
select="para"/>
Above you are duplicating the bullet.
-----Original Message-----
From: G. Ken Holman [mailto:gkholman(_at_)CraneSoftwrights(_dot_)com]
Sent: Monday, August 27, 2007 8:07 AM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] Multiple elements condition
...
<xsl:for-each select="para">
<fo:block start-indent="30pt" end-indent="30pt">
<xsl:text>□ </xsl:text>
<xsl:apply-templates/>
</fo:block>
</xsl:for-each>
...
<fo:block start-indent="30pt" end-indent="30pt">
<xsl:apply-templates/>
</fo:block>
Following my instructions, your stylesheet would look more like:
<fo:block keep-together.within-column="always">
<fo:block text-align="center"
font="bold 11pt arial" space-before="3mm" >NOTE</fo:block>
<xsl:choose>
<xsl:when test="count(para) > 1">
<xsl:for-each select="para">
<fo:block start-indent="30pt" end-indent="30pt">
<xsl:text>□ </xsl:text>
<xsl:apply-templates/>
</fo:block>
</xsl:for-each>
</xsl:when>
<xsl:otherwise>
<fo:block start-indent="30pt" end-indent="30pt">
<xsl:apply-templates/>
</fo:block>
</xsl:otherwise>
</xsl:choose>
</fo:block>
I hope this helps, but this is what I suggested last time and you
didn't follow it then.
. . . . . . . . . . . . . Ken
--
Upcoming public training: XSLT/XSL-FO Sep 10, UBL/code lists Oct 1
World-wide corporate, govt. & user group XML, XSL and UBL training
RSS feeds: publicly-available developer resources and training
G. Ken Holman mailto:gkholman(_at_)CraneSoftwrights(_dot_)com
Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/
Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995)
Male Cancer Awareness Jul'07 http://www.CraneSoftwrights.com/s/bc
Legal business disclaimers: http://www.CraneSoftwrights.com/legal
--~------------------------------------------------------------------
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(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--