Use a double IDREF relationship.
使用单一idref关系。
We model these ID and IDREF attributes in SDO with noncontainment references.
我们使用非包容引用建模SDO中的ID和IDREF属性。
If the information is required to be in a standard DTD-like attribute type such as ID, IDREF, or ENTITY, use an attribute.
如果信息需要作为类似标准DTD的属性类型,如ID、IDREF或ENTITY,则使用属性。
Note that even attributes that contain an IDREF are labeled as XSD: NCName, which performs only the lexical validation of the attribute.
注意,即使包含有标为xsd:NCName的idref属性,也只对属性进行词法验证。
In other words, given an IDREF or IDREFS field, it's possible to quickly find the element or elements with the associated ID or IDs, but not the other way around.
换句话说,给定一个IDREF或idrefs域,可能会迅速找到有一个或多个相关标识的一个或多个元素,反之则不行。
On the downside, Quick seems overly complex to use and Zeus supports only Strings for bound data values (no primitives or object references using ID-IDREF or an equivalent).
缺点是,Quick使用起来似乎过于复杂,而Zeus只支持String用于绑定数据值(没有原语或使用ID -IDREF或等价物的对象引用)。
Using these attributes, an element may refer to one or more other elements (by including the value of those elements' ID fields in the pointing element's own IDREF or IDREFS field).
通过使用这些属性,元素可以引用一个或多个其它元素(通过在指向元素自己的IDREF或idrefs域中包含那些元素的标识字段的值)。
Many XML editors generate sample documents for you, but those documents generally contain meaningless data and don't have correctly related ID and IDREF values used in the associations.
很多XML编辑器会为您生成样例文档,但是这些文档一般包含的是无意义的数据,不具有正确相关的ID和关联中使用的idref值。
Many XML editors generate sample documents for you, but those documents generally contain meaningless data and don't have correctly related ID and IDREF values used in the associations.
很多XML编辑器会为您生成样例文档,但是这些文档一般包含的是无意义的数据,不具有正确相关的ID和关联中使用的idref值。
应用推荐