RE: [xsl] Antwort: [xsl] Multiple elements condition

Subject: RE: [xsl] Antwort: [xsl] Multiple elements condition
From: "Maxine Pensyl-Johnson" <Maxine.Pensyl-Johnson@xxxxxxx>
Date: Mon, 27 Aug 2007 08:40:56 -0700
I changed the code as you suggested. I now get all three paras but none
of them are bulleted. Below is the code I am using.

<xsl:for-each select="note">
				<fo:block keep-together="always">
					<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">

<xsl:for-each select="para">

<fo:block start-indent="30pt" end-indent="30pt">

<xsl:text>&#x25a1; </xsl:text>

<xsl:apply-templates/>

</fo:block>

</xsl:for-each>
							</xsl:when>
							<xsl:otherwise>

<xsl:apply-templates/>
							</xsl:otherwise>
						</xsl:choose>
					</fo:block>
				</fo:block>
		</xsl:for-each>

Output:
1
2
3

Desired Output:
* 1
* 2
* 3



-----Original Message-----
From: G. Ken Holman [mailto:gkholman@xxxxxxxxxxxxxxxxxxxx]
Sent: Monday, August 27, 2007 8:27 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE: [xsl] Antwort: [xsl] Multiple elements condition

At 2007-08-27 08:24 -0700, Maxine Pensyl-Johnson wrote:
>I tried this, but it only gives me the first para occurance.

That's correct, because <xsl:value-of/> acts on only the first member
of the set of nodes.  This is why I suggested you use an
<xsl:for-each> in my message.

. . . . . . . Ken

>-----Original Message-----
>From: christoph.naber@xxxxxxxxxxxxxxxxxxx
>[mailto:christoph.naber@xxxxxxxxxxxxxxxxxxx]
>Sent: Monday, August 27, 2007 8:11 AM
>To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
>Subject: [xsl] Antwort: [xsl] Multiple elements condition
>...
>             <xsl:when test="count(para) > 1">
>                <fo:character character="&#x25A1;"/> <xsl:value-of
>select="para"/>



--
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@xxxxxxxxxxxxxxxxxxxx
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

Current Thread