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]

RE: Recursiveness


> 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

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