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. Newbie question - can't figure out xsl

Newbie question - can't figure out xsl

Scheduled Pinned Locked Moved XML / XSL
xmlquestionhtmlcsshelp
3 Posts 3 Posters 4 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.
  • A Offline
    A Offline
    ajester6
    wrote on last edited by
    #1

    I've tried to figure this out myself.   I want to import XML data from webpage, strip the data from the 'report' div not the 'menu' div, and save as an M$ Office XML 2003 spreadsheet. I've looked at a couple of tutorials w3c and devguru, but to no avail! If I could get it, my worthless code at the bottom of this post, to display the cell data and stop 'up chucking' (displaying) the original xml, I might get somewhere! Please help!! Thanks in advance for any help to get me started. Clueless. My source is a webpage which I download with wget looks like this: <code> <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head><link rel="stylesheet" type="text/css" href="style/body.css" /> <link rel="stylesheet" type="text/css" href="style/menu.css" /><link rel="stylesheet" type="text/css" href="style/report.css" /> <meta http-equiv="Content-type" content="text/html;charset=UTF-8" /><title>Report</title></head> <body><div id="menu"> <ul id="nav"><li><a href="?d=dia">dia</a></li> <li class="activelink"> <li><a href="?d=oth">Other</a></li> <li><a href="?d=all">All</a></li> </li></ul></div> <div id="report"><table id="filter"><tr><td><b>Showing all systems</b></td></tr><tr><td><hr /></td></tr> <tr><td>Show only systems verifed within past: <a href="/ci/rep_browsers1.asp?d=dia&amp;z=1">1</a>|<a href="/ci/rep_browsers1.asp?d=dia&amp;z=3">3</a>|<a href="/ci/rep_browsers1.asp?d=dia&amp;z=7">5</a>|<a href="/ci/rep_browsers1.asp?d=dia&amp;z=7">7</a>|<a href="/ci/rep_browsers1.asp?d=dia&amp;z=14">14</a>|<a href="/ci/rep_browsers1

    N L 2 Replies Last reply
    0
    • A ajester6

      I've tried to figure this out myself.   I want to import XML data from webpage, strip the data from the 'report' div not the 'menu' div, and save as an M$ Office XML 2003 spreadsheet. I've looked at a couple of tutorials w3c and devguru, but to no avail! If I could get it, my worthless code at the bottom of this post, to display the cell data and stop 'up chucking' (displaying) the original xml, I might get somewhere! Please help!! Thanks in advance for any help to get me started. Clueless. My source is a webpage which I download with wget looks like this: <code> <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head><link rel="stylesheet" type="text/css" href="style/body.css" /> <link rel="stylesheet" type="text/css" href="style/menu.css" /><link rel="stylesheet" type="text/css" href="style/report.css" /> <meta http-equiv="Content-type" content="text/html;charset=UTF-8" /><title>Report</title></head> <body><div id="menu"> <ul id="nav"><li><a href="?d=dia">dia</a></li> <li class="activelink"> <li><a href="?d=oth">Other</a></li> <li><a href="?d=all">All</a></li> </li></ul></div> <div id="report"><table id="filter"><tr><td><b>Showing all systems</b></td></tr><tr><td><hr /></td></tr> <tr><td>Show only systems verifed within past: <a href="/ci/rep_browsers1.asp?d=dia&amp;z=1">1</a>|<a href="/ci/rep_browsers1.asp?d=dia&amp;z=3">3</a>|<a href="/ci/rep_browsers1.asp?d=dia&amp;z=7">5</a>|<a href="/ci/rep_browsers1.asp?d=dia&amp;z=7">7</a>|<a href="/ci/rep_browsers1.asp?d=dia&amp;z=14">14</a>|<a href="/ci/rep_browsers1

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      No one is going to look at this mess of unformatted garbage.


      I know the language. I've read a book. - _Madmatt

      1 Reply Last reply
      0
      • A ajester6

        I've tried to figure this out myself.   I want to import XML data from webpage, strip the data from the 'report' div not the 'menu' div, and save as an M$ Office XML 2003 spreadsheet. I've looked at a couple of tutorials w3c and devguru, but to no avail! If I could get it, my worthless code at the bottom of this post, to display the cell data and stop 'up chucking' (displaying) the original xml, I might get somewhere! Please help!! Thanks in advance for any help to get me started. Clueless. My source is a webpage which I download with wget looks like this: <code> <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head><link rel="stylesheet" type="text/css" href="style/body.css" /> <link rel="stylesheet" type="text/css" href="style/menu.css" /><link rel="stylesheet" type="text/css" href="style/report.css" /> <meta http-equiv="Content-type" content="text/html;charset=UTF-8" /><title>Report</title></head> <body><div id="menu"> <ul id="nav"><li><a href="?d=dia">dia</a></li> <li class="activelink"> <li><a href="?d=oth">Other</a></li> <li><a href="?d=all">All</a></li> </li></ul></div> <div id="report"><table id="filter"><tr><td><b>Showing all systems</b></td></tr><tr><td><hr /></td></tr> <tr><td>Show only systems verifed within past: <a href="/ci/rep_browsers1.asp?d=dia&amp;z=1">1</a>|<a href="/ci/rep_browsers1.asp?d=dia&amp;z=3">3</a>|<a href="/ci/rep_browsers1.asp?d=dia&amp;z=7">5</a>|<a href="/ci/rep_browsers1.asp?d=dia&amp;z=7">7</a>|<a href="/ci/rep_browsers1.asp?d=dia&amp;z=14">14</a>|<a href="/ci/rep_browsers1

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Did you bother to preview this before you posted it, or read it afterwards? I assume not as it is unreadable. Please edit the content and place between <pre></pre> tags using the "code block" button at the top of the edit window.

        MVP 2010 - are they mad?

        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