Commit 6218b31b authored by William M. Brack's avatar William M. Brack
Browse files

small change to last fix, to get xml:base right

* catalog.c: small change to last fix, to get xml:base right
parent b7b54de6
Wed Oct 6 10:50:03 PDT 2004 William Brack <wbrack@mmm.com.hk>
* catalog.c: small change to last fix, to get xml:base right
Wed Oct 6 09:33:51 PDT 2004 William Brack <wbrack@mmm.com.hk>
 
* catalog.c: added code to handle <group>, including dumping
......
......@@ -550,8 +550,13 @@ static void xmlDumpXMLCatalogNode(xmlCatalogEntryPtr catal, xmlNodePtr catalog,
case XML_CATA_GROUP:
node = xmlNewDocNode(doc, ns, BAD_CAST "group", NULL);
xmlSetProp(node, BAD_CAST "id", cur->name);
if (cur->value != NULL)
xmlSetProp(node, BAD_CAST "uri", cur->value);
if (cur->value != NULL) {
xmlNsPtr xns;
xns = xmlSearchNsByHref(doc, node, XML_XML_NAMESPACE);
if (xns != NULL)
xmlSetNsProp(node, xns, BAD_CAST "base",
cur->value);
}
switch (cur->prefer) {
case XML_CATA_PREFER_NONE:
break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment