<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
This works exactly the same as for regular SGML. First you declare the entity you want to include, and then you reference it by name as a parameter:
...
%mylists;
Such declarations traditionally go all together towards the top of the main DTD file, where they can be managed and maintained, but this is not essential so long as they are declared before they are used. You use Parameter Entity Syntax for this (the percent sign) because the file is to be included at DTD compile time, not when the document instance itself is parsed.
Note that a URL is compulsory in XML as the System Identifier for all external file references: standard rules for dereferencing URLs apply (assume the same method, server, and directory as the containing document). A Formal Public Identifier can also be used, following the same rules as elsewhere.
How do I include one DTD (or fragment) in another?
最新推荐文章于 2013-08-15 12:00:00 发布
本文介绍了如何在XML文档类型定义(DTD)中使用参数实体。通过声明和引用参数实体,可以实现文件的包含和复用。参数实体的声明通常位于DTD文件顶部,并在使用前进行定义。
1729

被折叠的 条评论
为什么被折叠?



