diff --git a/external/xemil b/external/xemil index d0379fc..3b7633c 160000 --- a/external/xemil +++ b/external/xemil @@ -1 +1 @@ -Subproject commit d0379fc8699c0a9a9c891d4d9a8737b406a06a85 +Subproject commit 3b7633c2cb47e2b378a77441b078f462941a6336 diff --git a/src/process.c b/src/process.c index b191319..3746007 100644 --- a/src/process.c +++ b/src/process.c @@ -6,7 +6,8 @@ static int parse_file(const char* top, const char* full) { xemil_t* handle = xl_open_file(full); int st = 1; - handle->new_text = 1; + handle->param.new_text = 1; + handle->param.do_xinclude = 1; if(handle != NULL && xl_parse(handle)) { if(handle->root == NULL || strcmp(handle->root->name, "document") != 0) { diff --git a/src/site.c b/src/site.c index fdb3292..3a49381 100644 --- a/src/site.c +++ b/src/site.c @@ -90,7 +90,7 @@ int action_site(int argc, char** argv) { io_mkdir("build", 0755); - if((skinconf = xl_open_file("site/skinconf.xml")) == NULL || !(skinconf->new_text = 1) || !xl_parse(skinconf)) { + if((skinconf = xl_open_file("site/skinconf.xml")) == NULL || !(skinconf->param.new_text = skinconf->param.do_xinclude = 1) || !xl_parse(skinconf)) { fprintf(stderr, "Failed to parse site/skinconf.xml!\n"); st = 1; goto cleanup;