Doctype(XML)
Doctype()所属R语言包:XML
Constructor for DTD reference
DTD参考的构造函数
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This is a constructor for the Doctype class that can be provided at the top of an XML document to provide information about the class of document, i.e. its DTD or schema. Also, there is a method for converting such a Doctype object to a character string.
这是Doctype类,它可以提供一个XML文档的顶部提供有关文件之类的,也就是说,它的DTD或schema的构造函数。此外,有一种方法用于这种Doctype对象转换到一个字符串。
用法----------Usage----------
Doctype(system = character(), public = character(), name = "")
参数----------Arguments----------
参数:system
the system URI that locates the DTD.
该系统URI定位DTD。
参数:public
the identifier for locating the DTD in a catalog, for example. This should be a character vector of length 2, giving the public identifier and a URI. If just the public identifier is given and a string is given for system argument, the system value is used as the second element of public. The public identifer should be of the form +//creator//name//language where the first element is either + or -, and the language is described by a code in the ISO 639 document.
定位在一个目录中的DTD,例如标识符。这应该是一个字符向量长度为2,公共标识符,一个URI。如果只是公共标识符,并给出一个字符串,给出了system参数,system这个值作为第二个元素的public。公共标识符应该是这样的形式+//creator//name//language其中第一个元素是+或 - ,在ISO 639文件代码的语言描述。
参数:name
the name of the root element in the document. This should be the first parameter, but is left this way for backward compatability. And
在文档中的根元素的名称。这应该是第一个参数,但留下这样的向后兼容性。和
值----------Value----------
An object of class Doctype.
对象的类Doctype。
(作者)----------Author(s)----------
Duncan Temple Lang
参考文献----------References----------
XML Elements of Style, Simon St. Laurent.
参见----------See Also----------
saveXML
saveXML
实例----------Examples----------
d = Doctype(name = "section", public = c("-//OASIS//DTD DocBook XML V4.2//EN", "http://oasis-open.org/docbook/xml/4.2/docbookx.dtd"))
as(d, "character")
# this call switches the system to the URI associated with the PUBLIC element.[这个调用将系统切换到与公众的元素相关联的URI。]
d = Doctype(name = "section", public = c("-//OASIS//DTD DocBook XML V4.2//EN"), system = "http://oasis-open.org/docbook/xml/4.2/docbookx.dtd")
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|