how to compare xml elemets in xslt

Here should go questions about transforming XML with XSLT and FOP.
suji
Posts: 3

how to compare xml elemets in xslt

Thu Feb 28, 2008 7:05 pm

hi all,
here is xml file.....
<root>
<Xmltype>
<owner NAME="Legal Entity 1"></owner>
<LegalEntity NAME="Legal Entity 1"></LegalEntity>
<lob NAME="Line Of Business 1"></lob>
<Formula>A</Formula>
<Formula>B</Formula>
</Xmltype>
<Xmltype>
<owner NAME="Legal Entity 1"></owner>
<LegalEntity NAME="Legal Entity 1"></LegalEntity>
<lob NAME="Line Of Business 1"></lob>
<Formula>c</Formula>
<Formula>D</Formula>
<Formula>B</Formula>
</Xmltype>
<Xmltype>
<owner NAME="Legal Entity 1"></owner>
<LegalEntity NAME="Legal Entity 1"></LegalEntity>
<lob NAME="Line Of Business 2"></lob>
<Formula>A</Formula>
</Xmltype>
<Xmltype>
<owner NAME="Legal Entity 1"></owner>
<LegalEntity NAME="Legal Entity 1"></LegalEntity>
<lob NAME="Line Of Business 2"></lob>
<Formula >B</Formula>
</Xmltype>
<Xmltype>
<owner NAME="Legal Entity 1"></owner>
<LegalEntity NAME="Legal Entity 1"></LegalEntity>
<lob NAME="Line Of Business 1"></lob>
<Formula>F</Formula>
</Xmltype>

</root>

I need XSLT for this.........
output should obtain like in HTML by using XSLT:

LegalEntityOwner:Legal Entity 1
LegalEntityName:LegalEntity
LobName:Line Of Business 1
Formula:A
Formula:B
Formula:C
Formula:D
Formula:B
Formula:F

LegalEntityOwner:Legal Entity 1
LegalEntityName:LegalEntity
LobName:Line Of Business 2
Formula:A
Formula:B


pleas can any one help!!!! :(

Return to “XSLT and FOP”

Who is online

Users browsing this forum: No registered users and 3 guests