[Home] [By Thread] [By Date] [Recent Entries]
Hi,
At 05:25 AM 9/29/2009, Mike wrote: However, I would encourage use of key() rather than id(). Even in a DTD world, id() is excessively dependent on how the stylesheet is run. For example, some parsers (System.Xml is a notable example) do not notify the ID-ness of attributes to the application, and inserting a filter between the parser and the XSLT processor will often lose the information. The other relevant bit of info is that the attribute @xml:id will always be recognized by a 2.0 processor as equivalent to type ID, for purposes of id(). I concur with David's and Mike's advice to prefer key() -- cleaner layering -- but there are times when you save bacon by using @xml:id. Cheers, Wendell
|

Cart



