create dynamic table from internal node

E

Ex-Em-El

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 ?
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,528
Members
45,000
Latest member
MurrayKeync

Latest Threads

Top