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. XSL Question Please Help Sorry I'm still learning

XSL Question Please Help Sorry I'm still learning

Scheduled Pinned Locked Moved XML / XSL
xmlhelpcomquestionlearning
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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    I would hope anyone can help me understand a certain problem I am currently having with a small piece of code. I would be very grateful if anyone could give me some ideas on how I could structure my XSL template to produce an output similar to the following table given the attached Test.xml source. I seem to be using for-each and the priority attribute but cant pinpoint where to place it correctly. View the Test.xml source at : http://www.angelfire.com/pro/atbgmxsl/Test.xml Required result in table format is : ASXCode Company Name Company Statistics/Interim Dates Annual Balance Sheet/Cash RWS Rothbury Wines Limited -- 99,000 OCO Oriel Communications Limited 12/2002 97,065 NRL Newland Resources Limited 12/2002 95,143 MCL M2M Corporation Limited 12/2002 95,033 SUP Supersorb Environment NL 12/2002 94,328

    N 1 Reply Last reply
    0
    • L Lost User

      I would hope anyone can help me understand a certain problem I am currently having with a small piece of code. I would be very grateful if anyone could give me some ideas on how I could structure my XSL template to produce an output similar to the following table given the attached Test.xml source. I seem to be using for-each and the priority attribute but cant pinpoint where to place it correctly. View the Test.xml source at : http://www.angelfire.com/pro/atbgmxsl/Test.xml Required result in table format is : ASXCode Company Name Company Statistics/Interim Dates Annual Balance Sheet/Cash RWS Rothbury Wines Limited -- 99,000 OCO Oriel Communications Limited 12/2002 97,065 NRL Newland Resources Limited 12/2002 95,143 MCL M2M Corporation Limited 12/2002 95,033 SUP Supersorb Environment NL 12/2002 94,328

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

      Just a quick shot at it <table> <xsl:for-each select="root/ResultSet/Record"> <tr> <xsl:for-each select="Column"> <td><xsl:value-of select="." /></td> </xsl:for-each> </tr> </xsl:for-each> </table>

      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