xsl-list
[Top] [All Lists]

testing for attribute-only

2005-08-27 21:42:26
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


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>