Thanks for the tips, David.
I tried the following template, but the transformed document retains
the line breaks FrameMaker inserted in the original file.
<xsl:template match="text()">
<xsl:value-of select="normalize-space(.)"/>
<xsl:value-of select="translate(., '

', ' ')" />
</xsl:template>
Does anyone have any other suggestions?
Thanks,
Mark
On 9/9/06, David Carlisle <davidc(_at_)nag(_dot_)co(_dot_)uk> wrote:
you don't appear to apply normalize-space anywhere, simplest being
something like
changing
<xsl:template match="text()[normalize-space(.)='']"/>
to
<xsl:template match="text()">
<xsl:value-of select="normalize-space(.)"/>
</xsl:template>
or you might (or might not) want to re-insert a leading or trailing
space as shown in teh code fragments at DaveP's site that you quoted.
David
--
Mark Peters
Senior Technical Writer
Saba Software
--~------------------------------------------------------------------
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>
--~--