Article View: fr.comp.text.xml
Article #99<xsl:if test="@machin">
From: samuel
Date: Fri, 10 Jul 2009 17:54
Date: Fri, 10 Jul 2009 17:54
23 lines
2006 bytes
2006 bytes
je n'arrive pas à tester si un argument existe... <xsl:for-each select="auteur"> <xsl:value-of select=""/> <xsl:if test="@dt"> <xsl:text> </xsl:text><em>(<xsl:value-of select="@dt"/>)</em> </xsl:if><br/> </xsl:for-each> une personne ici semble avoir eu le même problème: http://forum.hardware.fr/hfr/Programmation/XML-XSL/test-existence-balise-sujet_94465_1.htm mais pour moi ça ne marche pas.. j'ai tantôt Jeton attendu 'eof' trouvé '@' tantôt erreur XPath : test de Name ou de Nodetype attendu sur IE ou expression attendue sur FF tantôt même ')' attendu quand j'ai esseyé test="not(no(@dt))" j'ai aussi essayé test="@dt != ''" mais là non plus ça ne lui va pas! ni à IE ni à FF. j'en appelle donc à votre aide!
Technical Details
Message-ID:
<b30b31dc-1f3c-44b2-a7b0-c1cb68460f28@k30g2000yqf.googlegroups.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!k30g2000yqf.googlegroups.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 8a75585569,ff41f7cf819966a5,start X-Google-Attributes: gid8a75585569,public,usenet X-Google-NewGroupId: yes X-Google-Language: FRENCH,ASCII Path: arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!k30g2000yqf.googlegroups.com!not-for-mail From: samuel <samuel.braikeh@gmail.com> Newsgroups: fr.comp.text.xml Subject: <xsl:if test="@machin"> Date: Fri, 10 Jul 2009 10:54:11 -0700 (PDT) Organization: http://groups.google.com Lines: 23 Message-ID: <b30b31dc-1f3c-44b2-a7b0-c1cb68460f28@k30g2000yqf.googlegroups.com> NNTP-Posting-Host: 88.163.231.90 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1247248451 6620 127.0.0.1 (10 Jul 2009 17:54:11 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 10 Jul 2009 17:54:11 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: k30g2000yqf.googlegroups.com; posting-host=88.163.231.90; posting-account=VzKYbAoAAADEPvKGYJrcpKEcJcdfZcdZ User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; fr; rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.11 (.NET CLR 3.5.30729),gzip(gfe),gzip(gfe)