Page 1 of 1

Multiple XML files in XSLT

Posted: Fri Jan 09, 2009 1:00 am
by Krishn60
Hi

My apologies ahead. I know, it is wierd but I have nowhere to go. I am new to XSLT and am given a task that is next to impossible for me.

I need some help from expertise. Any help in this is of great help to me.

I have 8 XML files. I need to extract only certain elements(Value) and form a stream of text file(say a record). The files linking are some what like this.

Field (level 4 element 2) of File 1 is the key to read File 2 (Field (Level 2 element 4))

Field (level 2 element 3) of File 2 is the key to read File 3 (Field (Level 1 element 3)

.... so on and so forth.

Is there a way to read all these files and extract the relevant data... say (File 1, level 1, Element2), (File 1, Level 4, Element9), (File2, Level 3, Element 1), (File 1, Level 2, Element 6)

Kindly provide me a logic and if possible a sample code with above stated 3 files.

Thanks a ton

Krishnan.

Re: Multiple XML files in XSLT

Posted: Fri Jan 09, 2009 9:35 am
by george
You can use the document function to access other files.

Regards,
George