<!doctype doc [
<!element doc - o (a*)>
<!attlist doc id id #implied>
<!element a o o (xref|#pcdata)*>
<!element xref  - - (#pcdata)>
<!attlist xref ref idref #conref>
]>
<doc id=foo>
<a><a><xref ref=foo>
