Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

id attribute, id element, id function, key element, key function...

 
Kevin Thompson
Ranch Hand
Posts: 237
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have seen numerous posts from people who said that the IBM Exam was tougher than the SJCP Exam. Now I agree with you! From my point of view, all of the following look and sound very similar. Who can keep all this straight!?
I did a cross reference to the topics involving ids and keys in the book "Essential XML Quick Refernce" and look what I found:
key is an XML Schema Structure, page 288. A key constraint.
keyref is an XML Schema Structure,page 288. A reference to a key constraint.
key is an XSLT Element,page 98.Declares a new key (used with key function).
key() is an XSLT Function,page 149. Returns the nodes that have the specified key value.
ID is an XML DTD Structure,page 21. A name that is unique within the document.
IDREF is an XML DTD Structure,page 22. A reference to an ID value in the document.
IDREFS is an XML DTD Structure,page 22. A space-delimited list of IDREF values.
id() is an Xpath Function,page 52. Identified nodes by ID.
id is an XSLT attribute,page 142. Specifies a unique identifier for the transformation elements.
[ December 13, 2002: Message edited by: Kevin Thompson ]
 
Roseanne Zhang
Ranch Hand
Posts: 1953
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Added some more:
1) In xschema, ID/IDREF/IDREFS are also data types which are the same in XML/DTD.
2) In XSLT, we also have generate-id() function
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic