Debian Codegraph @

src/trans.h

raw ◀ ▶
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 #include <libxml/globals.h>
40
41 #include <libxslt/xslt.h>
42 #include <libxslt/xsltInternals.h>
43 #include <libxslt/transform.h>
44 #include <libxslt/xsltutils.h>
45 #include <libxslt/extensions.h>
46 #include <libexslt/exslt.h>
47
48 #ifdef LIBXML_XINCLUDE_ENABLED
49 #include <libxml/xinclude.h>
50 #endif
51 #ifdef LIBXML_CATALOG_ENABLED
52 #include <libxml/catalog.h>
53 #endif
54
55 #define MAX_PARAMETERS 256
56 #define MAX_PATHS 256
57
58 typedef struct _xsltOptions {
59 int noval; /* do not validate against DTDs or schemas */
60 int nonet; /* refuse to fetch DTDs or entities over network */
61 int show_extensions; /* display list of extensions */
62 int omit_decl; /* omit xml declaration */
63 int noblanks; /* Remove insignificant spaces from XML tree */
64 int embed; /* Allow applying embedded stylesheet */
65 #ifdef LIBXML_XINCLUDE_ENABLED
66 int xinclude; /* do XInclude processing on input documents */
67 #endif
68 #ifdef LIBXML_HTML_ENABLED
69 int html; /* inputs are in HTML format */
70 #endif
71 #ifdef LIBXML_CATALOG_ENABLED
72 int catalogs; /* use SGML catalogs from $SGML_CATALOG_FILES */
73 #endif
74 } xsltOptions;
75
76 typedef xsltOptions *xsltOptionsPtr;
77
78
79 extern int errorno;
80
81 void xsltInitOptions(xsltOptionsPtr ops);
82
83 void xsltInitLibXml(xsltOptionsPtr ops);
84
85 void xsltProcess(xsltOptionsPtr ops, xmlDocPtr doc,
86 const char **params, xsltStylesheetPtr cur,
87 const char *filename);
88
89 xmlDocPtr xsltTransform(xsltOptionsPtr ops, xmlDocPtr doc,
90 const char **params, xsltStylesheetPtr cur,
91 const char *filename);
92
93 int xsltRun(xsltOptionsPtr ops, char* xsl,
94 const char **params,
95 int count, char **docs);
96
97 #endif /* __TRANS_H */