sxpath - or and not filters

Gordon Weakliem <[email protected]> Thu, 8 Jan 2004 14:42:30 -0800 (PST)
Newsgroups gmane.lisp.scheme.ssax-sxml
Message-ID <[email protected]>
I'm trying to get the equivalent to the XPath "*|text()", in other words, I want to select just the text and element children of a node, not attributes.  For this reason, *any* is too broad.  For now, I can do sxml:content on the result of an sxpath, but I wonder if there's a more compact way to do this selection: 
  
(sxml:content (car ((sxpath '(atom:content) atom-ns) entry))) 
  
It looks like sxpath defines or@ and not@ operators, but I can't figure out how to use them and can't find an example, and my guesses haven't worked.  Would these be the way to go, or is there a better way to do this?  Can someone provide an example of how these operators work? 


-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html