PDA

View Full Version : XSL to link to different XML


flyclassic
09-12-2002, 11:05 AM
Anybody has example or explanation to tell me how do I link a XSL to a different XML file with different elements?(for eg. I have a XSL file and 2 different XML file. Each XML has its own Element, which is different for eg. the first.xml has <title></title> whereas the second.xml has no <title> but has a different like <head></head>.
Is there any way to allow my XSL file to be able to detect the different elements and then display.
If I use for-each select="title"
then my second xml do not have title it will appear error..
i want dynamic , any example or help?

I hope you understand. I've try to express the best myself

mpjbrennan
09-12-2002, 11:21 AM
Are you sure that an error will be displayed if the xml file does not contain a specified element? I thought it would just be ignored.

patrick

flyclassic
09-12-2002, 01:41 PM
sorry, i made a mistake, it won't have error. thanks for telling me. i'm bad expressing myself

edgework
09-13-2002, 03:02 PM