mirror of
https://gitlab.gnome.org/GNOME/libxml2
synced 2025-03-28 21:33:13 +00:00
small change to last fix, to get xml:base right
* catalog.c: small change to last fix, to get xml:base right
This commit is contained in:
parent
b7b54de6c6
commit
6218b31b7f
@ -1,3 +1,7 @@
|
||||
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user