xsl-list
[Top] [All Lists]

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

2007-08-27 08:41:57
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(_at_)CraneSoftwrights(_dot_)com] 
Sent: Monday, August 27, 2007 8:27 AM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
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(_dot_)naber(_at_)daimlerchrysler(_dot_)com
[mailto:christoph(_dot_)naber(_at_)daimlerchrysler(_dot_)com]
Sent: Monday, August 27, 2007 8:11 AM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
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(_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>
--~--

--~------------------------------------------------------------------
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>
--~--