Re: FW: [xsl]Add comment from xml source

Subject: Re: FW: [xsl]Add comment from xml source
From: Jon Gorman <jonathan.gorman@xxxxxxxxx>
Date: Thu, 7 Jul 2005 15:14:56 -0500
Perhaps you should post the stylesheet where you actually try to get
the comments since at least with Saxon 6.5.4 it does get comments
which means most likely 6.5.3 does as well.

There will be a lot of typos with this code, but the following should
work (although it should really be cleaned up even further and you'll
probably need to do something to prevent the two titles from messing
stuff up).

<xsl:template match="/">
 <html>
 <body>
  <table>
 <tr>
 <th>Item</th>
 <th>ID</th>
 </tr>
 <xsl:for-each select="document/para0">
<tr>
<xsl:apply-templates />
</tr>
</xsl:for-each>
 </table>
 </body>
 </html>
 </xsl:template>

<xsl:template match="title | @id | comment()">
<td>
 <xsl:value-of select="." />
 </td>
</xsl:template>




Jon Gorman

Current Thread