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 ?
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 ?