Subject: Re: [xsl] Removing Newlines From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Tue, 11 Jun 2002 17:55:05 -0400 |
I need to remove newlines from the <o><o/> element in the following XML:
<Synopsis> <c>mmerge</c> <o>[-n] [-to <var>tag</var>|<var>rev</var>] [-from <var>tag</var>|<var>rev</var>] [-v[<var>N</var>]] [-mytag] [-noeditor] [mput_options] <var>file</var>...</o>
<c>mmerge</c> <o>[-n] [-to <var>tag</var>|<var>rev</var>] [-v[<var>N</var>]] [-noeditor] [mput_options] -j <var>job@cluster</var> [...]</o> </Synopsis>
My XSLT has a strip-space declaration for all of the Synopsis element, which I'm assuming covers child elements too?
<xsl:template match="text()"> <xsl:value-of select="normalize-space(.)"/> </xsl:template>
I hope that helps, Wendell
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Removing Newlines, Greg Kushmerek | Thread | Re: [xsl] Removing Newlines, David Carlisle |
RE: [xsl] Grouping and Sorting on v, Wendell Piez | Date | [xsl] Name function and namespaces , Snow, Corey |
Month |