Debian Codegraph @

src/source/xslt_priv.h

raw symbols SCIP
1 /*
2 * Copyright 2014 Red Hat Inc., Durham, North Carolina.
3 * All Rights Reserved.
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 *
19 *
20 */
21 #ifndef OSCAP_SOURCE_XSLT_H
22 #define OSCAP_SOURCE_XSLT_H
23
24 #ifdef HAVE_CONFIG_H
25 #include <config.h>
26 #endif
27
28 #include "common/public/oscap.h"
29 #include "common/util.h"
30 #include "source/public/oscap_source.h"
31
32
33 /**
34 * Apply stylesheet on XML file (represented by oscap_source structure). If xsltfile
35 * is an absolute path to the stylesheet, path_to_xslt will not be used.
36 * @memberof oscap_source
37 * @param source oscap_surce structure representing file to transform
38 * @param xsltfile absolute path to the stylesheet document or relative given the path_to_xslt
39 * @param outfile output filename
40 * @param params external params for xsl transformation
41 * @param path_to_xslt optional path to xsl transformations
42 * @returns 0 on success
43 */
44 int oscap_source_apply_xslt_path(struct oscap_source *source, const char *xsltfile, const char *outfile, const char **params, const char *path_to_xslt);
45
46 /**
47 * Apply stylesheet on XML file (represented by oscap_source structure). If xsltfile
48 * is an absolute path to the stylesheet, path_to_xslt will not be used.
49 * @memberof oscap_source
50 * @param source oscap_surce structure representing file to transform
51 * @param xsltfile absolute path to the stylesheet document or relative given the path_to_xslt
52 * @param params external params for xsl transformation
53 * @param path_to_xslt optional path to xsl transformations
54 * @returns newly allocated buffer containing result of XSLT application. NULL is returned on error
55 */
56 char *oscap_source_apply_xslt_path_mem(struct oscap_source *source, const char *xsltfile, const char **params, const char *path_to_xslt);
57
58 #endif