[yelp/yelp-3-0] [yelp-mallard-document] Do XInclude on Mallard pages



commit a4e5a70bf2469ee4a7bb30c1fdf33dafb9230433
Author: Shaun McCance <shaunm gnome org>
Date:   Fri Mar 26 14:38:54 2010 -0500

    [yelp-mallard-document] Do XInclude on Mallard pages

 libyelp/yelp-mallard-document.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/libyelp/yelp-mallard-document.c b/libyelp/yelp-mallard-document.c
index fb7d49f..7b3a0ee 100644
--- a/libyelp/yelp-mallard-document.c
+++ b/libyelp/yelp-mallard-document.c
@@ -437,6 +437,11 @@ mallard_page_data_walk (MallardPageData *page_data)
                                              XML_PARSE_NOENT   | XML_PARSE_NONET   );
         if (page_data->xmldoc == NULL)
             goto done;
+        if (xmlXIncludeProcessFlags (page_data->xmldoc,
+                                     XML_PARSE_DTDLOAD | XML_PARSE_NOCDATA |
+                                     XML_PARSE_NOENT   | XML_PARSE_NONET   )
+            < 0)
+            goto done;
         page_data->cur = xmlDocGetRootElement (page_data->xmldoc);
         page_data->cache = xmlDocGetRootElement (priv->cache);
         page_data->xpath = xmlXPathNewContext (page_data->xmldoc);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]