|
Subject: Re: [xsl] Display more than one table in generic xslt - reg From: Martin Honnen <Martin.Honnen@xxxxxx> Date: Wed, 24 Mar 2010 13:04:00 +0100 |
The required HTML output is like....
<HTML><BODY> <Table> <TR><TD> <Table border="1"> <tr><td>SysID</td><td>WFDocID</td></tr> <tr><td>-2008080800041</td><td>0</td></tr> </Table> </TD></TR> <TR><TD> </TD></TR> <TR><TD> <Table border="1"> <tr><td>SysID</td><td>ParentSysID</td></tr> <tr><td>-2008080800045</td><td>-2008080800041</td></tr> <tr><td>-2008080800046</td><td>-2008080800041</td></tr> </Table> </TD></TR> </Table> </Body> </HTML>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0"><xsl:output method="html" indent="yes"/> <xsl:strip-space elements="*"/>
<xsl:key name="by-name"
match="/*/*"
use="concat('{', namespace-uri(), '}', local-name())"/> <xsl:template match="/*/*/*" mode="th">
<th>
<xsl:value-of select="local-name()"/>
</th>
</xsl:template> <xsl:template match="/*/*">
<tr>
<xsl:apply-templates/>
</tr>
</xsl:template> <xsl:template match="/*/*/*">
<td>
<xsl:value-of select="."/>
</td>
</xsl:template>Martin Honnen http://msmvps.com/blogs/martin_honnen/
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] Display more than one tab, Ramesh Kumar | Thread | Re: [xsl] Display more than one tab, Ramesh Kumar |
| [xsl] Debugging XSLT 2.0 with Saxon, Bartolomeo Nicolotti | Date | RE: [xsl] Debugging XSLT 2.0 with S, Michael Kay |
| Month |