|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] IDENT
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








