Subject: RE: [xsl] how to match the absence of a particular attribute From: "Aron Bock" <aronbock@xxxxxxxxxxx> Date: Mon, 30 May 2005 14:10:50 +0000 |
how can I test the presence of a particular attribute of a node in an "if" or "choose" tag? I need to drive the behavior of the translation in two different ways, if an attribute exists or not.
<A> <B a="a">hello2</B> <B a="a" b="b">hello3</B> <B>hello1</B> <B b="b">hello4</B> </A>
<xsl:template match="A/B[@a or @b]"> <xsl:copy-of select="."/> </xsl:template>
I suppose the key point is the capability to match the absence of an attribute, but I have found no way to do this.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] how to match the absence , Jarno.Elovirta | Thread | [xsl] Another Alternate table-row b, GNallan |
Re: [xsl] Q - Parsing & Manipulatin, Ahsan Ali | Date | [xsl] Another Alternate table-row b, GNallan |
Month |