Re: Node Set and Node List differentiation
/ "Gulzar, Nadir" <ngulzar@xxxxxxxx> was heard to say: | I inferred the following based on the context. Can somebody please confirm | or clarify the following. | | Node Set: Nodes that have common parent element type in the hierarchy. This | is essential when using UnionExpr since subsequent filters would require | consistency in the element type of input nodes. I don't think there's any requirement that a node-set contain only nodes that have a common parent. Using doc(), I can imagine constructing a node set that contains nodes from different documents (all nodes from the same document have at least one common parent). | Node List: Could be a 'Node set' but not necessarily. This is a context list | of nodes that contain nodes of different types from arbitrary levels (in the | document order). By my reading of the spec, a node list is the list of nodes that the processor is currently "working on". You can't instantiate a node list, per se. And I don't think there's any reason to expect the node list to be in document order. Cheers, norm -- Norman Walsh <ndw@xxxxxxxxxx> | The [hydrogen] bomb's brilliant http://nwalsh.com/ | gleam reminds me of the brilliant | shine Gleam gives to floors. It's | a science marvel.--Advertisment in | the Pittsburgh Press, 1954 XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
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