Originally posted by lavanya Ananth:
If i wanted to have an attribute for title , say ISBN which refers to book no, how do i specify it? Is the declaration below correct?
<! ATTLIST title ISBN IDREF #REQUIRED >
It is perfect
How does the parser know which ID the above decl references?
I am also assuming that a single element can have two attributes that are unique. How do we then use IDREF to refer to a particular unique attribute?
According to the DTD specifications,
there may be only ONE ID attribute for each element type So I guess that the DTD parser would know which one to look for
Hope that helps
[ December 28, 2005: Message edited by: Hari Vignesh Padmanaban ]