Debian Codegraph @

src/trans.h

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 /* $Id: trans.h,v 1.11 2004/11/21 23:40:40 mgrouch Exp $ */
2
3 #ifndef __TRANS_H
4 #define __TRANS_H
5
6 /*
7
8 XMLStarlet: Command Line Toolkit to query/edit/check/transform XML documents
9
10 Copyright (c) 2002-2004 Mikhail Grushinskiy. All Rights Reserved.
11
12 Permission is hereby granted, free of charge, to any person obtaining a copy
13 of this software and associated documentation files (the "Software"), to deal
14 in the Software without restriction, including without limitation the rights
15 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
16 copies of the Software, and to permit persons to whom the Software is
17 furnished to do so, subject to the following conditions:
18
19 The above copyright notice and this permission notice shall be included in
20 all copies or substantial portions of the Software.
21
22 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
25 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
26 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
27 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
28 THE SOFTWARE.
29
30 */
31
32 #include <libxml/xmlmemory.h>
33 #include <libxml/debugXML.h>
34 #include <libxml/xmlIO.h>
35 #include <libxml/HTMLtree.h>
36 #include <libxml/xinclude.h>
37 #include <libxml/parserInternals.h>
38 #include <libxml/uri.h>
39
40 #include <libxslt/xslt.h>
41 #include <libxslt/xsltInternals.h>
42 #include <libxslt/transform.h>
43 #include <libxslt/xsltutils.h>
44 #include <libxslt/extensions.h>
45 #include <libexslt/exslt.h>
46
47 #ifdef LIBXML_XINCLUDE_ENABLED
48 #include <libxml/xinclude.h>
49 #endif
50 #ifdef LIBXML_CATALOG_ENABLED
51 #include <libxml/catalog.h>
52 #endif
53
54 #define MAX_PARAMETERS 256
55 #define MAX_PATHS 256
56
57 typedef struct _xsltOptions {
58 int noval; /* do not validate against DTDs or schemas */
59 int nonet; /* refuse to fetch DTDs or entities over network */
60 int show_extensions; /* display list of extensions */
61 int omit_decl; /* omit xml declaration */
62 int noblanks; /* Remove insignificant spaces from XML tree */
63 int embed; /* Allow applying embedded stylesheet */
64 #ifdef LIBXML_XINCLUDE_ENABLED
65 int xinclude; /* do XInclude processing on input documents */
66 #endif
67 #ifdef LIBXML_HTML_ENABLED
68 int html; /* inputs are in HTML format */
69 #endif
70 #ifdef LIBXML_CATALOG_ENABLED
71 int catalogs; /* use SGML catalogs from $SGML_CATALOG_FILES */
72 #endif
73 } xsltOptions;
74
75 typedef xsltOptions *xsltOptionsPtr;
76
77
78 extern int errorno;
79
80 void xsltInitOptions(xsltOptionsPtr ops);
81
82 void xsltInitLibXml(xsltOptionsPtr ops);
83
84 void xsltProcess(xsltOptionsPtr ops, xmlDocPtr doc,
85 const char **params, xsltStylesheetPtr cur,
86 const char *filename);
87
88 xmlDocPtr xsltTransform(xsltOptionsPtr ops, xmlDocPtr doc,
89 const char **params, xsltStylesheetPtr cur,
90 const char *filename);
91
92 int xsltRun(xsltOptionsPtr ops, char* xsl,
93 const char **params,
94 int count, char **docs);
95
96 #endif /* __TRANS_H */