This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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">
    &lt;B&gt;
    <xsl:value-of select="."/>
    &lt;/B&gt;<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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]