[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Antwort: Multiple elements condition

Subject: RE: Antwort: Multiple elements condition
From: "Maxine Pensyl-Johnson" <Maxine.Pensyl-Johnson@xxxxxxx>
Date: Mon, 27 Aug 2007 08:40:56 -0700
RE:  Antwort:  Multiple elements condition
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:  Antwort:  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:  Antwort:  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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.