Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果一个元素在 dtd 中声明如下:
<!ELEMENT cite.query (#PCDATA|cite.query | citator.treatment>
我收到一个错误,说cite.querymust havecitator.treatment那么我如何使它成为可选cite.query的citator.treatment?
cite.query
citator.treatment
由于 的内容模型cite.query是混合的(#PCDATA 和元素),您需要在组外使用星号:
<!ELEMENT cite.query (#PCDATA|cite.query|citator.treatment)*>