I'm trying to produce a single style sheet (foo.xsl) that offers the
following functionality. I'm using IE 5.5. Any help would be greatly
appreciated.
Having a document:
<doc>
<ele name1="A1" name2="A2"/>
<ele name1="B1" name2="B2"/>
</doc>
processed through the style sheet (foo.xsl) produces:
<TABLE>
<TR>
<TH>name1</TH>
<TH>name2</TH>
</TR>
<TR>
<TD>A1</TD>
<TD>A2</TD>
</TR>
<TR>
<TD>B1</TD>
<TD>B2</TD>
</TR>
</TABLE>
And having a document:
<doc>
<ele name1="A1" name2="A2" name3="A3"/>
<ele name1="B1" name2="B2" name3="B3"/>
</doc>
processed through the same tyle sheet (foo.xsl) produces:
<TABLE>
<TR>
<TH>name1</TH>
<TH>name2</TH>
<TH>name3</TH>
</TR>
<TR>
<TD>A1</TD>
<TD>A2</TD>
<TD>A3</TD>
</TR>
<TR>
<TD>B1</TD>
<TD>B2</TD>
<TD>B3</TD>
</TR>
</TABLE>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|