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
| Current Thread |
- IDENT
- Maribel - Mon, 5 Feb 2001 10:42:40 -0500 (EST) <=
|
|