Re: [xsl] child nodes containing a string

Subject: Re: [xsl] child nodes containing a string
From: Goetz Bock <bock@xxxxxxxxxxx>
Date: Mon, 1 Oct 2001 18:06:29 +0200
On Mon, Oct 01 '01 at 11:13, Carmelo Montanez wrote:
> what would be the quickest way
> to find out ALL of the children node of the corrent node containing a
> specific string?  Consider the following pseudo xml code:
> [ ... ]
> I want to find all the child nodes containing the string "string1"
This might not be the fastest, but

<xsl:foo select="*[contains(.,'string1')]" />

might work (replace foo with the xsl function you want)
-- 
Goetz Bock                                              IT Consultant
Dipl.-Inf. Univ.

Attachment: pgp00000.pgp
Description: PGP signature

Current Thread