EDN Admin
Well-known member
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
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