Re: RE : 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 à 16:22 +0200, MAGNA Pascal a écrit :
> Merci bien , cette fois ci ça marche, effectivement j'aurai pu penser
> à rajouter ce ; sinon pour la doc sur l'altruiste/coursxsl mais j'ai
> pas dù bien interpréter la doc !!!
> 
> Question subsidiaire, comment fait on pour copier une balise (copy-of
> je crois) avec tous ses attributs mais sans les n½uds fils. 
Il faut faire la différence entre xsl:copy-of qui fait une copie
récursive (que vous ne pouvez pas contrôler) et xsl:copy qui ne copie
que le noeud courant... Pour recopier le noeud courant et ses attributs,
vous pouvez combiner les deux :

<xsl:copy>
  <xsl:copy-of select="@*"/>
</xsl:copy>


Cordialement,

Eric van der Vlist

-- 
GPG-PGP: 2A528005
Carnet web :
           http://eric.van-der-vlist.com/blog?t=category&a=Fran%C3%A7ais
------------------------------------------------------------------------
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)

iD8DBQBEOmtoDvn+ZCpSgAURAi7IAJ0doyoN+Mui0RQP7DQpgwoFspNEFQCeMdWL
Iqb5ZlZF3Z9qkx/wPnb3nOE=
=aLky
-----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.