Results 1 to 2 of 2
  1. #1
    Alan is offline Member
    Join Date
    May 2007
    Posts
    39
    Rep Power
    0

    Default vars and if sentences in XSL-FO

    I am trying to do an if sentence in a xsl-fo document:

    My xml is:

    Java Code:
    <Details>
    
                <Details>
    
                            <Name>Fred</Name>
    
                </Details>
    
                <Details>
    
                            <Name>Victor</Name>
    
                </Details>
    
                <Details>
    
                            <Name>Heather</Name>
    
                </Details>
    
                <Details>
    
                            <Name>Tony</Name>
    
                </Details>
    
    </Details>
    I want to write a table from <details> but I don't want to include <Details> en where the name is Tony.

    If I do something like that:


    Java Code:
     <xsl:if test=”<xsl:value-of select="Details/Details/Name"/> != Tony”>
    
    
    </xsl:if>
    It doesn't work
    can you help me?
    Last edited by Alan; 05-31-2007 at 02:35 PM.

  2. #2
    Marty is offline Member
    Join Date
    May 2007
    Posts
    38
    Rep Power
    0

    Default

    mmm I think that you have to do:
    <xsl:if test=”<xsl:value-of select="//Details/Details/ Name"/> != ‘Tony ”>
    anyway I recommend you ZVON.org - ZVON there are a lot of examples
    ;)

Similar Threads

  1. Replies: 1
    Last Post: 02-04-2008, 09:26 PM
  2. Creating random sentences
    By bluekswing in forum New To Java
    Replies: 4
    Last Post: 06-27-2007, 06:45 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •