Re: arguments multiples dans contains ?

Eric van der Vlist <[email protected]>
Newsgroups gmane.text.xml.french.tech
Organization Dyomedea (http://dyomedea.com)
Message-ID <[email protected]>
Le jeudi 29 juin 2006 à 08:52 +0200, Jean-François Cauche a écrit :
> Merci. Cela résoud déjà une bonne partie de ce que je cherchais. J'avais 
> pensé devoir transformer les chaines auparavant, mais je comptais sur 
> XSLT pour m'offrir une autre solution. J'attendrais la version 2 pour 
> plus de souplesse.
> La fonction translate fonctionne parfaitement. Par contre, il faut 
> inverser la syntaxe de cette manière :
> <xsl:apply-templates 
> select="item[(contains(translate(description,'ABCDEFGHIJKLMNOPQRSTUVWXYZ-','abcdefghijklmnopqrstuvwxyz 
> '),'saint pol'))]"/>
Si vous testez une chaîne en minuscules, oui.

Voir également http://xmlfr.org/documentations/faq/050104-0001 pour une
discussion plus complète de ce type de problème.

Cordialement,

Eric van der Vlist 

-- 
GPG-PGP: 2A528005
Le premier annuaire des apiculteurs 100% XML!
                                                http://apiculteurs.info/
------------------------------------------------------------------------
Eric van der Vlist       http://xmlfr.org            http://dyomedea.com
(ISO) RELAX NG   ISBN:0-596-00421-4 http://oreilly.com/catalog/relax
(W3C) XML Schema ISBN:0-596-00252-1 http://oreilly.com/catalog/xmlschema
------------------------------------------------------------------------


-- Attached file included as plaintext by Ecartis --

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQBEo4eGDvn+ZCpSgAURAnP1AJ9SdJtjBDsz5KG3qNr8ZYQmmY7TPwCfe8fu
dGdFjHu2VpkGBCIQJUiOLl0=
=t6VR
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.