RE: attribute nodes
I'm not trying to solve any big problems here -- it just seems odd that a node is not a child node because of its label.
That's what I thought. I certainly have no quarrel with curiosity.
I also think it is interesting that because an attribute is always a leaf, it can be neither a parent or a child. Are there other examples of such "bobbles" on trees or is it common in data models to have semi-nodes? I trow not.
Not common, I don't think, but attributes aren't unique in this sense in the XPath data model; namespace nodes have the same quirk. Element, PI, comment, and text nodes all are children of their parents, and the root node has no parent.
Nonetheless, this is not dangerous nor does it ever seem difficult to process attribute nodes. It is merely amusing.
-Chris -- Christopher R. Maden, XML Consultant DTDs/schemas - conversion - ebooks - publishing - Web - B2B - training <URL: http://crism.maden.org/consulting/ > PGP Fingerprint: BBA6 4085 DED0 E176 D6D4 5DFC AC52 F825 AFEC 58DA
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