Why won't xpath pickup a node when there is attribute data present?

Yoursocial

New Member
Can anyone explain to me why the following xslt:\[code\]<xsl:if test="EventDocument">\[/code\]Does not pickup this xml tag?\[code\]<EventDocument xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.itron.com/ItronInternalXsd/1.0/">\[/code\]it works when I delete the attributes from the tag, which makes no sense to me. I.E. the above test passes when i modify the input to be:\[code\]<EventDocument>\[/code\]I'm using xslt 2.0 (saxon parser) Thanks in advance
 
Back
Top