Small xml:if problem

Discussion in 'XML' started by ina, Jun 9, 2006.

  1. ina

    ina Guest

    Good Morning,

    My Name is Ina and I have a problem if a test in the xsl file, I am
    newbie in XML transformation :)

    So this is a piece of my code xml. Contracts nodes I have fund contract
    <garage>
    <Contracts>
    <Car>
    <Contracts>
    <CtoF_Contract From_Date="" To_Date="">
    <CtoF_Contract_Type Type="Administrator"/>
    <Company_FID>Company_204736</Company_FID>
    </CtoF_Contract>
    <CtoF_Contract From_Date="" To_Date="">
    <CtoF_Contract_Type Type="Firm"/>
    <Company_FID>Company_204785</Company_FID>
    </Contracts>
    <Car>

    <Companies>
    <Company_FID>Company_204736</Company_FID>
    <Company_Legal_Name From_Date="" To_Date="">
    <Company_Name>Company A</Company_Name>
    <Legal_Type>Unknown</Legal_Type>
    </Company_Legal_Name>
    <Legal_Domicile >
    <Country>USA</Country>
    </Legal_Domicile>
    </Company>
    <Company_FID>Company_204785</Company_FID>
    <Company_Legal_Name From_Date="" To_Date="">
    <Company_Name>Company B</Company_Name>
    <Legal_Type>Unknown</Legal_Type>
    </Company_Legal_Name>
    <Legal_Domicile >
    <Country>GB</Country>
    </Legal_Domicile>
    </Company>
    </Companies>
    </garage>


    file.xsl DOESN'T WORK
    <Company>
    <xsl:if test="Contracts/CtoF_Contract/Company_FID =
    .../../Companies/Company/Company_FID">
    <xsl:value-of
    select="../../Companies/Company/Company_Legal_Name/Company_Name"/>
    </xsl:if>
    </Company>


    I would like to obtain
    <garage>
    <carName>
    <Administrator>company A</Administrator>
    <domicile>USA</domicile>
    <Firm>company B</Firm>
    <domicile>GB</domicile>
    </garage>

    Any suggestions?

    Ina
    ina, Jun 9, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jimmy Zhang
    Replies:
    1
    Views:
    304
    Enrique
    May 19, 2004
  2. Simon Harvey
    Replies:
    12
    Views:
    635
    Chris Barber
    Jul 30, 2003
  3. =?Utf-8?B?Q2hpV2hpdGVTb3g=?=

    small problem with ASP 1.1 version problem in IIS6

    =?Utf-8?B?Q2hpV2hpdGVTb3g=?=, Apr 2, 2007, in forum: ASP .Net
    Replies:
    6
    Views:
    382
    =?Utf-8?B?Q2hpV2hpdGVTb3g=?=
    Apr 2, 2007
  4. Singeo
    Replies:
    3
    Views:
    367
    Singeo
    May 27, 2008
  5. Erik Wasser
    Replies:
    5
    Views:
    451
    Peter J. Holzer
    Mar 5, 2006
Loading...

Share This Page