Subject: RE: How to extract comments only? From: John Greek <John.Greek@xxxxxxxxx> Date: Tue, 27 Jun 2000 09:23:22 -0700 |
Hello, Thanks for your contributions, Michael Kay and Mike Brown. Both of your solutions worked quite well. John -----Original Message----- From: Kay Michael [mailto:Michael.Kay@xxxxxxx] Sent: Tuesday, June 27, 2000 1:17 AM To: 'xsl-list@xxxxxxxxxxxxxxxx' Subject: RE: How to extract comments only? > I'm still new to XSLT, but have a need to > extract all comments (however deep) from an > XML file to another. Output should only > contain comments and nothing else <xsl:template match="/"> <xsl:copy-of select="//comment()"/> </xsl:template> Mike Kay XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: How to extract comments only?, Kay Michael | Thread | Re: How to put a page break in XSL?, RSuiter |
RE: Cutting strings short., Thorbjørn Ravn Ander | Date | Re: node()[last()] acts a little bi, David Carlisle |
Month |