This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Recursiveness
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: Recursiveness
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Wed, 7 Jun 2000 10:00:26 +0100
- Reply-To: xsl-list at mulberrytech dot com
> How can i only get the text from the current node without the
> children ?
Add a template rule:
<xsl:template match="text()">
<VW_TekstInspring3><xsl:value-of select="."/></VW_TekstInspring3>
</xsl:template>
Mike Kay
<
>
>
> I have to process this XML
> <vergunning>
> <overwegingen>
> <kop>A Header text</kop>
> <vereiste>
> <kop>An other header text</kop>
> normal text
> <kop>thirdheader text</kop>
> second normal text
> </vereiste>
> </overwegingen>
> </vergunning>
>
> to this text :
>
> <VW_KopjeEnLijn>A Header text</VW_KopjeEnLijn>
> <VW_Tussenkopje2>An other header text</VW_Tussenkopje2>
> <VW_TekstInspring3>normal text</VW_TekstInspring3>
> <VW_Tussenkopje2>thirdheader text</VW_Tussenkopje2>
> <VW_TekstInspring3>second normal text</VW_TekstInspring3>
>
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list