xsl-list
[Top] [All Lists]

[xsl] Antwort: [xsl] Multiple elements condition

2007-08-27 08:12:01
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.

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

<Prev in Thread] Current Thread [Next in Thread>