|
@@ 67-74 (lines=8) @@
|
| 64 |
|
return function () use ($schema, $node, $attGroup) { |
| 65 |
|
foreach ($node->childNodes as $childNode) { |
| 66 |
|
switch ($childNode->localName) { |
| 67 |
|
case 'attribute': |
| 68 |
|
if ($childNode->hasAttribute("ref")) { |
| 69 |
|
$attribute = $this->findSomething('findAttribute', $schema, $node, $childNode->getAttribute("ref")); |
| 70 |
|
} else { |
| 71 |
|
$attribute = $this->loadAttribute($schema, $childNode); |
| 72 |
|
} |
| 73 |
|
$attGroup->addAttribute($attribute); |
| 74 |
|
break; |
| 75 |
|
case 'attributeGroup': |
| 76 |
|
|
| 77 |
|
$attribute = $this->findSomething('findAttributeGroup', $schema, $node, $childNode->getAttribute("ref")); |
|
@@ 491-498 (lines=8) @@
|
| 488 |
|
case 'all': |
| 489 |
|
$this->loadSequence($type, $childNode); |
| 490 |
|
break; |
| 491 |
|
case 'attribute': |
| 492 |
|
if ($childNode->hasAttribute("ref")) { |
| 493 |
|
$attribute = $this->findSomething('findAttribute', $type->getSchema(), $node, $childNode->getAttribute("ref")); |
| 494 |
|
} else { |
| 495 |
|
$attribute = $this->loadAttribute($type->getSchema(), $childNode); |
| 496 |
|
} |
| 497 |
|
$type->addAttribute($attribute); |
| 498 |
|
break; |
| 499 |
|
case 'attributeGroup': |
| 500 |
|
$attribute = $this->findSomething('findAttributeGroup', $type->getSchema(), $node, $childNode->getAttribute("ref")); |
| 501 |
|
$type->addAttribute($attribute); |