Re: RE : Re: RE : Re: RE : Re: pbm: xsl:variable

Eric van der Vlist <[email protected]>
Newsgroups gmane.text.xml.french.tech
Organization Dyomedea (http://dyomedea.com)
Message-ID <[email protected]>
Le lundi 10 avril 2006 à 14:57 +0200, MAGNA Pascal a écrit :
> Je veux bien mais voilà le résultat "Semicolon expected." 
Oui, le parseur attend effectivement un ";" '(semicolon)! Il faut écrire
&lt; ...

> Je ne pense pas que &lt soit judicieux ce genre de code c'est pour
> éviter les confusion avec le debut ou fin de balise mais là c'est à
> l'intérieur d'un test. De plus en tant qu'opérateur on peut l'utiliser
> tel que d'apres ma doc!!

Changez de doc, elle est fausse :-) ou alors vous l'avez mal
interprétée...

XSLT a une syntaxe XML, en d'autres termes, une transformation XSLT est
un document XML bien formé.

Comme XML interdit le caractère "<", ils doivent être remplacés par
&lt; .

Corollaire : l'expression XPath "DRK_RESPONSE/@NbIdems < 2" *doit*
s'écrire "DRK_RESPONSE/@NbIdems &lt; 2" quand elle se trouve dans une
transformation XSLT.

Si cela ne vous plait vraiment pas, vous pouvez écrire "2 >
DRK_RESPONSE/@NbIdems" (le caractère ">" peut s'écrire tel quel) mais je
ne suis pas certain que ce soit plus lisible...

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.1 (GNU/Linux)

iD8DBQBEOmLfDvn+ZCpSgAURAmpLAJ0SH5ya7Xlxsfri61RqqDJAz/UinACfW9wK
cJ0lpXVdUWF5jeHvtITcv8U=
=Nro8
-----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.