[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Matchin elements in text nodes


Subject: Re: [xsl] Matchin elements in text nodes
From: Richard Light <richard@xxxxxxxxxxxxxxxxx>
Date: Mon, 22 Jan 2001 09:10:48 +0000

In message <C22569DC.002AB75E.00@xxxxxxxxxxxxxxx>, mika.borner@xxxxxxxx
writes

>The "text()"-pattern doesn't return  anything.
>
>Selecting with "." gives me also the unwanted article_id,main_heading and the
>article_date.
>
>All I want to select is the direct text node under article (This is the article
>text part , The article continues. This is part 2 of it)

Think of it a different way:

If you add a template which suppresses the element children of article,
then only its text will be left:

<xsl:template match="article/*"/>

Richard Light.

Richard Light
SGML/XML and Museum Information Consultancy
richard@xxxxxxxxxxxxxxxxx


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread