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 transformation of child nodes

XSL transformation of child nodes

Scheduled Pinned Locked Moved XML / XSL
xml
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
    rana74
    wrote on last edited by
    #1

    I have an xml similar to this : UserName.SWEUserName INPUT deactivate LOGO ................................... .................................. .......................... ......................... I need to transform it to the following: ....... ............ i.e all child nodes under the 'event' node get transformed to the attributes of the property node(node name as 'name' attribute and value as 'string_value'). Moreover , the number and name of child nodes under the different 'event' nodes can vary. How can we write a XSL template to convert all chiild nodes under 'event' (however much there may be) into the desired format.

    G 1 Reply Last reply
    0
    • R rana74

      I have an xml similar to this : UserName.SWEUserName INPUT deactivate LOGO ................................... .................................. .......................... ......................... I need to transform it to the following: ....... ............ i.e all child nodes under the 'event' node get transformed to the attributes of the property node(node name as 'name' attribute and value as 'string_value'). Moreover , the number and name of child nodes under the different 'event' nodes can vary. How can we write a XSL template to convert all chiild nodes under 'event' (however much there may be) into the desired format.

      G Offline
      G Offline
      George L Jackson
      wrote on last edited by
      #2

      "We make a living by what we get, we make a life by what we give." --Winston Churchill

      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