468,315 Members | 1,388 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,315 developers. It's quick & easy.

Small xml:if problem

ina
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

Jun 9 '06 #1
0 795

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Christian Schmidbauer | last post: by
1 post views Thread by Tjerk Wolterink | last post: by
reply views Thread by James Bright | last post: by
7 posts views Thread by Tim.D | last post: by
5 posts views Thread by ina | last post: by
9 posts views Thread by Sidraa | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by Teichintx | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.