This file is indexed.

/usr/include/ui-gxmlcpp/XSLTrans.hpp is in libui-gxmlcpp-dev 1.4.4-1build2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
/*
 * (C) Copyright 2002-2003, Schlund+Partner AG
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library 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
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/

/**
 * @file XSLTrans.hpp
 * @version @$Id$
 * @author Schlund + Partner AG
 * @brief *ps*
 *
 * (C) Copyright by Schlund+Partner AG
 *
 * Synopsis: @#include <ui-gxmlcpp/XSLTrans.hpp>
 *
 */

#ifndef UI_GXML_XSLTRANS_HPP
#define UI_GXML_XSLTRANS_HPP

// THIS IS A COMPAT API ONLY
#include <ui-gxmlcpp/compat_warning.h>

// STDC++
#include <string>

// C++ Libraries
#include <ui-utilcpp/auto_ptr_compat.hpp>
#include <ui-gxmlcpp/XMLDump.hpp>
#include <ui-gxmlcpp/XMLTree.hpp>

// C libraries
#include <libxml/xpath.h>
#include <libxml/tree.h>
#include <libxslt/xsltInternals.h>

namespace UI {
namespace GXML {

class XSLTrans
{
public:
	/** @brief Error codes for exceptions. */
	enum ErrorCode
	{
		Parse_=1,  // Stylesheet not parsed (not well formed XML)
		Style_,    // Not a valid stylesheet
		Trans_     // Transforming error
	};
	/** @brief Exceptions for this class. */
	typedef CodeException<ErrorCode> Exception;

	XSLTrans(char const * xmlBuffer, int size=-1, std::string const & baseURI="");
	XSLTrans(std::string const & xmlString, std::string const & baseURI="");
	XSLTrans(std::ifstream & f, std::string const & baseURI="");

	~XSLTrans();

	xsltStylesheetPtr getStylesheetPtr();

	// Trans into XMLTree
	UI::Util::auto_ptr<XMLTree> transToXMLTree(xmlDocPtr const doc) const;

	UI::Util::auto_ptr<XMLDump> trans(xmlDocPtr const doc) const;
	UI::Util::auto_ptr<XMLDump> trans(XMLTree const * xmlTree) const;
	UI::Util::auto_ptr<XMLDump> trans(std::string const & xmlString) const;

private:
	xmlDocPtr _doc;
	xsltStylesheetPtr _style;

	void genTrans(char const * xmlBuffer, int size=-1, std::string const & baseURI="");

	/** @bug This is not used (?!). */
	static char const * _defaultEncoding;
};

}}
#endif