Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. XML / XSL
  4. 2 xml used from the same hmtl page

2 xml used from the same hmtl page

Scheduled Pinned Locked Moved XML / XSL
xmlhelpquestionannouncement
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Russell
    wrote on last edited by
    #1

    I'm not so expert on xml... I have 2 xml in 2 different files. (They needs to remain on separate files). Is there a way to prepare a web page that uses the info from both files? I found the solution to apply a stylesheet to the first xml to manage the visulization, and I add a code similar to this into the xml to import there also the data from the other file.

    <?xml version="1.0" encoding="utf-8"?>
    <?xml-stylesheet type="text/xsl" href="MyStylesheet.xsl"?>
    <!DOCTYPE Document [
    <!ENTITY TheOtherXML SYSTEM "File2.xml">
    ]>
    <MyXML>
    <

    then later I included the other file with a command like:

    &TheOtherXML;

    ...but this way has the problem that works only with IE (not firefox). Any other way to obtain a similar result?


    Russell

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups