然而,将这些公开为配置字段并非都很简单:开发人员必须选择属性名称,编写文档,处理类型,以及选择默认值。
Actually exposing these as configuration fields, however, is not always completely trivial: the developers must choose property names, write documentation, handle types, and choose default values.
模式验证为文档实例中省略的属性和空白元素添加默认值。
Schema validation adds default values for omitted attributes and empty elements on a document instance.
其他字段保留默认值,保存新建文档类型。
Leave everything else as default and save the new document type.
字段类型、选项、默认值和字段顺序等都由用户定义,从而为文档添加定制的数据元素。
The field types, options, default values, field orders, and so on are defined by the user to attach a custom form of data elements to the document.
默认值是由当前URL指定的当前文档。
The default value is the current document specified by the current URL.
比如,要查询一个属性是在文档中规定的还是使用DTD中的默认值,需要将or g . xml . sax . Attributes强制转换成org . xml . sax . ext . Attributes2接口。
For example, to query if an attribute has been specified in the document or defaulted through a DTD, you need to cast the org.xml.sax.Attributes to the org.xml.sax.ext.Attributes2 interface.
这个参数的默认值是10,如果需要索引的文档数非常多的话这个值将是非常不合适的。
The default value of this parameter is 10, which isn't suitable if you have a large number of documents.
这意味着您可以不再拒绝那些格式良好的文档,然而,默认值非常大,能够处理大多数实际应用中的文档。
This means you may end up rejecting some genuinely well-formed documents; however, the default values are quite large and can handle most realistic documents.
这意味着您可以不再拒绝那些格式良好的文档,然而,默认值非常大,能够处理大多数实际应用中的文档。
This means you may end up rejecting some genuinely well-formed documents; however, the default values are quite large and can handle most realistic documents.
应用推荐