diff options
Diffstat (limited to 'src/plugins/xml/XmlOutput.cpp')
-rw-r--r-- | src/plugins/xml/XmlOutput.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/plugins/xml/XmlOutput.cpp b/src/plugins/xml/XmlOutput.cpp index ea1bc30..ffdecab 100644 --- a/src/plugins/xml/XmlOutput.cpp +++ b/src/plugins/xml/XmlOutput.cpp @@ -51,20 +51,19 @@ void XmlTransformer::writeXml(Handle<Document> doc, std::ostream &out, Manager &mgr = doc->getManager(); // the outermost tag is the document itself. Rooted<Element> document{new Element{mgr, {nullptr}, "document"}}; - // write imports for all referenced domains. - for (auto d : doc->getDomains()) { + // write imports for all referenced ontologies. + for (auto d : doc->getOntologys()) { Rooted<Element> import = - createImportElement(document, d, resourceManager, "domain"); + createImportElement(document, d, resourceManager, "ontology"); if (import != nullptr) { document->addChild(import); // add the import as namespace information to the document node as // well. document->getAttributes().emplace( - std::string("xmlns:") + d->getName(), - import->getAttributes()["src"]); + std::string("xmlns:") + d->getName(), d->getName()); } else { logger.warning(std::string( - "The location of domain \"" + d->getName() + + "The location of ontology \"" + d->getName() + "\" could not be retrieved using the given ResourceManager.")); } } @@ -200,7 +199,7 @@ Rooted<Element> XmlTransformer::transformStructuredEntity( Rooted<Element> elem{ new Element{mgr, parent, s->getDescriptor()->getName(), transformAttributes(s->getName(), s.get(), logger, pretty), - s->getDescriptor()->getParent().cast<Domain>()->getName()}}; + s->getDescriptor()->getParent().cast<Ontology>()->getName()}}; // then transform the children. transformChildren(s.get(), elem, logger, pretty); return elem; |