Subject: testing for attribute-only
From: "Trevor Nicholls" <trevor@xxxxxxxxxxxxxxxxxx>
Date: Sun, 28 Aug 2005 16:42:26 +1200
|
Hello
Is there a concise test for the context node that will distinguish between a
node that has attributes at most:
<a><a/>
<a docref="123456"/>
and a node that has more than attributes?
<a>some text</a>
<a case="2"><elementary>my dear Watson</elementary><a/>
I have been inadvertently dropping a few dozen of the latter type in trying
to clean up several thousand of the former in my input documents.
Cheers
Trevor
|