[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] XPath REC questions: comments and PIs
Just out of curiosity, what is the consensus about the relationships
between comments/PIs and the elements which contain them?
[5.2 Element Nodes] includes comments and PIs among the nodes considered children of element nodes. However, the Rec seems to be silent on the question of whether a given element should be considered the parent of any comments/PIs it contains. (An odd omission, since it's very careful to make the distinction in the case of attributes and elements.) What quote-unquote "should" happen if the context node is a comment or PI and you look back up along the parent or ancestor axis? And are comments/PIs contained by a given element considered siblings of one another? Are they siblings of likewise contained element and text nodes? Thanks for any insights! =================================================================== John E. Simpson | I spilled spot remover on my dog. simpson@xxxxxxxxxxx | He's gone now. http://www.flixml.org | (Stephen Wright) 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
|