Re: [Xpath] Deux contextes à la fois ?
Eric van der Vlist <[email protected]>
| Newsgroups | gmane.text.xml.french.tech |
|---|---|
| Organization | Dyomedea (http://dyomedea.com) |
| Message-ID | <[email protected]> |
Le lundi 13 février 2006 à 16:55 +0000, Tiscar Sebastien a écrit :
> Bonjour,je ne connais pas Shematron mais au niveau XPATH
> <xsl:if test="/zone/contact[handle=current()/holder]"/>
> devrait suffir
Juste un point de détail...
La fonction current() est une fonction XSLT 1.0 (et non une fonction
XPath).
Elle fonctionne avec Schematron 1.5 dont le "host language" (c'est à
dire le langage utilisé dans les expressions) est toujours XSLT 1.0.
En Schematron ISO, on peut définir quel "host language" utiliser. Dans
ce cas, la fonction current() ne serait pas disponible si on utilisait
XPath comme host language.
Cordialement,
Eric van der Vlist
--
GPG-PGP: 2A528005
Lisez-moi sur XMLfr.
http://xmlfr.org/index/person/eric+van+der+vlist/
------------------------------------------------------------------------
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)
iD8DBQBD8KzjDvn+ZCpSgAURAlF1AJ9wCuvgxJDOv1CqIkAcNnkd6KmLpwCcCdEK
GxCVOeKjiJ5BOe0GxGMd6Us=
=2KWa
-----END PGP SIGNATURE-----