Is there a way wherein an xml document can refer to a variable/element which is defined in some other xml file on the same machine?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Sure, like this:
outer.xml:
<!DOCTYPE outer [
<!ELEMENT outer ANY>
<!ENTITY inner SYSTEM "inner.xml" >
]>
<outer>
&inner;
&inner;
</outer>
inner.xml
<inner/>