Forums Register Login

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

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
knock....kncok....any insight into this please....
Thanks.
- madhav
+Pie Number of slices to send: Send
It may be that no one here has come across usage of this either. Give it a little more time.
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
This also might help:
NOTATION Declaration
+Pie Number of slices to send: Send
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
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
https://gardener-gift.com


reply
reply
This thread has been viewed 741 times.
Similar Threads
Simple question on testing
Submitting nested properties.
javax/servlet/jsp/tagext/JspIdConsumer exception in JSF Richfaces
what does redirect attribute of action forward do when set to false
jboss, datasource naming and lookup error
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 10:34:44.