[yelp] yelp-mallard-document: Pass all extensions into the cache
- From: Shaun McCance <shaunm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp] yelp-mallard-document: Pass all extensions into the cache
- Date: Mon, 20 Feb 2012 14:35:44 +0000 (UTC)
commit 8faeb154e4982be096dda1fc4d1e9f1495323744
Author: Shaun McCance <shaunm gnome org>
Date: Mon Feb 20 09:35:06 2012 -0500
yelp-mallard-document: Pass all extensions into the cache
libyelp/yelp-mallard-document.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/libyelp/yelp-mallard-document.c b/libyelp/yelp-mallard-document.c
index fbb9c30..8ea5b95 100644
--- a/libyelp/yelp-mallard-document.c
+++ b/libyelp/yelp-mallard-document.c
@@ -40,7 +40,6 @@
#define STYLESHEET DATADIR"/yelp/xslt/mal2html.xsl"
#define MALLARD_NS "http://projectmallard.org/1.0/"
-#define MALLARD_FACET_NS "http://projectmallard.org/facet/1.0/"
typedef enum {
MALLARD_STATE_BLANK,
@@ -692,10 +691,10 @@ mallard_page_data_info (MallardPageData *page_data,
else if (xml_node_is_ns_name (child, MALLARD_NS, BAD_CAST "revision")) {
xmlAddChild (cache_node, xmlCopyNode (child, 1));
}
- else if (xml_node_is_ns_name (child, MALLARD_FACET_NS, BAD_CAST "tag") ||
- xml_node_is_ns_name (child, MALLARD_FACET_NS, BAD_CAST "match") ||
- xml_node_is_ns_name (child, MALLARD_FACET_NS, BAD_CAST "choice") ) {
- xmlAddChild (cache_node, xmlCopyNode (child, 1));
+ else {
+ if (child->ns != NULL && !xmlStrEqual(child->ns->href, MALLARD_NS)) {
+ xmlAddChild (cache_node, xmlCopyNode (child, 1));
+ }
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]