Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Sep 2002
    Posts
    23
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    Newcastle, England
    Posts
    178
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  • #3
    New Coder
    Join Date
    Sep 2002
    Posts
    23
    Thanks
    0
    Thanked 0 Times in 0 Posts
    sorry, i made a mistake, it won't have error. thanks for telling me. i'm bad expressing myself

  • #4
    New Coder
    Join Date
    Jun 2002
    Location
    NYC
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Last edited by edgework; 09-13-2002 at 02:08 PM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •