Level information for XML

Discussion in 'XML' started by gsoftwares@gmail.com, Dec 7, 2004.

  1. Guest

    HI Gurus,

    I have xml file in this format

    <hierarchy>
    <entity>
    <contents>
    <entity>
    </entity>
    </contents>
    </entity>
    <entity>
    <contents>
    <entity>
    </entity>
    </contents>
    </entity>
    </hierarchy>

    I want to have attribute level for all <entity> node
    like

    <entity level=1>
    <contents>
    <entity level=2>
    </entity>
    </contents>
    </entity>
    <entity level=1>
    <contents>
    <entity level=2>
    </entity>
    </contents>
    </entity>

    Can someone help to get this using xslt.

    thanks
    gbk
     
    , Dec 7, 2004
    #1
    1. Advertisements

  2. Joris Gillis Guest

    Joris Gillis, Dec 7, 2004
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    2
    Views:
    590
  2. =?Utf-8?B?Sm9l?=

    page-level vs control-level enableViewState

    =?Utf-8?B?Sm9l?=, Oct 26, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    3,204
    S. Justin Gengo
    Oct 26, 2005
  3. Replies:
    8
    Views:
    661
  4. mike
    Replies:
    1
    Views:
    1,909
    Martin Honnen
    Nov 20, 2004
  5. Replies:
    1
    Views:
    424
    Joris Gillis
    Dec 7, 2004
  6. Replies:
    2
    Views:
    3,696
    Pooja
    May 9, 2006
  7. =?Utf-8?B?SmVmZiBUdQ==?=

    Highlighting selected level 1 and level 2 menu items

    =?Utf-8?B?SmVmZiBUdQ==?=, Jan 27, 2007, in forum: ASP .Net
    Replies:
    1
    Views:
    714
    Thomas Hansen
    Jan 27, 2007
  8. pabbu
    Replies:
    8
    Views:
    994
    Marc Boyer
    Nov 7, 2005
Loading...