|
Subject: [xsl] IDENT From: Maribel <miperez@xxxxxxxxxx> Date: Mon, 05 Feb 2001 16:40:11 +0100 |
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 |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] ANN: Xalan-Java 2.0 is availa, David_Marston | Thread | Re: [xsl] IDENT, Jeni Tennison |
| Re: [xsl] Detecting presence of att, Sebastian Rahtz | Date | RE: [xsl] Can I parameterise encodi, Michael Kay |
| Month |