[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: id attribution in template match

Subject: RE: id attribution in template match
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Tue, 29 Sep 2009 10:50:32 -0400
RE:  id attribution in template match
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


====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2011 All Rights Reserved.