Xslt: How to match element if a specific attribute is missing?

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hi,
Suppose I have this element
<Telephone Type="1" Number="123" />
How can I match that element if the "Number" attribute is missing? The goal is to remove all "Telephone" elements where the "Number" attribute is either empty or missing.
I have this if the "Number" attribute is empty: <xsl:template match="Telephone[@Number[.=]]" > , but how should my match look if I wanted to match all "Telephone" elements that have no "Number" attribute?
-- <br/>
Werner


View the full article
 
Back
Top