Re: Comparer un parametre et une valeur 'XML4 dans une stylesheet xsl

Eric van der Vlist <[email protected]>
Newsgroups gmane.text.xml.french.tech
Organization Dyomedea (http://dyomedea.com)
Message-ID <1153301106.6956.1.camel@localhost>
Bonjour,
Le mercredi 19 juillet 2006 à 11:12 +0200, Vincent Daanen a écrit :

[...] 
> 
> c'est ici que ca 'plante' ! je n'arrive pas a ecrire l'expression  de 
> test qui compare la valeur de TYPE et de $doctype
> est-ce  possible ?

<xsl:if test="TYPE = $doctype"> fonctionnera si vous n'avez pas de
caractères blancs dans vos deux valeurs. Dans le cas contraire, le plus
simple est d'écrire <xsl:if test="normalize-space(TYPE = $doctype">

Cordialement,

Eric van der Vlist

> d'avance merci de  toute aide
> 
>  Vincent
> 
-- 
GPG-PGP: 2A528005
Curious about Relax NG? Read my book online.
                                   http://books.xmlschemata.org/relaxng/
------------------------------------------------------------------------
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)

iD8DBQBEvfpyDvn+ZCpSgAURAu2IAJwObuu8pxb6e54WwOH/jnQLRoq8qACfSqr5
NNhn9Fam1LgnQFbM+YH6CCg=
=yOQ2
-----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.