This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Matchin elements in text nodes
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] Matchin elements in text nodes
- From: Richard Light <richard at light dot demon dot co dot uk>
- Date: Mon, 22 Jan 2001 09:10:48 +0000
- References: <C22569DC.002AB75E.00@mail01.telia.fi>
- Reply-To: xsl-list at lists dot mulberrytech dot com
In message <C22569DC.002AB75E.00@mail01.telia.fi>, mika.borner@telia.fi
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@light.demon.co.uk
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list