[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: FW: Add comment from xml source

Subject: Re: FW: Add comment from xml source
From: Jon Gorman <jonathan.gorman@xxxxxxxxx>
Date: Thu, 7 Jul 2005 15:14:56 -0500
add comment
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.