libxslt_pipes.c revision d65680efa46fa49e8bf14e67b29b782510ff934c
/*
* libxslt_pipes.c: a program for performing a series of XSLT
* transformations
*
* Writen by Panos Louridas, based on libxslt_tutorial.c by John Fleck.
*
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Cambridge, MA 02139, USA.
*
*/
/*
* Sun GPL Disclaimer: For the avoidance of doubt, except that if any license choice
* other than GPL or LGPL is available it will apply instead, Sun elects to use only
* the General Public License version 2 (GPLv2) at this time for any software where
* a choice of GPL license versions is made available with the language indicating
* that GPLv2 or any later version may be used, or where a choice of which version
* of the GPL is applied is otherwise unspecified.
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <libxslt/transform.h>
#include <libxslt/xsltutils.h>
extern int xmlLoadExtDtdDefaultValue;
printf("Usage: %s [options] stylesheet [stylesheet ...] file [file ...]\n",
name);
printf(" --out file: send output to file\n");
printf(" --param name value: pass a (parameter,value) pair\n");
}
int arg_indx;
int params_indx = 0;
int stylesheet_indx = 0;
int file_indx = 0;
int i, j, k;
int return_value = 0;
if (argc <= 1) {
return_value = 1;
goto finish;
}
/* Collect arguments */
break;
arg_indx++;
if (params_indx >= 16) {
return_value = 1;
goto finish;
}
arg_indx++;
} else {
return_value = 1;
goto finish;
}
}
params[params_indx] = 0;
/* Collect and parse stylesheets and files to be transformed */
char *argument =
} else {
}
} else {
}
}
/* Process files */
for (i = 0; files[i]; i++) {
for (j = 0; stylesheets[j]; j++) {
}
if (stylesheets[0]) {
} else {
}
}
for (k = 0; stylesheets[k]; k++) {
}
return(return_value);
}