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
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.
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 by:autobot
She'll be back. I'm just gonna wait here. With this tiny ad:
a bit of art, as a gift, that will fit in a stocking