Helpful Information
 
 
Category: XML
XSL to link to different XML

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

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

sorry, i made a mistake, it won't have error. thanks for telling me. i'm bad expressing myself










privacy (GDPR)