Re: [XSLT] Sélectionner les attributs d'un espace de noms particulier

Eric van der Vlist <[email protected]>
Newsgroups gmane.text.xml.french.tech
Organization Dyomedea (http://dyomedea.com)
Message-ID <[email protected]>
Le mercredi 08 novembre 2006 à 10:32 +0100, Eric van der Vlist a écrit :
> Bonjour,
> Le mercredi 08 novembre 2006 à 10:24 +0100, Amoureux erwan a écrit :
> > 
> > >> <xsl:template match="@xhtml:*"> (equivalent ? "attribute;;xhtml:*")
> > >> devrait mieux fonctionner :) ...
> > 
> > >Non, il est accepté mais il ne semble rien "matcher", le template par
> > >défaut s'exécute à la place (testé avec xsltproc et sablotron).
> > 
> > >J'ai essayé aussi "attribute::xhtml:*" et cela donne le même résultat
> > >(ce qui est logique).
> > 
> > 
> > 
> > pas très subtil :-/ mais avez vous essayez :
> > 
> >  
> > >xsl:template match="@*[namespace-uri()='xhtml']">
> 
> C'est équivalent aux deux autres formulations et cela donnera le même
> résultat...
Ooops, désolé, j'ai répondu trop vite...

C'est match="@*[namespace-uri()='http://www.w3.org/1999/xhtml']" qui
serait équivalent aux deux formulations précédentes.
match="@*[namespace-uri()='xhtml'] ne devrait jamais rien sélectionner
puisque cela correspondrait à xmlns="xhtml" qui serait considérée comme
une URI "relative" ce qui est fortement déconseillé si ce n'est interdit
par le W3C.

Cordialement,

Eric van der Vlist

-- 
GPG-PGP: 2A528005
Don't you think all these XML schema languages should work together?
                                                         http://dsdl.org
------------------------------------------------------------------------
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.3 (GNU/Linux)

iD8DBQBFUaYIDvn+ZCpSgAURAqoSAJ9/4KeU/v4Gf+wEp8A6kQOD5+EzjgCfWD5J
9lhMwP4pNzvX+wwBWh8yY2c=
=GT96
-----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.