|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: How to find all parents having the same child?
> can anyone tell me how to find all parents having the > same child? DNA testing? Ha, ha. Seriously, it depends what you mean by "the same child." If you mean there is just one child node and you want to find all its parents, use select=".." (or ="parent::*"). Of course you will never get more than one node as the answer because no node has more than one parent. If you mean all nodes that have a child whose text value is the same as a given value, use select="//*[*[. = $value]]" If you mean all nodes that have a child whose name is the same as a given value, use select="//*[*[local-name(.) = $value]]" > An example would really help me. It would really help me too! Lars 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
|

Cart








