XSLT - Creating Dynamic Grid with single XML -


i creating dynamic table(grid) using xslt,

i beginner in xslt, have asked question before here xslt - creating dynamic grid please refer it, on above question using 2 xml columns , rows , here trying 1 xml(rows).
can find xslt on above question 2 xml section.

xml data :

<tabledata>             <rows>         <row id="0" name="a" link-name="yes" hide-id="yes" sort-name="yes"/>         <row id="1" name="b" desc="some description" link-name="yes" hide-id="yes" sort-name="yes"/>         <row id="3" name="c" link-name="yes" hide-id="yes" sort-name="yes"/>     </rows> </tabledata> 

expected output:

<table border="1">     <tbody>         <tr>             <th>                 <a onclick="javascript:sortcolumn('item name')">item name</a>             </td>             <th>                 item description</td>         </tr>         <tr>             <td width="50%">                 <a onclick="javascript:opendifferentpage('a','0')">a</a>             </td>             <td width="50%"></td>         </tr>         <tr>             <td width="50%">b</td>             <td width="50%">some description</td>         </tr>         <tr>             <td width="50%">c</td>             <td width="50%"></td>         </tr>     </tbody> </table> 

i beginner in xslt,

i want check here if "link-name" attribute ="yes" need display data in between anchor tag(name).

i create many complex functionality on column. here can made template particular attributes of column used display on grid others attribute data purpose(column 15 depend on user selection, if user select 8 column display , must maintain order of attributes) ready create pre-defined template columns. possible me?

thank anticipation


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -