-
-void ContentReference::addPrefixes(const std::set<Namespace>& namespaces)
-{
- for (set<Namespace>::const_iterator n = namespaces.begin(); n!=namespaces.end(); ++n) {
- // Check for xmlns:xml.
- if (!XMLString::equals(n->getNamespacePrefix(), xmlconstants::XML_PREFIX) || !XMLString::equals(n->getNamespaceURI(), xmlconstants::XML_NS))
- addInclusivePrefix(n->getNamespacePrefix());
- }
-}
-
-void ContentReference::addPrefixes(const XMLObject& xmlObject)
-{
- addPrefixes(xmlObject.getNamespaces());
- const list<XMLObject*>& children = xmlObject.getOrderedChildren();
- for (list<XMLObject*>::const_iterator child = children.begin(); child!=children.end(); ++child) {
- if (*child)
- addPrefixes(*(*child));
- }
-}