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

Re: What's an ID?

Subject: Re: What's an ID?
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Thu, 14 Sep 2006 18:14:48 -0400
what s a id
Wolfgang,

The question is excellent.

There is still a DTD-based mechanism for specifying IDs and it still works in systems that support DTDs. (Mike reports this isn't true on .NET.)

There are also those of us who believe that for robust layering, one is well served by establishing the IDness of the ID in the application, as in:

<xsl:key name="byID" match="*[@id]" use="@id"/>

and using the key() function.

Then an ID can be whatever you define it to be.

Don't forget you can define a key different names for different matches, as in

<xsl:key name="byID" match="*[@id]" use="@id"/>

<xsl:key name="byID" match="person" use="@pID"/>

etc.

Regards,
Wendell

At 05:01 PM 9/14/2006, you wrote:
Hello,

the id function looks for element nodes with a certain ID value.  But what's
an ID value in XSLT 2.0?  Is it just an attribute of type xsd:ID or a
restricted form of it?  If yes, can't you make use of the id function if
you're using an XSLT processor without Schema support like the open source
version of Saxon?

Best wishes,
Wolfgang

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-2013 All Rights Reserved.