xsl-list
[Top] [All Lists]

Re: FW: Add comment from xml source

2005-07-07 13:14:56
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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>