RE: RE: Muenchian technique, was (Keys on multiple el
Hi Jeni. One last go at this, then I'll start to agree we may be at cross purposes. > > > I had this last week with > > > > $variable[generate-id(.) = generate-id(key('rows', name))] > > > > so here the ndl in $variable is 'searched' for the first node for > > which the predicate is true? Then returned as the value of the > > expression? > > Obviously it depends on the data, but the above expression should > return more than one node in some circumstances - all those nodes in > the $variable node set that are the first node (in document order) > returned by calling the key with their name element child as the key > value. Just testing understanding here. If it returns more than one node, it implies that two (unique) id value pairs are equal, which (as you say) implies that in two places in the source document the predicate is true, which implies that the $variable has 'duplicates' (definition dependent on source file). I (mistakenly) presumed that the above expression would return a single node (fooled by the use of generate-id() I guess). The above explanation matches the symptoms I was seeing. I did a count() on the guts of the above expression, and did a back flip when I found a 2 in the output :-). I'm halfway there to understanding now. Thanks for going that bit further. Regards DaveP - NOTICE: The information contained in this email and any attachments is confidential and may be legally privileged. If you are not the intended recipient you are hereby notified that you must not use, disclose, distribute, copy, print or rely on this email's content. If you are not the intended recipient, please notify the sender immediately and then delete the email and any attachments from your system. RNIB has made strenuous efforts to ensure that emails and any attachments generated by its staff are free from viruses. However, it cannot accept any responsibility for any viruses which are transmitted. We therefore recommend you scan all attachments. Please note that the statements and views expressed in this email and any attachments are those of the author and do not necessarily represent those of RNIB. RNIB Registered Charity Number: 226227 Website: http://www.rnib.org.uk 14th June 2002 is RNIB Look Loud Day - visit http://www.lookloud.org.uk to find out all about it. 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