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. XML document transformation code for Mozilla, Safari, etc...

XML document transformation code for Mozilla, Safari, etc...

Scheduled Pinned Locked Moved XML / XSL
xmlregexhelp
2 Posts 2 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
    rustyamigo
    wrote on last edited by
    #1

    Hi, can anyone help with me this as I'm relatively new with XML programming. I have code that's running perfectly in IE 7 but I'm no able to run it in other browser say Mozilla Firefox 3.0. Could you please let me know the equivalent code for transformation of XML document. I have pasted the code I have used for IE 7. Please help!!! Home.xsl: <xsl:template match="root/HOMEPAGE" xmlns:xsl="#unknown"> TEST </xsl:template> Home.xml : <root> <homepage> <detail></detail> </homepage> </root> Here is the code which has been used for I.E I want an equivalent code for Mozilla etc var objXMLHome = new ActiveXObject("Msxml2.DOMDocument"); objXMLHome.async = false; objXMLHome.resolveExternals = false; objXMLHome.setProperty("SelectionLanguage", "XPath") objXMLHome.load("XML/Home.xml"); var objXSLHome = new ActiveXObject("Microsoft.XMLDOM") objXSLHome.async = false objXSLHome.load("XSL/Home.xsl"); document.all("divHEADER").innerHTML = objXMLHome.selectSingleNode("//HOMEPAGE").transformNode(objXSLHome.documentElement);

    L 1 Reply Last reply
    0
    • R rustyamigo

      Hi, can anyone help with me this as I'm relatively new with XML programming. I have code that's running perfectly in IE 7 but I'm no able to run it in other browser say Mozilla Firefox 3.0. Could you please let me know the equivalent code for transformation of XML document. I have pasted the code I have used for IE 7. Please help!!! Home.xsl: <xsl:template match="root/HOMEPAGE" xmlns:xsl="#unknown"> TEST </xsl:template> Home.xml : <root> <homepage> <detail></detail> </homepage> </root> Here is the code which has been used for I.E I want an equivalent code for Mozilla etc var objXMLHome = new ActiveXObject("Msxml2.DOMDocument"); objXMLHome.async = false; objXMLHome.resolveExternals = false; objXMLHome.setProperty("SelectionLanguage", "XPath") objXMLHome.load("XML/Home.xml"); var objXSLHome = new ActiveXObject("Microsoft.XMLDOM") objXSLHome.async = false objXSLHome.load("XSL/Home.xsl"); document.all("divHEADER").innerHTML = objXMLHome.selectSingleNode("//HOMEPAGE").transformNode(objXSLHome.documentElement);

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      rustyamigo wrote:

      Mozilla Firefox 3.0. Could you please let me know the equivalent code for transformation of XML document.

      Sure, see if this[^] helps Good luck

      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