hi there
I have two xml files and would like to generate a text file. The logic is
first.xml
<?xml version="1.0"?>
<source>
<object partid ="4" name = "def" price = "3000"/>
<object partid ="5" name = "jkl" price = "130"/>
<object partid ="1" name = "abc1" price = "0"/>
<object partid ="2" name = "def" price = "430"/>
<object partid ="3" name = "abc" price = "350"/>
<object partid ="4" name = "abc" price = "230"/>
</source>
-------------------second.xml------------------------------
<?xml version="1.0"?>
<order>
<attribute1 name= "price"/>
<attribute1 name= "name"/>
<attribute1 name= "partid"/>
</order>
______________________________________________________________
Now I want to write an xslt which will output the value of each attribute of the element object but in the order as specified by the second.xml...For example in this particular case...
the output should be ...
3000, def, 4
130, jkl, 5,
etc
Any ideas/help.
I have two xml files and would like to generate a text file. The logic is
first.xml
<?xml version="1.0"?>
<source>
<object partid ="4" name = "def" price = "3000"/>
<object partid ="5" name = "jkl" price = "130"/>
<object partid ="1" name = "abc1" price = "0"/>
<object partid ="2" name = "def" price = "430"/>
<object partid ="3" name = "abc" price = "350"/>
<object partid ="4" name = "abc" price = "230"/>
</source>
-------------------second.xml------------------------------
<?xml version="1.0"?>
<order>
<attribute1 name= "price"/>
<attribute1 name= "name"/>
<attribute1 name= "partid"/>
</order>
______________________________________________________________
Now I want to write an xslt which will output the value of each attribute of the element object but in the order as specified by the second.xml...For example in this particular case...
the output should be ...
3000, def, 4
130, jkl, 5,
etc
Any ideas/help.