mirror of
https://gitlab.gnome.org/GNOME/libxslt
synced 2025-07-31 02:43:06 +03:00
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
This commit is contained in:
@ -1,3 +1,11 @@
|
||||
Wed Oct 11 23:16:10 CEST 2006 Daniel Veillard <daniel@veillard.com>
|
||||
|
||||
* 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
|
||||
|
||||
Wed Oct 11 22:27:37 CEST 2006 Daniel Veillard <daniel@veillard.com>
|
||||
|
||||
* xsltproc/xsltproc.c: apply patch from Gary Coady to compile when
|
||||
|
@ -141,22 +141,22 @@
|
||||
</function>
|
||||
<function name='xsltStylesheetGetMethod' file='python_accessor'>
|
||||
<info>Get the output method of a stylesheet</info>
|
||||
<return type='xmlChar *' info="The output method" field="method"/>
|
||||
<return type='const xmlChar *' info="The output method" field="method"/>
|
||||
<arg name='style' type='xsltStylesheetPtr' info='the stylesheet'/>
|
||||
</function>
|
||||
<function name='xsltStylesheetGetMethodURI' file='python_accessor'>
|
||||
<info>Get the output method URI of a stylesheet</info>
|
||||
<return type='xmlChar *' info="The output method URI" field="methodURI"/>
|
||||
<return type='const xmlChar *' info="The output method URI" field="methodURI"/>
|
||||
<arg name='style' type='xsltStylesheetPtr' info='the stylesheet'/>
|
||||
</function>
|
||||
<function name='xsltStylesheetGetVersion' file='python_accessor'>
|
||||
<info>Get the output version of a stylesheet</info>
|
||||
<return type='xmlChar *' info="The output version" field="version"/>
|
||||
<return type='const xmlChar *' info="The output version" field="version"/>
|
||||
<arg name='style' type='xsltStylesheetPtr' info='the stylesheet'/>
|
||||
</function>
|
||||
<function name='xsltStylesheetGetEncoding' file='python_accessor'>
|
||||
<info>Get the output encoding of a stylesheet</info>
|
||||
<return type='xmlChar *' info="The output encoding" field="encoding"/>
|
||||
<return type='const xmlChar *' info="The output encoding" field="encoding"/>
|
||||
<arg name='style' type='xsltStylesheetPtr' info='the stylesheet'/>
|
||||
</function>
|
||||
<function name='xsltStylesheetGetDoctypePublic' file='python_accessor'>
|
||||
|
@ -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) {
|
||||
|
Reference in New Issue
Block a user