This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Re: How to select elements based on the value(s) of a multi-valued attribute?
- From: "Rogier Hofboer" <hofboer at planet dot nl>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Tue, 29 Jan 2002 09:10:07 +0100
- Subject: Re: Re: [xsl] How to select elements based on the value(s) of a multi-valued attribute?
- References: <200201281726.MAA21850@biglist.com>
- Reply-to: xsl-list at lists dot mulberrytech dot com
Mike,
A very clever solution. :-)
Thank you very much!
Rogier
>Date: Mon, 28 Jan 2002 16:42:55 -0000
>From: "Michael Kay" <michael.h.kay@ntlworld.com>
>Subject: RE: [xsl] How to select elements based on the value(s) of a
multi-valued attribute?
>
>This is a good use case for the XSLT 2.0 support for sequence-valued
>attributes! I suggest that for future transition to XML Schema you use a
>space-separated list rather than comma-separated.
>
>Then (for XSLT 1.0) I suggest you use
>
>select="translation[ contains(
> concat(' ', @language, ' '),
> concat(' ', $language, ' ') )]"
>
>Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list