|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: testing for attribute-only
Trevor:
test="node()" is short for test="child::node()", and will test true on the latter cases while false on the former cases. test="not(node())" will perform the inverse test. This is because attributes are not children of their parent elements in the model. Comments, processing instructions, elements and text nodes are the only kinds of things addressable through the child:: (and descendant::) axis. Cheers, Wendell At 12:42 AM 8/28/2005, you wrote: Is there a concise test for the context node that will distinguish between a node that has attributes at most:
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








