This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
IDENT
- To: "xsl-list at lists dot mulberrytech dot com" <xsl-list at lists dot mulberrytech dot com>
- Subject: [xsl] IDENT
- From: Maribel <miperez at qarana dot com>
- Date: Mon, 05 Feb 2001 16:40:11 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
Hi,
I'm transforming a HTML file to a text file with xsl, and I want to
obtain a plain text, without lines feeds. How I can obtain it?
It's a IDENT problem?
Thanks.
Maribel
EXAMPLE:
......
<xsl:output indent="no" method="text"/>
<xsl:template match="PRE">
<xsl:apply-templates select="text()|B" mode="special"/>
</xsl:template>
<xsl:template match="B" mode="special">
<B>
<xsl:value-of select="."/>
</B><xsl:text> </xsl:text>
</xsl:template>
<xsl:template match="text()" mode="special">
<xsl:copy>
<xsl:value-of select="."/>
</xsl:copy>
</xsl:template>
..................
IN HTML:
<PRE>
public int <B>x</B></PRE>
OUT TEXT:
public int
<B>
x
</B>
(I WANT: public int <B> x </B>)
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list