🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fr.comp.text.xml
Article #9882

Re: Savoir si un attribut est d�fini ou pas

#9882
From: Alain Ketterlin
Date: Tue, 16 Jan 2001 16:13
19 lines
1519 bytes
David Mercier <dmercier@supelec-rennes.fr> writes:

> Existe t il une fonction qui permettrait d'�crire un truc du genre:
> 
> <xsl:when test='isdefined(@width)'> .....

<xsl:when test="@width"> ...

Un attribut, c'est un noeud-fils du noeud representant l'element
(attention, si le DTD declare une valeur par defaut, l'attribut
sera toujours present).

>   Tant que j'y suis m�me (car cela r�soudrait entre autre cette
> question) existe t il un document ou un site r�f�ren�ant toutes les
> fonctions disponibles en XSLT (type document(), position(), name() ...).

http://www.w3.org/TR/xpath

-- Alain.
Technical Details
Message-ID: <wy7l3vv5jr.fsf@polya.u-strasbg.fr>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!freenix!codeine.org!ciril.fr!news.u-strasbg.fr!not-for-mail
References: <3A64715A.A89123BF@supelec-rennes.fr>

Show Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII
X-Google-Thread: 114f60,256b617ad55ac4f
X-Google-Attributes: gid114f60,public
X-Google-ArrivalTime: 2001-01-16 08:16:02 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!freenix!codeine.org!ciril.fr!news.u-strasbg.fr!not-for-mail
From: Alain Ketterlin <alain@dpt-info.u-strasbg.fr>
Newsgroups: fr.comp.text.xml
Subject: Re: Savoir si un attribut est d�fini ou pas
Date: 16 Jan 2001 17:13:28 +0100
Organization: CRC - Universite Louis Pasteur Strasbourg France
Lines: 19
Message-ID: <wy7l3vv5jr.fsf@polya.u-strasbg.fr>
References: <3A64715A.A89123BF@supelec-rennes.fr>
NNTP-Posting-Host: polya.u-strasbg.fr
X-Trace: news.u-strasbg.fr 979665961 27893 130.79.6.19 (16 Jan 2001 17:26:01 GMT)
X-Complaints-To: usenet@u-strasbg.fr
NNTP-Posting-Date: 16 Jan 2001 17:26:01 GMT
X-Newsreader: Gnus v5.6.45/XEmacs 21.1 - "Capitol Reef"