|
|
@@ -1507,7 +1507,12 @@ if($DBG){echo 'L.' . __LINE__ . ' $validateConvertedTransactionXsdString:';print
|
|
|
$rootNode->appendChild($elNode);
|
|
|
$elNode->setAttribute('name', $ssName);
|
|
|
$elNode->setAttribute('type', "{$tnsPrefix}:{$ssName}Type");
|
|
|
- if (!$simple) $elNode->setAttributeNS($rootWfsNsUri, "{$rootWfsNs}:namespace", $aclNamespaceUri);
|
|
|
+ if (!$simple) {
|
|
|
+ if (!empty($schema['@namespace'])) {// TODO: @namespace is required?
|
|
|
+ list($nsUri, $prefix, $name) = Api_WfsNs::parseObjectNsUri($schema['@namespace']);
|
|
|
+ $elNode->setAttributeNS($rootWfsNsUri, "{$rootWfsNs}:namespace", '{' . $nsUri . '}' . $name);
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|