create dynamic table from internal node

Discussion in 'XML' started by Ex-Em-El, Jul 14, 2004.

  1. Ex-Em-El

    Ex-Em-El Guest

    let say i have this xml file :

    xml:

    <?xml version="1.0" standalone="yes"?>
    <aaa>
    <ppp>
    <po>
    <co>c</co>
    <do>int</do>
    <we>1</we>
    </po>
    </ppp>
    <bbb>
    <bn>
    <yu>20</yu>
    <gh>1</gh>
    <c1>6</c1>
    <c2>6</c2>
    <c3>6</c3>
    </bn>
    </bbb>
    <fy>
    <pc>
    <dk>
    <er>1</er>
    <c1>2</c1>
    <c2>6</c2>
    <c3>3</c3>
    </dk>
    <dk>
    <er>1</er>
    <c1>5</c1>
    <c2>2</c2>
    <c3>3</c3>
    </dk>
    </pc>
    <pc>
    <dk>
    <er>2</er>
    <c1>2</c1>
    <c2>2</c2>
    <c3>8</c3>
    </dk>
    <dk>
    <er>2</er>
    <c1>2</c1>
    <c2>2</c2>
    <c3>0</c3>
    </dk>
    </pc>
    </fy>
    </aaa>

    and i want to create a dynamic table in xsl of the (without using the
    node name directly like
    <th>er</th>
    <th>c1</th>
    <th>c2</th>
    <th>c3</th> )

    this column (of the first dk node) will be the only column in the
    table
    something like <xsl:for-each select="dk/*" ......
    how can i do it ?
    how can i say stop after the first node to create the table header and
    afetr to get the node value ?
    Ex-Em-El, Jul 14, 2004
    #1
    1. Advertising

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. wolf
    Replies:
    0
    Views:
    552
  2. Replies:
    0
    Views:
    1,450
  3. Replies:
    0
    Views:
    372
  4. Ralf Wahner
    Replies:
    2
    Views:
    2,404
    Ralf Wahner
    Jul 15, 2003
  5. Tjerk Wolterink
    Replies:
    2
    Views:
    1,425
    Dimitre Novatchev
    Aug 24, 2006
Loading...

Share This Page