Subject: Re: [xsl] Passing xml nodes to a function From: David Carlisle <davidc@xxxxxxxxx> Date: Thu, 10 Aug 2006 17:00:01 +0100 |
> This is the complete XML. The code that I posted last time works on that for me: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output indent="yes"/> <xsl:template match="/"> <table style="position:relative; left:30px;"> <xsl:apply-templates select=".//response/*/response/*" mode="table"/> </table> </xsl:template> <xsl:template match="*" mode="table"> <tr> <td><xsl:value-of select="name()"/></td> <xsl:if test="not(*)"><td><xsl:value-of select="."/></td></xsl:if> </tr> <xsl:apply-templates mode="table" select="*"/> </xsl:template> </xsl:stylesheet> $ saxon resp.xml resp.xsl <?xml version="1.0" encoding="utf-8"?> <table style="position:relative; left:30px;"> <tr> <td>client</td> </tr> <tr> <td>welcomeName</td> <td>Joe</td> </tr> <tr> <td>title</td> <td>Mrs</td> </tr> <tr> <td>name</td> </tr> <tr> <td>firstName</td> <td>JEANETTE</td> </tr> <tr> <td>surname</td> <td>CHANDLER</td> </tr>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Passing xml nodes to a fu, Bansal, Rabinder | Thread | [xsl] boolean variables, Robin Harvey |
Re: [xsl] xsl:sequence, tom tom | Date | Re: [xsl] xsl:sequence, David Carlisle |
Month |