This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Problem with getting values from two files
- From: Mukul dot Mudgal at etindia dot com
- To: xsl-list at lists dot mulberrytech dot com
- Date: Fri, 3 May 2002 11:14:16 +0530
- Subject: [xsl] Problem with getting values from two files
- Reply-to: xsl-list at lists dot mulberrytech dot com
Is is possible by XSLT
File A.
<Name value="Johan"/>
<Address Value="JohanCompositAddress" Type="CompositeAddress"/>
File B.
<CompositeAddress>
<JohanCompositeAddress>
<Address Value ="NewYork"/>
<Address Value ="Paris"/>
</JohanCompositeAddress>
</CompositeAddress>
Resultant File.
<UserName Value="Johan"/>
<UserAddres>
<Address Value="NewYork"/>
<Address Value="Paris"/>
</UserAddres>
Here I want to get the result by the Single XSL file...What I'm supposing
..the required XSL should do is
1. Check the type attribute of Address node of File A.
2. If it is CompositeAddress..then it should take the value (ie
JohanCompositAddress) attribute of the address node of File A and check it
...whether it is present in File B.
3. And if it is present in file B then fetch out all the address against
<JohanCompositeAddres> and show it in the resultant file.
Thanks
Mukul
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list