2

現在、 BPMN 2.0の仕様を読んでいます。この仕様では、BPMN の各部分の定義は XML スキーマとして与えられます。

これらのスキーマの 1 つ (表 8.3、p. 54) で、意味をなさない行に出くわしました。

<xsd:element name="definitions" type="tDefinitions"/>
  <xsd:complexType name="tDefinitions">
  ...
    <xsd:anyAttribute name="exporter" type="xsd:ID"/>
  ...

私を困惑させているのは、「xsd:anyAttribute」要素と組み合わせて「name」属性を使用していることです。要素の定義を正しく理解していれば、その目的は、スキーマで指定されていない「不明な」属性を使用できるようにすることです。では、(オプションの) 属性をその名前で直接指定する代わりに、「xsd:anyAttribute」を具体的な名前「exporter」に制限する目的は何でしょうか?

4

2 に答える 2

1

ドキュメントの間違いである可能性が高く、 を使用して属性を宣言するようにインデントされていますxsd:attribute

xsd:anyAttributeはありません@name

<anyAttribute
  id = ID
  namespace = ((##any | ##other) | List of (anyURI | (##targetNamespace | ##local)) )  : ##any
  processContents = (lax | skip | strict) : strict
  {any attributes with non-schema namespace . . .}>
  Content: (annotation?)
</anyAttribute>
于 2011-10-14T11:44:56.433 に答える
0

The anyAttribute element enables the author to extend the XML document with attributes not specified by the schema.

Source: http://www.w3schools.com/schema/el_anyattribute.asp

Here will be everything you need to know! You have to see this anyAttribute like a wildcard.

于 2011-10-14T10:43:28.833 に答える