一起学习
There are numerous projects to convert common or popular SGML DTDs to XML format (for example the TEI DTD, both Lite and full versions).
The following checklist comes courtesy of Seán McGrath (author of XML By Example, Prentice Hall, 1998):
No equivalent of the SGML Declaration. So keywords, character set etc are essentially fixed;
Tag mimimization is not allowed, so becomes and becomes ;
#PCDATA must only occur at the extreme left (ie first) in an OR model, eg (in SGML) becomes , and is illegal;
No CDATA, RCDATA elements [declared content];
Some SGML attribute types are not allowed in XML eg NUTOKEN;
Some SGML attribute defaults are not allowed in XML eg CONREF;
Comments cannot be inline to declarations like
]>
下载本文示例代码
I've already got SGML DTDs: how do I convert themI've already got SGML DTDs: how do I convert themI've already got SGML DTDs: how do I convert themI've already got SGML DTDs: how do I convert themI've already got SGML DTDs: how do I convert themI've already got SGML DTDs: how do I convert themI've already got SGML DTDs: how do I convert themI've already got SGML DTDs: how do I convert themI've already got SGML DTDs: how do I convert themI've already got SGML DTDs: how do I convert themI've already got SGML DTDs: how do I convert themI've already got SGML DTDs: how do I convert them
阅读(100) | 评论(0) | 转发(0) |