Multiple XML files in XSLT

Here should go questions about transforming XML with XSLT and FOP.
Krishn60
Posts: 3
Joined: Wed Dec 24, 2008 7:01 pm

Multiple XML files in XSLT

Post 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.
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Re: Multiple XML files in XSLT

Post by george »

You can use the document function to access other files.

Regards,
George
George Cristian Bina
Post Reply