|
@@ 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")); |
|
@@ 499-506 (lines=8) @@
|
| 496 |
|
case 'all': |
| 497 |
|
$this->loadSequence($type, $childNode); |
| 498 |
|
break; |
| 499 |
|
case 'attribute': |
| 500 |
|
if ($childNode->hasAttribute("ref")) { |
| 501 |
|
$attribute = $this->findSomething('findAttribute', $type->getSchema(), $node, $childNode->getAttribute("ref")); |
| 502 |
|
} else { |
| 503 |
|
$attribute = $this->loadAttribute($type->getSchema(), $childNode); |
| 504 |
|
} |
| 505 |
|
$type->addAttribute($attribute); |
| 506 |
|
break; |
| 507 |
|
case 'attributeGroup': |
| 508 |
|
$attribute = $this->findSomething('findAttributeGroup', $type->getSchema(), $node, $childNode->getAttribute("ref")); |
| 509 |
|
$type->addAttribute($attribute); |