diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2006-10-11 21:19:49 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2006-10-11 21:19:49 +0000 |
commit | f32d5c181daca4ad1f7c01b86960748bbc2ad500 (patch) | |
tree | 5745e2e10f45d8c006898f2c666c4812b8e40c7a /xsltproc/xsltproc.c | |
parent | e810227affa1f0f69d291532898e3efc84181df9 (diff) | |
download | libxslt-f32d5c181daca4ad1f7c01b86960748bbc2ad500.tar.gz libxslt-f32d5c181daca4ad1f7c01b86960748bbc2ad500.tar.bz2 libxslt-f32d5c181daca4ad1f7c01b86960748bbc2ad500.zip |
applied fix for accessor functions of a stylesheet returning pointers to
* python/libxslt-python-api.xml: applied fix for accessor functions
of a stylesheet returning pointers to immutable strings, patch
from #320540
* xsltproc/xsltproc.c: fix the xinclude on stylehseet problem
by adding a new parameter to xsltproc names --xincludestyle
Daniel
Diffstat (limited to 'xsltproc/xsltproc.c')
-rw-r--r-- | xsltproc/xsltproc.c | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/xsltproc/xsltproc.c b/xsltproc/xsltproc.c index 15848f44..7f6eeabe 100644 --- a/xsltproc/xsltproc.c +++ b/xsltproc/xsltproc.c @@ -85,6 +85,7 @@ static int html = 0; static int load_trace = 0; #ifdef LIBXML_XINCLUDE_ENABLED static int xinclude = 0; +static int xincludestyle = 0; #endif static int profile = 0; @@ -514,6 +515,7 @@ static void usage(const char *name) { #endif #ifdef LIBXML_XINCLUDE_ENABLED printf("\t--xinclude : do XInclude processing on document input\n"); + printf("\t--xincludestyle : do XInclude processing on stylesheets\n"); #endif printf("\t--load-trace : print trace of all external entites loaded\n"); printf("\t--profile or --norman : dump profiling informations \n"); @@ -652,6 +654,9 @@ main(int argc, char **argv) } else if ((!strcmp(argv[i], "-xinclude")) || (!strcmp(argv[i], "--xinclude"))) { xinclude++; + } else if ((!strcmp(argv[i], "-xincludestyle")) || + (!strcmp(argv[i], "--xincludestyle"))) { + xincludestyle++; xsltSetXIncludeDefault(1); #endif } else if ((!strcmp(argv[i], "-load-trace")) || @@ -779,16 +784,18 @@ main(int argc, char **argv) style = xmlReadFile((const char *) argv[i], NULL, options); if (timing) endTimer("Parsing stylesheet %s", argv[i]); - if (style != NULL) { - if (timing) - startTimer(); + if (xincludestyle) { + if (style != NULL) { + if (timing) + startTimer(); #if LIBXML_VERSION >= 20603 - xmlXIncludeProcessFlags(style, XSLT_PARSE_OPTIONS); + xmlXIncludeProcessFlags(style, XSLT_PARSE_OPTIONS); #else - xmlXIncludeProcess(style); + xmlXIncludeProcess(style); #endif - if (timing) { - endTimer("XInclude processing %s", argv[i]); + if (timing) { + endTimer("XInclude processing %s", argv[i]); + } } } if (style == NULL) { |