|
@@ 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); |
|
@@ 84-91 (lines=8) @@
|
| 81 |
|
return function () use ($schema, $node, $attGroup) { |
| 82 |
|
foreach ($node->childNodes as $childNode) { |
| 83 |
|
switch ($childNode->localName) { |
| 84 |
|
case 'attribute': |
| 85 |
|
if ($childNode->hasAttribute('ref')) { |
| 86 |
|
$attribute = $this->findSomething('findAttribute', $schema, $node, $childNode->getAttribute('ref')); |
| 87 |
|
} else { |
| 88 |
|
$attribute = $this->loadAttribute($schema, $childNode); |
| 89 |
|
} |
| 90 |
|
$attGroup->addAttribute($attribute); |
| 91 |
|
break; |
| 92 |
|
case 'attributeGroup': |
| 93 |
|
|
| 94 |
|
$attribute = $this->findSomething('findAttributeGroup', $schema, $node, $childNode->getAttribute('ref')); |