@@ 72-79 (lines=8) @@ | ||
69 | return function () use ($schema, $node, $attGroup) { |
|
70 | foreach ($node->childNodes as $childNode) { |
|
71 | switch ($childNode->localName) { |
|
72 | case 'attribute': |
|
73 | if ($childNode->hasAttribute('ref')) { |
|
74 | $attribute = $this->findSomething('findAttribute', $schema, $node, $childNode->getAttribute('ref')); |
|
75 | } else { |
|
76 | $attribute = $this->loadAttribute($schema, $childNode); |
|
77 | } |
|
78 | $attGroup->addAttribute($attribute); |
|
79 | break; |
|
80 | case 'attributeGroup': |
|
81 | ||
82 | $attribute = $this->findSomething('findAttributeGroup', $schema, $node, $childNode->getAttribute('ref')); |
|
@@ 501-508 (lines=8) @@ | ||
498 | case 'all': |
|
499 | $this->loadSequence($type, $childNode); |
|
500 | break; |
|
501 | case 'attribute': |
|
502 | if ($childNode->hasAttribute('ref')) { |
|
503 | $attribute = $this->findSomething('findAttribute', $type->getSchema(), $node, $childNode->getAttribute('ref')); |
|
504 | } else { |
|
505 | $attribute = $this->loadAttribute($type->getSchema(), $childNode); |
|
506 | } |
|
507 | $type->addAttribute($attribute); |
|
508 | break; |
|
509 | case 'attributeGroup': |
|
510 | $attribute = $this->findSomething('findAttributeGroup', $type->getSchema(), $node, $childNode->getAttribute('ref')); |
|
511 | $type->addAttribute($attribute); |