My question was rather if that kind of filter could be expressed with XPath itself, just as Xpath uses @ to filter elements by attributes (for example: //[EMAIL PROTECTED] selects those books elements that have a lang attribute)
For example, if I wanted to select all the books , but I am only interested in its title and price, I could write something like (invented): //book(title,price) But according your replies seems that XSLT should be used instead.. Regards, -Enric On Wed, 18 Jan 2006, Florent Georges wrote: > "Martinez, Christian" wrote: > > > <xsl:variable name="myName" select="name(current())"/> > > <xsl:choose> > > <xsl:when test="$myName != DDD | $myName != XXX"> > > <!-- I guess here you would print out whatever --> > > </xsl:when> > > </xsl:choose> > > If you want that (I doubt it is what the OP want), use this instead: > > <xsl:if test="not(self::DDD|self::XXX)"> > ... > </xsl:if> > > BTW, 'name()' (better here 'local-name()') returns a string, so: > > test="$myName != DDD | $myName != XXX" > > has to be rewritten: > > test="$myName!='DDD' and $myName!='XXX'" > > --drkm > > > > > > > > > > > > > > > > > > > > > > > ___________________________________________________________________________ > Nouveau : t?l?phonez moins cher avec Yahoo! Messenger ! D?couvez les tarifs > exceptionnels pour appeler la France et l'international. > T?l?chargez sur http://fr.messenger.yahoo.com > >