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

NOTATION attribute....need clarification please...

 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Section 3.3.1, p27 of XML Spec.
Wondering how this attribute is used. Seems similar to an ID attribute. I haven't come across usage of this attribute.
Can someone provide some insight (an example) of this please...
Thanks.
- madhav
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
knock....kncok....any insight into this please....
Thanks.
- madhav
 
John Wetherbie
Rancher
Posts: 1449
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It may be that no one here has come across usage of this either. Give it a little more time.
 
John Dunn
slicker
Ranch Hand
Posts: 1108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure if this is what you're asking, but it might at least point you in the right direction...
This is from Wrox's Beginning XML - pages 210-212.
from a long DTD:
<!NOTATION bmp SYSTEM "explorer.exe">
<!ENTITY DareToBeStupidCoverPhoto SYSTEM "cover.bmp" NDATA bmp>
<!ATTLIST CD images ENTITIES #IMPLIED>
...

usuage in XML file:
<CD images="DareToBeStupidCoverPhoto">
When the parser comes across the image attribute it knows it expects an entity. Our entity is asscociated with an external file, "cover.bmp" and this file is of type 'bmp'. Files of type 'bmp' use 'explorer.exe' to present them to the user.
 
Mapraputa Is
Leverager of our synergies
Sheriff
Posts: 10065
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This also might help:
NOTATION Declaration
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the examples. That helps to a certain extent.
Now that I know what a NOTATION is, any idea why the Spec allows only one NOTATION attr per element.
According to the Spec., p27, the Validity Const reads:

No element may have more than one NOTATION attribute specified.

Additionally, the next line reads:

For compatibility, an attribute of type NOTATION must not be declared on an element declared EMPTY.

Any light on these stmts please, especially the first one.
Thanks.
- madhav
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic