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

RE: Multiple elements condition

Subject: RE: Multiple elements condition
From: christoph.naber@xxxxxxxxxxxxxxxxxxx
Date: Tue, 28 Aug 2007 11:32:04 +0200
RE:  Multiple elements condition
I'm sorry for giving you wrong advice! I'm going to be more attentive next
time.

Greetings Christoph

> I tried this, but it only gives me the first para occurance.
>
> -----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
>
> Hello Max,
>
> <xsl:template match="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">
>                <fo:character character="&#x25A1;"/> <xsl:value-of
> select="para"/>
>                   </xsl:when>
>             <xsl:otherwise>
>                <xsl:apply-templates/>
>             </xsl:otherwise>
>          </xsl:choose>
>       </fo:block>
>    </fo:block>
> </xsl:template>
>
> I just edited your stylesheet a very little bit. I think you just have
> to
> delete the "note" in count(note/para) because the active node is already
>
> "note". Should work right away, or I totaly missed the point.
>
> Greetings
> Christoph
>
>
>
>
> If you are not the intended addressee, please inform us immediately that
> you have received this e-mail by mistake and delete it. We thank you for
> your support.
>



If you are not the intended addressee, please inform us immediately that you
have received this e-mail by mistake and delete it. We thank you for your
support.

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.