├── .gitignore ├── .gitmodules ├── .jshintrc ├── .travis.yml ├── README.md ├── appveyor.yml ├── benchmark.js ├── binding.gyp ├── common.gypi ├── deps ├── checkdep.js ├── libxslt.config │ ├── linux │ │ ├── arm │ │ │ ├── config.h │ │ │ ├── libexslt │ │ │ │ └── exsltconfig.h │ │ │ └── libxslt │ │ │ │ └── xsltconfig.h │ │ ├── arm64 │ │ │ ├── config.h │ │ │ ├── libexslt │ │ │ │ └── exsltconfig.h │ │ │ └── libxslt │ │ │ │ └── xsltconfig.h │ │ ├── ia32 │ │ │ ├── config.h │ │ │ ├── libexslt │ │ │ │ └── exsltconfig.h │ │ │ └── libxslt │ │ │ │ └── xsltconfig.h │ │ └── x64 │ │ │ ├── config.h │ │ │ ├── libexslt │ │ │ └── exsltconfig.h │ │ │ └── libxslt │ │ │ └── xsltconfig.h │ ├── mac │ │ ├── arm64 │ │ │ ├── config.h │ │ │ ├── libexslt │ │ │ │ └── exsltconfig.h │ │ │ └── libxslt │ │ │ │ └── xsltconfig.h │ │ ├── ia32 │ │ │ ├── config.h │ │ │ ├── libexslt │ │ │ │ └── exsltconfig.h │ │ │ └── libxslt │ │ │ │ └── xsltconfig.h │ │ └── x64 │ │ │ ├── config.h │ │ │ ├── libexslt │ │ │ └── exsltconfig.h │ │ │ └── libxslt │ │ │ └── xsltconfig.h │ ├── solaris │ │ ├── ia32 │ │ │ ├── config.h │ │ │ ├── libexslt │ │ │ │ └── exsltconfig.h │ │ │ └── libxslt │ │ │ │ └── xsltconfig.h │ │ └── x64 │ │ │ ├── config.h │ │ │ ├── libexslt │ │ │ └── exsltconfig.h │ │ │ └── libxslt │ │ │ └── xsltconfig.h │ └── win │ │ ├── ia32 │ │ ├── config.h │ │ ├── libexslt │ │ │ └── exsltconfig.h │ │ └── libxslt │ │ │ └── xsltconfig.h │ │ └── x64 │ │ ├── config.h │ │ ├── libexslt │ │ └── exsltconfig.h │ │ └── libxslt │ │ └── xsltconfig.h └── libxslt.gyp ├── example.js ├── index.js ├── package-lock.json ├── package.json ├── readme.hbs ├── src ├── document.cc ├── document.h ├── node_libxslt.cc ├── node_libxslt.h ├── stylesheet.cc └── stylesheet.h └── test ├── libxslt.js └── resources ├── cd.xml ├── cd.xsl ├── collection.xml ├── disable-output-escaping.xsl ├── handle-quotes-in-string-params.xsl ├── implicit-omit-xml-declaration-html-out.xsl ├── implicit-omit-xml-declaration-text-out.xsl ├── min-value.xsl ├── omit-xml-declaration-text-out.xsl ├── omit-xml-declaration-xml-out.xsl ├── use-xpath-params.xsl ├── values.xml ├── xslbadinclude.xsl ├── xslbadparam.xsl ├── xslinclude.xsl └── xslincludefile.xsl /.gitignore: -------------------------------------------------------------------------------- 1 | # IDE Specific # 2 | #################### 3 | *.iml 4 | .idea 5 | 6 | # Project Specific # 7 | #################### 8 | /build/ 9 | /node_modules/ 10 | 11 | # OS generated files # 12 | ###################### 13 | .DS_Store 14 | .DS_Store? 15 | ._* 16 | .Spotlight-V100 17 | .Trashes 18 | ehthumbs.db 19 | Thumbs.db 20 | backup 21 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "deps/libxslt"] 2 | path = deps/libxslt 3 | url = https://gitlab.gnome.org/GNOME/libxslt.git 4 | -------------------------------------------------------------------------------- /.jshintrc: -------------------------------------------------------------------------------- 1 | { 2 | "node": true, 3 | "undef": true, 4 | "unused": true, 5 | "globals": { 6 | "describe": false, 7 | "it": false, 8 | "before": false 9 | } 10 | } -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "12" 4 | env: 5 | - CXX=g++-4.8 6 | 7 | addons: 8 | apt: 9 | sources: 10 | - ubuntu-toolchain-r-test 11 | packages: 12 | - g++-4.8 13 | 14 | sudo: false 15 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | node-libxslt 2 | ============ 3 | 4 | [![Build status](https://travis-ci.org/albanm/node-libxslt.svg)](https://travis-ci.org/albanm/node-libxslt) 5 | [![Code Climate](https://codeclimate.com/github/albanm/node-libxslt/badges/gpa.svg)](https://codeclimate.com/github/albanm/node-libxslt) 6 | [![NPM version](https://badge.fury.io/js/libxslt.svg)](http://badge.fury.io/js/libxslt) 7 | 8 | Node.js bindings for [libxslt](http://xmlsoft.org/libxslt/) compatible with [libxmljs](https://github.com/polotek/libxmljs/issues/226). 9 | 10 | Installation 11 | ------------ 12 | 13 | npm install libxslt 14 | 15 | From source: 16 | 17 | git clone https://github.com/albanm/node-libxslt.git 18 | git submodule update --init 19 | npm install 20 | npm test 21 | 22 | Basic usage 23 | ----------- 24 | 25 | ```js 26 | var libxslt = require('libxslt'); 27 | 28 | libxslt.parse(stylesheetString, function(err, stylesheet){ 29 | var params = { 30 | MyParam: 'my value' 31 | }; 32 | 33 | // 'params' parameter is optional 34 | stylesheet.apply(documentString, params, function(err, result){ 35 | // err contains any error from parsing the document or applying the stylesheet 36 | // result is a string containing the result of the transformation 37 | }); 38 | }); 39 | ``` 40 | 41 | Libxmljs integration 42 | -------------------- 43 | 44 | Node-libxslt depends on [libxmljs](https://github.com/polotek/libxmljs/issues/226) in the same way that [libxslt](http://xmlsoft.org/libxslt/) depends on [libxml](http://xmlsoft.org/). This dependancy makes possible to bundle and to load in memory libxml only once for users of both libraries. 45 | 46 | The libxmljs module required by node-libxslt is exposed as ```require('libxslt').libxmljs```. This prevents depending on libxmljs twice which is not optimal and source of weird bugs. 47 | 48 | It is possible to work with libxmljs documents instead of strings: 49 | 50 | ```js 51 | var libxslt = require('libxslt'); 52 | var libxmljs = libxslt.libxmljs; 53 | 54 | var stylesheetObj = libxmljs.parseXml(stylesheetString, { nocdata: true }); 55 | var stylesheet = libxslt.parse(stylesheetObj); 56 | 57 | var document = libxmljs.parseXml(documentString); 58 | stylesheet.apply(document, function(err, result){ 59 | // result is now a libxmljs document containing the result of the transformation 60 | }); 61 | 62 | ``` 63 | 64 | This is only useful if you already needed to parse a document before applying the stylesheet for previous manipulations. 65 | Or if you wish to be returned a document instead of a string for ulterior manipulations. 66 | In these cases you will prevent extraneous parsings and serializations. 67 | 68 | Includes 69 | -------- 70 | 71 | XSL includes are supported but relative paths must be given from the execution directory, usually the root of the project. 72 | 73 | Includes are resolved when parsing the stylesheet by libxml. Therefore the parsing task becomes IO bound, which is why you should not use synchronous parsing when you expect some includes. 74 | 75 | Sync or async 76 | ------------- 77 | 78 | The same *parse()* and *apply()* functions can be used in synchronous mode simply by removing the callback parameter. 79 | In this case if a parsing error occurs it will be thrown. 80 | 81 | ```js 82 | var lixslt = require('libxslt'); 83 | 84 | var stylesheet = libxslt.parse(stylesheetString); 85 | 86 | var result = stylesheet.apply(documentString); 87 | 88 | ``` 89 | 90 | The asynchronous functions use the [libuv work queue](http://nikhilm.github.io/uvbook/threads.html#libuv-work-queue) 91 | to provide parallelized computation in node.js worker threads. This makes it non-blocking for the main event loop of node.js. 92 | 93 | Note that libxmljs parsing doesn't use the work queue, so only a part of the process is actually parallelized. 94 | 95 | A small benchmark is available in the project. It has a very limited scope, it uses always the same small transformation a few thousand times. 96 | To run it use: 97 | 98 | node benchmark.js 99 | 100 | This is an example of its results with an intel core i5 3.1GHz: 101 | 102 | ``` 103 | 10000 synchronous parse from parsed doc in 52ms = 192308/s 104 | 10000 asynchronous parse in series from parsed doc in 229ms = 43668/s 105 | 10000 asynchronous parse in parallel from parsed doc in 56ms = 178571/s 106 | 10000 synchronous apply from parsed doc in 329ms = 30395/s 107 | 10000 asynchronous apply in series from parsed doc in 569ms = 17575/s 108 | 10000 asynchronous apply in parallel from parsed doc in 288ms = 34722/s 109 | 110 | ``` 111 | 112 | Observations: 113 | - it's pretty fast ! 114 | - asynchronous is slower when running in series. 115 | - asynchronous can become faster when concurrency is high. 116 | 117 | Conclusion: 118 | - use asynchronous by default it will be kinder to your main event loop and is pretty fast anyway. 119 | - use synchronous only if you really want the highest performance and expect low concurrency. 120 | - of course you can also use synchronous simply to reduce code depth. If you don't expect a huge load it will be ok. 121 | - DO NOT USE synchronous parsing if there is some includes in your XSL stylesheets. 122 | 123 | Environment compatibility 124 | ------------------------- 125 | 126 | For now 64bits linux and 32bits windows are confirmed. Other environments are probably ok, but not checked. Please report an issue if you encounter some difficulties. 127 | 128 | Node-libxslt depends on [node-gyp](https://github.com/TooTallNate/node-gyp), you will need to meet its requirements. This can be a bit painful mostly for windows users. The node-gyp version bundled in your npm will have to be greater than 0.13.0, so you might have to follow [these instructions to upgrade](https://github.com/TooTallNate/node-gyp/wiki/Updating-npm's-bundled-node-gyp). There is no system dependancy otherwise, libxslt is bundled in the project. 129 | 130 | API Reference 131 | ============= 132 | Node.js bindings for libxslt compatible with libxmljs 133 | 134 | 135 | ### libxslt.libxmljs 136 | The libxmljs module. Prevents the need for a user's code to require it a second time. Also prevent weird bugs. 137 | 138 | **Kind**: static property of [libxslt](#module_libxslt) 139 | 140 | ### libxslt.parse(source, [callback]) ⇒ Stylesheet 141 | Parse a XSL stylesheet 142 | 143 | If no callback is given the function will run synchronously and return the result or throw an error. 144 | 145 | **Kind**: static method of [libxslt](#module_libxslt) 146 | **Returns**: Stylesheet - Only if no callback is given. 147 | 148 | | Param | Type | Description | 149 | | --- | --- | --- | 150 | | source | string | Document | The content of the stylesheet as a string or a [libxmljs document](https://github.com/polotek/libxmljs/wiki/Document) | 151 | | [callback] | parseCallback | The callback that handles the response. Expects err and Stylesheet object. | 152 | 153 | 154 | ### libxslt.parseFile(sourcePath, callback) 155 | Parse a XSL stylesheet 156 | 157 | **Kind**: static method of [libxslt](#module_libxslt) 158 | 159 | | Param | Type | Description | 160 | | --- | --- | --- | 161 | | sourcePath | stringPath | The path of the file | 162 | | callback | parseFileCallback | The callback that handles the response. Expects err and Stylesheet object. | 163 | 164 | 165 | ### libxslt~Stylesheet 166 | **Kind**: inner class of [libxslt](#module_libxslt) 167 | 168 | * [~Stylesheet](#module_libxslt..Stylesheet) 169 | * [new Stylesheet(stylesheetDoc, stylesheetObj)](#new_module_libxslt..Stylesheet_new) 170 | * [.apply(source, [params], [options], [callback])](#module_libxslt..Stylesheet+apply) ⇒ string | Document 171 | * [.applyToFile(sourcePath, [params], [options], callback)](#module_libxslt..Stylesheet+applyToFile) 172 | 173 | 174 | #### new Stylesheet(stylesheetDoc, stylesheetObj) 175 | A compiled stylesheet. Do not call this constructor, instead use parse or parseFile. 176 | 177 | store both the source document and the parsed stylesheet 178 | if we don't store the stylesheet doc it will be deleted by garbage collector and it will result in segfaults. 179 | 180 | 181 | | Param | Type | Description | 182 | | --- | --- | --- | 183 | | stylesheetDoc | Document | XML document source of the stylesheet | 184 | | stylesheetObj | Document | Simple wrapper of a libxslt stylesheet | 185 | 186 | 187 | #### stylesheet.apply(source, [params], [options], [callback]) ⇒ string | Document 188 | Apply a stylesheet to a XML document 189 | 190 | If no callback is given the function will run synchronously and return the result or throw an error. 191 | 192 | **Kind**: instance method of [Stylesheet](#module_libxslt..Stylesheet) 193 | **Returns**: string | Document - Only if no callback is given. Type is the same as the source param. 194 | 195 | | Param | Type | Description | 196 | | --- | --- | --- | 197 | | source | string | Document | The XML content to apply the stylesheet to given as a string or a [libxmljs document](https://github.com/polotek/libxmljs/wiki/Document) | 198 | | [params] | object | Parameters passed to the stylesheet ([http://www.w3schools.com/xsl/el_with-param.asp](http://www.w3schools.com/xsl/el_with-param.asp)) | 199 | | [options] | applyOptions | Options | 200 | | [callback] | applyCallback | The callback that handles the response. Expects err and result of the same type as the source param passed to apply. | 201 | 202 | 203 | #### stylesheet.applyToFile(sourcePath, [params], [options], callback) 204 | Apply a stylesheet to a XML file 205 | 206 | **Kind**: instance method of [Stylesheet](#module_libxslt..Stylesheet) 207 | 208 | | Param | Type | Description | 209 | | --- | --- | --- | 210 | | sourcePath | string | The path of the file to read | 211 | | [params] | object | Parameters passed to the stylesheet ([http://www.w3schools.com/xsl/el_with-param.asp](http://www.w3schools.com/xsl/el_with-param.asp)) | 212 | | [options] | applyOptions | Options | 213 | | callback | applyToFileCallback | The callback that handles the response. Expects err and result as string. | 214 | 215 | 216 | ### libxslt~parseCallback : function 217 | Callback to the parse function 218 | 219 | **Kind**: inner typedef of [libxslt](#module_libxslt) 220 | 221 | | Param | Type | 222 | | --- | --- | 223 | | [err] | error | 224 | | [stylesheet] | Stylesheet | 225 | 226 | 227 | ### libxslt~parseFileCallback : function 228 | Callback to the parseFile function 229 | 230 | **Kind**: inner typedef of [libxslt](#module_libxslt) 231 | 232 | | Param | Type | 233 | | --- | --- | 234 | | [err] | error | 235 | | [stylesheet] | Stylesheet | 236 | 237 | 238 | ### libxslt~applyOptions 239 | Options for applying a stylesheet 240 | 241 | **Kind**: inner typedef of [libxslt](#module_libxslt) 242 | **Properties** 243 | 244 | | Name | Type | Description | 245 | | --- | --- | --- | 246 | | outputFormat | String | Force the type of the output, either 'document' or 'string'. Default is to use the type of the input. | 247 | | noWrapParams | boolean | If true then the parameters are XPath expressions, otherwise they are treated as strings. Default is false. | 248 | 249 | 250 | ### libxslt~applyCallback : function 251 | Callback to the Stylesheet.apply function 252 | 253 | **Kind**: inner typedef of [libxslt](#module_libxslt) 254 | 255 | | Param | Type | Description | 256 | | --- | --- | --- | 257 | | [err] | error | Error either from parsing the XML document if given as a string or from applying the styleshet | 258 | | [result] | string | Document | Result of the same type as the source param passed to apply | 259 | 260 | 261 | ### libxslt~applyToFileCallback : function 262 | Callback to the Stylesheet.applyToFile function 263 | 264 | **Kind**: inner typedef of [libxslt](#module_libxslt) 265 | 266 | | Param | Type | Description | 267 | | --- | --- | --- | 268 | | [err] | error | Error either from reading the file, parsing the XML document or applying the styleshet | 269 | | [result] | string | | 270 | 271 | *documented by [jsdoc-to-markdown](https://github.com/75lb/jsdoc-to-markdown)*. 272 | -------------------------------------------------------------------------------- /appveyor.yml: -------------------------------------------------------------------------------- 1 | environment: 2 | matrix: 3 | - nodejs_version: "12" 4 | 5 | os: Visual Studio 2015 6 | 7 | install: 8 | - ps: Install-Product node $env:nodejs_version 9 | - node --version 10 | - npm --version 11 | - git submodule update --init --recursive 12 | 13 | build_script: 14 | - npm install 15 | 16 | test_script: 17 | - npm test 18 | 19 | deploy: off 20 | -------------------------------------------------------------------------------- /benchmark.js: -------------------------------------------------------------------------------- 1 | var fs = require('fs'); 2 | var async = require('async'); 3 | var libxmljs = require("libxmljs"); 4 | var libxslt = require('./index'); 5 | 6 | var stylesheetStr = fs.readFileSync('./test/resources/cd.xsl', 'utf8'); 7 | var stylesheetObj = libxmljs.parseXml(stylesheetStr); 8 | var stylesheet = libxslt.parse(stylesheetObj); 9 | var docStr = fs.readFileSync('./test/resources/cd.xml', 'utf8'); 10 | var docObj = libxmljs.parseXml(docStr); 11 | 12 | var bench = function(name, iterations, f) { 13 | return function(callback) { 14 | var before = Date.now(); 15 | f(iterations, function() { 16 | var duration = (Date.now() - before); 17 | console.log('%d %s in %dms = %d/s', iterations, name, duration, Math.round(iterations / (duration / 1000))); 18 | if (callback) callback(); 19 | }); 20 | }; 21 | }; 22 | 23 | var stylesheetSyncParsingStr = function(iterations, callback) { 24 | for (var i = 0; i < iterations; i++) { 25 | libxslt.parse(stylesheetStr); 26 | } 27 | callback(); 28 | }; 29 | 30 | var stylesheetSyncParsingObj = function(iterations, callback) { 31 | for (var i = 0; i < iterations; i++) { 32 | libxslt.parse(stylesheetObj); 33 | } 34 | callback(); 35 | }; 36 | 37 | var stylesheetAsyncSeriesParsingStr = function(iterations, callback) { 38 | var i = 0; 39 | async.eachSeries(new Array(iterations), function(u, callbackEach) { 40 | libxslt.parse(stylesheetStr, function(err, result) { 41 | i++; 42 | callbackEach(err); 43 | }); 44 | }, callback); 45 | }; 46 | 47 | var stylesheetAsyncSeriesParsingObj = function(iterations, callback) { 48 | var i = 0; 49 | async.eachSeries(new Array(iterations), function(u, callbackEach) { 50 | libxslt.parse(stylesheetObj, function(err, result) { 51 | i++; 52 | callbackEach(err); 53 | }); 54 | }, callback); 55 | }; 56 | 57 | var stylesheetAsyncParallelParsingStr = function(iterations, callback) { 58 | var i = 0; 59 | async.eachLimit(new Array(iterations), 10, function(u, callbackEach) { 60 | libxslt.parse(stylesheetStr, function(err, result) { 61 | i++; 62 | callbackEach(err); 63 | }); 64 | }, callback); 65 | }; 66 | 67 | var stylesheetAsyncParallelParsingObj = function(iterations, callback) { 68 | var i = 0; 69 | async.eachLimit(new Array(iterations), 10, function(u, callbackEach) { 70 | libxslt.parse(stylesheetObj, function(err, result) { 71 | i++; 72 | callbackEach(err); 73 | }); 74 | }, callback); 75 | }; 76 | 77 | var applySyncStr = function(iterations, callback) { 78 | for (var i = 0; i < iterations; i++) { 79 | stylesheet.apply(docStr); 80 | } 81 | callback(); 82 | }; 83 | 84 | var applySyncObj = function(iterations, callback) { 85 | for (var i = 0; i < iterations; i++) { 86 | stylesheet.apply(docObj); 87 | } 88 | callback(); 89 | }; 90 | 91 | var applyAsyncSeriesStr = function(iterations, callback) { 92 | var i = 0; 93 | async.eachSeries(new Array(iterations), function(u, callbackEach) { 94 | stylesheet.apply(docStr, function(err, result) { 95 | i++; 96 | callbackEach(err); 97 | }); 98 | }, callback); 99 | }; 100 | 101 | var applyAsyncSeriesObj = function(iterations, callback) { 102 | var i = 0; 103 | async.eachSeries(new Array(iterations), function(u, callbackEach) { 104 | stylesheet.apply(docObj, function(err, result) { 105 | i++; 106 | callbackEach(err); 107 | }); 108 | }, callback); 109 | }; 110 | 111 | var applyAsyncParallelStr = function(iterations, callback) { 112 | var i = 0; 113 | async.eachLimit(new Array(iterations), 10, function(u, callbackEach) { 114 | stylesheet.apply(docStr, function(err, result) { 115 | i++; 116 | callbackEach(err); 117 | }); 118 | }, callback); 119 | }; 120 | 121 | var applyAsyncParallelObj = function(iterations, callback) { 122 | var i = 0; 123 | async.eachLimit(new Array(iterations), 10, function(u, callbackEach) { 124 | stylesheet.apply(docObj, function(err, result) { 125 | i++; 126 | callbackEach(err); 127 | }); 128 | }, callback); 129 | }; 130 | 131 | var iterations = 10000; 132 | async.series([ 133 | //bench('synchronous parse from string\t\t\t', iterations, stylesheetSyncParsingStr), 134 | bench('synchronous parse from parsed doc\t\t\t', iterations, stylesheetSyncParsingObj), 135 | 136 | //bench('asynchronous parse in series from string\t\t\t', iterations, stylesheetAsyncSeriesParsingStr), 137 | bench('asynchronous parse in series from parsed doc\t', iterations, stylesheetAsyncSeriesParsingObj), 138 | 139 | //bench('asynchronous parse in parallel from string\t\t\t', iterations, stylesheetAsyncParallelParsingStr), 140 | bench('asynchronous parse in parallel from parsed doc\t', iterations, stylesheetAsyncParallelParsingObj), 141 | 142 | //bench('synchronous apply from string\t\t\t', iterations, applySyncStr), 143 | bench('synchronous apply from parsed doc\t\t\t', iterations, applySyncObj), 144 | 145 | //bench('asynchronous apply in series from string\t\t', iterations, applyAsyncSeriesStr), 146 | bench('asynchronous apply in series from parsed doc\t', iterations, applyAsyncSeriesObj), 147 | 148 | //bench('asynchronous apply in parallel from string\t', iterations, applyAsyncParallelStr), 149 | bench('asynchronous apply in parallel from parsed doc\t', iterations, applyAsyncParallelObj) 150 | ]); -------------------------------------------------------------------------------- /binding.gyp: -------------------------------------------------------------------------------- 1 | { 2 | "targets": [ 3 | { 4 | "target_name": "node-libxslt", 5 | "sources": [ "src/node_libxslt.cc", "src/stylesheet.cc" ], 6 | "include_dirs": [" len) 131 | s = s.substr(s.length - len); 132 | return s; 133 | } 134 | 135 | function report(pkg, configs, inputs, archs) { 136 | archs.forEach(function(arch, index) { 137 | console.log((index + 1) + ": " + arch.os + " / " + arch.arch); 138 | }); 139 | configs.forEach(function(config) { 140 | console.log(""); 141 | console.log("=== " + config + " ==="); 142 | var marks = archs.map(function(arch, index) { 143 | return String((index + 1)%10); 144 | }).join(" "); 145 | console.log(pad("") + " " + marks); 146 | var input = inputs[config]; 147 | var outputs = archs.map(function(arch) { 148 | var output = arch.output[config], defs = output.defs; 149 | if (input.placeholders) { 150 | var m = output.text.match(input.re); 151 | if (m !== null) { 152 | var i = m.length, p = input.placeholders; 153 | while (i > 0) { 154 | --i; 155 | defs[p[i]] = m[i + 1]; 156 | } 157 | } 158 | } 159 | return defs; 160 | }); 161 | inputs[config].defs.forEach(function(setting) { 162 | var same = outputs[0][setting]; 163 | var marks = outputs.map(function(output) { 164 | var val = output[setting]; 165 | if (same !== null && val !== same) 166 | same = null; 167 | if (typeof val === "undefined") 168 | val = "?"; 169 | else if (val === "#undef") 170 | val = "N"; 171 | else if (val === "/* #undef */") 172 | val = "n"; 173 | else if (val === "/**/") 174 | val = "Y"; 175 | else 176 | val = val.substr(0, 1); 177 | return val; 178 | }).join(" "); 179 | var note; 180 | if (same === null) note = " !!"; 181 | else if (typeof same === "undefined") note = " ??"; 182 | else note = " " + same; 183 | console.log(pad(setting) + " " + marks + note); 184 | }); 185 | }); 186 | } 187 | 188 | deps( 189 | "libxslt", 190 | ["config.h", "libxslt/xsltconfig.h", "libexslt/exsltconfig.h"], 191 | report); 192 | -------------------------------------------------------------------------------- /deps/libxslt.config/linux/arm/config.h: -------------------------------------------------------------------------------- 1 | /* config.h. Generated from config.h.in by configure. */ 2 | /* config.h.in. Generated from configure.in by autoheader. */ 3 | 4 | /* Define to 1 if you have the header file. */ 5 | /* #undef HAVE_ANSIDECL_H */ 6 | 7 | /* Define to 1 if you have the `asctime' function. */ 8 | #define HAVE_ASCTIME 1 9 | 10 | /* Define to 1 if you have the `clock_gettime' function. */ 11 | #define HAVE_CLOCK_GETTIME 1 12 | 13 | /* Define to 1 if you have the header file. */ 14 | #define HAVE_DLFCN_H 1 15 | 16 | /* Define if fabs is there */ 17 | #define HAVE_FABS /**/ 18 | 19 | /* Define to 1 if you have the header file. */ 20 | #define HAVE_FLOAT_H 1 21 | 22 | /* Define if floor is there */ 23 | #define HAVE_FLOOR /**/ 24 | 25 | /* Define to 1 if you have the `fprintf' function. */ 26 | #define HAVE_FPRINTF 1 27 | 28 | /* Define to 1 if you have the header file. */ 29 | /* #undef HAVE_FP_CLASS_H */ 30 | 31 | /* Define to 1 if you have the `ftime' function. */ 32 | #define HAVE_FTIME 1 33 | 34 | /* Define if gcrypt library is available. */ 35 | /* #undef HAVE_GCRYPT */ 36 | 37 | /* Define to 1 if you have the `gettimeofday' function. */ 38 | #define HAVE_GETTIMEOFDAY 1 39 | 40 | /* Define to 1 if you have the `gmtime' function. */ 41 | #define HAVE_GMTIME 1 42 | 43 | /* Define to 1 if you have the `gmtime_r' function. */ 44 | #define HAVE_GMTIME_R 1 45 | 46 | /* Define to 1 if you have the header file. */ 47 | /* #undef HAVE_IEEEFP_H */ 48 | 49 | /* Define to 1 if you have the header file. */ 50 | #define HAVE_INTTYPES_H 1 51 | 52 | /* Define if pthread library is there (-lpthread) */ 53 | #define HAVE_LIBPTHREAD /**/ 54 | 55 | /* Define to 1 if you have the header file. */ 56 | #define HAVE_LOCALE_H 1 57 | 58 | /* Define to 1 if you have the `localtime' function. */ 59 | #define HAVE_LOCALTIME 1 60 | 61 | /* Define to 1 if you have the `localtime_r' function. */ 62 | #define HAVE_LOCALTIME_R 1 63 | 64 | /* Define to 1 if you have the header file. */ 65 | #define HAVE_MATH_H 1 66 | 67 | /* Define to 1 if you have the header file. */ 68 | #define HAVE_MEMORY_H 1 69 | 70 | /* Define to 1 if you have the `mktime' function. */ 71 | #define HAVE_MKTIME 1 72 | 73 | /* Define to 1 if you have the header file. */ 74 | /* #undef HAVE_NAN_H */ 75 | 76 | /* Define if pow is there */ 77 | #define HAVE_POW /**/ 78 | 79 | /* Define to 1 if you have the `printf' function. */ 80 | #define HAVE_PRINTF 1 81 | 82 | /* Define if is there */ 83 | #define HAVE_PTHREAD_H /**/ 84 | 85 | /* Define to 1 if you have the `snprintf' function. */ 86 | #define HAVE_SNPRINTF 1 87 | 88 | /* Define to 1 if you have the `sprintf' function. */ 89 | #define HAVE_SPRINTF 1 90 | 91 | /* Define to 1 if you have the `sscanf' function. */ 92 | #define HAVE_SSCANF 1 93 | 94 | /* Define to 1 if you have the `stat' function. */ 95 | #define HAVE_STAT 1 96 | 97 | /* Define to 1 if you have the header file. */ 98 | #define HAVE_STDARG_H 1 99 | 100 | /* Define to 1 if you have the header file. */ 101 | #define HAVE_STDINT_H 1 102 | 103 | /* Define to 1 if you have the header file. */ 104 | #define HAVE_STDLIB_H 1 105 | 106 | /* Define to 1 if you have the header file. */ 107 | #define HAVE_STRINGS_H 1 108 | 109 | /* Define to 1 if you have the header file. */ 110 | #define HAVE_STRING_H 1 111 | 112 | /* Define to 1 if you have the header file. */ 113 | #define HAVE_SYS_SELECT_H 1 114 | 115 | /* Define to 1 if you have the header file. */ 116 | #define HAVE_SYS_STAT_H 1 117 | 118 | /* Define to 1 if you have the header file. */ 119 | #define HAVE_SYS_TIMEB_H 1 120 | 121 | /* Define to 1 if you have the header file. */ 122 | #define HAVE_SYS_TIME_H 1 123 | 124 | /* Define to 1 if you have the header file. */ 125 | #define HAVE_SYS_TYPES_H 1 126 | 127 | /* Define to 1 if you have the `time' function. */ 128 | #define HAVE_TIME 1 129 | 130 | /* Define to 1 if you have the header file. */ 131 | #define HAVE_TIME_H 1 132 | 133 | /* Define to 1 if you have the header file. */ 134 | #define HAVE_UNISTD_H 1 135 | 136 | /* Define to 1 if you have the `vfprintf' function. */ 137 | #define HAVE_VFPRINTF 1 138 | 139 | /* Define to 1 if you have the `vsnprintf' function. */ 140 | #define HAVE_VSNPRINTF 1 141 | 142 | /* Define to 1 if you have the `vsprintf' function. */ 143 | #define HAVE_VSPRINTF 1 144 | 145 | /* Define to 1 if you have the header file. */ 146 | #define HAVE_XLOCALE_H 1 147 | 148 | /* Define to 1 if you have the `_stat' function. */ 149 | /* #undef HAVE__STAT */ 150 | 151 | /* Define to the sub-directory in which libtool stores uninstalled libraries. 152 | */ 153 | #define LT_OBJDIR ".libs/" 154 | 155 | /* Name of package */ 156 | #define PACKAGE "libxslt" 157 | 158 | /* Define to the address where bug reports for this package should be sent. */ 159 | #define PACKAGE_BUGREPORT "" 160 | 161 | /* Define to the full name of this package. */ 162 | #define PACKAGE_NAME "" 163 | 164 | /* Define to the full name and version of this package. */ 165 | #define PACKAGE_STRING "" 166 | 167 | /* Define to the one symbol short name of this package. */ 168 | #define PACKAGE_TARNAME "" 169 | 170 | /* Define to the home page for this package. */ 171 | #define PACKAGE_URL "" 172 | 173 | /* Define to the version of this package. */ 174 | #define PACKAGE_VERSION "" 175 | 176 | /* Define to 1 if you have the ANSI C header files. */ 177 | #define STDC_HEADERS 1 178 | 179 | /* Enable extensions on AIX 3, Interix. */ 180 | #ifndef _ALL_SOURCE 181 | # define _ALL_SOURCE 1 182 | #endif 183 | /* Enable GNU extensions on systems that have them. */ 184 | #ifndef _GNU_SOURCE 185 | # define _GNU_SOURCE 1 186 | #endif 187 | /* Enable threading extensions on Solaris. */ 188 | #ifndef _POSIX_PTHREAD_SEMANTICS 189 | # define _POSIX_PTHREAD_SEMANTICS 1 190 | #endif 191 | /* Enable extensions on HP NonStop. */ 192 | #ifndef _TANDEM_SOURCE 193 | # define _TANDEM_SOURCE 1 194 | #endif 195 | /* Enable general extensions on Solaris. */ 196 | #ifndef __EXTENSIONS__ 197 | # define __EXTENSIONS__ 1 198 | #endif 199 | 200 | 201 | /* Version number of package */ 202 | #define VERSION "1.1.28" 203 | 204 | /* Define if debugging support is enabled */ 205 | #define WITH_DEBUGGER /**/ 206 | 207 | /* Define to 1 if on MINIX. */ 208 | /* #undef _MINIX */ 209 | 210 | /* Define to 2 if the system does not provide POSIX.1 features except with 211 | this defined. */ 212 | /* #undef _POSIX_1_SOURCE */ 213 | 214 | /* Define to 1 if you need to in order for `stat' and other things to work. */ 215 | /* #undef _POSIX_SOURCE */ 216 | 217 | /* Using the Win32 Socket implementation */ 218 | /* #undef _WINSOCKAPI_ */ 219 | 220 | /* Win32 Std C name mangling work-around */ 221 | /* #undef snprintf */ 222 | 223 | /* Win32 Std C name mangling work-around */ 224 | /* #undef vsnprintf */ 225 | -------------------------------------------------------------------------------- /deps/libxslt.config/linux/arm/libexslt/exsltconfig.h: -------------------------------------------------------------------------------- 1 | /* 2 | * exsltconfig.h: compile-time version informations for the EXSLT library 3 | * 4 | * See Copyright for the status of this software. 5 | * 6 | * daniel@veillard.com 7 | */ 8 | 9 | #ifndef __XML_EXSLTCONFIG_H__ 10 | #define __XML_EXSLTCONFIG_H__ 11 | 12 | #ifdef __cplusplus 13 | extern "C" { 14 | #endif 15 | 16 | /** 17 | * LIBEXSLT_DOTTED_VERSION: 18 | * 19 | * the version string like "1.2.3" 20 | */ 21 | #define LIBEXSLT_DOTTED_VERSION "1.1.28" 22 | 23 | /** 24 | * LIBEXSLT_VERSION: 25 | * 26 | * the version number: 1.2.3 value is 10203 27 | */ 28 | #define LIBEXSLT_VERSION 817 29 | 30 | /** 31 | * LIBEXSLT_VERSION_STRING: 32 | * 33 | * the version number string, 1.2.3 value is "10203" 34 | */ 35 | #define LIBEXSLT_VERSION_STRING "817" 36 | 37 | /** 38 | * LIBEXSLT_VERSION_EXTRA: 39 | * 40 | * extra version information, used to show a CVS compilation 41 | */ 42 | #define LIBEXSLT_VERSION_EXTRA "" 43 | 44 | /** 45 | * WITH_CRYPTO: 46 | * 47 | * Whether crypto support is configured into exslt 48 | */ 49 | #if 0 50 | #define EXSLT_CRYPTO_ENABLED 51 | #endif 52 | 53 | /** 54 | * ATTRIBUTE_UNUSED: 55 | * 56 | * This macro is used to flag unused function parameters to GCC 57 | */ 58 | #ifdef __GNUC__ 59 | #ifdef HAVE_ANSIDECL_H 60 | #include 61 | #endif 62 | #ifndef ATTRIBUTE_UNUSED 63 | #define ATTRIBUTE_UNUSED __attribute__((unused)) 64 | #endif 65 | #else 66 | #define ATTRIBUTE_UNUSED 67 | #endif 68 | 69 | #ifdef __cplusplus 70 | } 71 | #endif 72 | 73 | #endif /* __XML_EXSLTCONFIG_H__ */ 74 | -------------------------------------------------------------------------------- /deps/libxslt.config/linux/arm/libxslt/xsltconfig.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Summary: compile-time version informations for the XSLT engine 3 | * Description: compile-time version informations for the XSLT engine 4 | * this module is autogenerated. 5 | * 6 | * Copy: See Copyright for the status of this software. 7 | * 8 | * Author: Daniel Veillard 9 | */ 10 | 11 | #ifndef __XML_XSLTCONFIG_H__ 12 | #define __XML_XSLTCONFIG_H__ 13 | 14 | #ifdef __cplusplus 15 | extern "C" { 16 | #endif 17 | 18 | /** 19 | * LIBXSLT_DOTTED_VERSION: 20 | * 21 | * the version string like "1.2.3" 22 | */ 23 | #define LIBXSLT_DOTTED_VERSION "1.1.28" 24 | 25 | /** 26 | * LIBXSLT_VERSION: 27 | * 28 | * the version number: 1.2.3 value is 10203 29 | */ 30 | #define LIBXSLT_VERSION 10128 31 | 32 | /** 33 | * LIBXSLT_VERSION_STRING: 34 | * 35 | * the version number string, 1.2.3 value is "10203" 36 | */ 37 | #define LIBXSLT_VERSION_STRING "10128" 38 | 39 | /** 40 | * LIBXSLT_VERSION_EXTRA: 41 | * 42 | * extra version information, used to show a CVS compilation 43 | */ 44 | #define LIBXSLT_VERSION_EXTRA "" 45 | 46 | /** 47 | * WITH_XSLT_DEBUG: 48 | * 49 | * Activate the compilation of the debug reporting. Speed penalty 50 | * is insignifiant and being able to run xsltpoc -v is useful. On 51 | * by default unless --without-debug is passed to configure 52 | */ 53 | #if 1 54 | #define WITH_XSLT_DEBUG 55 | #endif 56 | 57 | #if 0 58 | /** 59 | * DEBUG_MEMORY: 60 | * 61 | * should be activated only when debugging libxslt. It replaces the 62 | * allocator with a collect and debug shell to the libc allocator. 63 | * Use configure --with-mem-debug to activate it on both library 64 | */ 65 | #define DEBUG_MEMORY 66 | 67 | /** 68 | * DEBUG_MEMORY_LOCATION: 69 | * 70 | * should be activated only when debugging libxslt. 71 | * DEBUG_MEMORY_LOCATION should be activated only when libxml has 72 | * been configured with --with-debug-mem too 73 | */ 74 | #define DEBUG_MEMORY_LOCATION 75 | #endif 76 | 77 | /** 78 | * XSLT_NEED_TRIO: 79 | * 80 | * should be activated if the existing libc library lacks some of the 81 | * string formatting function, in that case reuse the Trio ones already 82 | * compiled in the libxml2 library. 83 | */ 84 | 85 | #if 0 86 | #define XSLT_NEED_TRIO 87 | #endif 88 | #ifdef __VMS 89 | #define HAVE_MATH_H 1 90 | #define HAVE_SYS_STAT_H 1 91 | #ifndef XSLT_NEED_TRIO 92 | #define XSLT_NEED_TRIO 93 | #endif 94 | #endif 95 | 96 | #ifdef XSLT_NEED_TRIO 97 | #define TRIO_REPLACE_STDIO 98 | #endif 99 | 100 | /** 101 | * WITH_XSLT_DEBUGGER: 102 | * 103 | * Activate the compilation of the debugger support. Speed penalty 104 | * is insignifiant. 105 | * On by default unless --without-debugger is passed to configure 106 | */ 107 | #if 1 108 | #ifndef WITH_DEBUGGER 109 | #define WITH_DEBUGGER 110 | #endif 111 | #endif 112 | 113 | /** 114 | * WITH_MODULES: 115 | * 116 | * Whether module support is configured into libxslt 117 | * Note: no default module path for win32 platforms 118 | */ 119 | #if 1 120 | #ifndef WITH_MODULES 121 | #define WITH_MODULES 122 | #endif 123 | #define LIBXSLT_DEFAULT_PLUGINS_PATH() "/usr/local/lib/libxslt-plugins" 124 | #endif 125 | 126 | /** 127 | * Locale support 128 | */ 129 | #if 0 130 | #ifndef XSLT_LOCALE_XLOCALE 131 | #define XSLT_LOCALE_XLOCALE 132 | #endif 133 | #elif 0 134 | #ifndef XSLT_LOCALE_WINAPI 135 | #define XSLT_LOCALE_WINAPI 136 | #endif 137 | #endif 138 | 139 | /** 140 | * ATTRIBUTE_UNUSED: 141 | * 142 | * This macro is used to flag unused function parameters to GCC 143 | */ 144 | #ifdef __GNUC__ 145 | #ifdef HAVE_ANSIDECL_H 146 | #include 147 | #endif 148 | #ifndef ATTRIBUTE_UNUSED 149 | #define ATTRIBUTE_UNUSED __attribute__((unused)) 150 | #endif 151 | #else 152 | #define ATTRIBUTE_UNUSED 153 | #endif 154 | 155 | /** 156 | * LIBXSLT_PUBLIC: 157 | * 158 | * This macro is used to declare PUBLIC variables for Cygwin and for MSC on Windows 159 | */ 160 | #if !defined LIBXSLT_PUBLIC 161 | #if (defined(__CYGWIN__) || defined _MSC_VER) && !defined IN_LIBXSLT && !defined LIBXSLT_STATIC 162 | #define LIBXSLT_PUBLIC __declspec(dllimport) 163 | #else 164 | #define LIBXSLT_PUBLIC 165 | #endif 166 | #endif 167 | 168 | #ifdef __cplusplus 169 | } 170 | #endif 171 | 172 | #endif /* __XML_XSLTCONFIG_H__ */ 173 | -------------------------------------------------------------------------------- /deps/libxslt.config/linux/arm64/config.h: -------------------------------------------------------------------------------- 1 | /* config.h. Generated from config.h.in by configure. */ 2 | /* config.h.in. Generated from configure.in by autoheader. */ 3 | 4 | /* Define to 1 if you have the header file. */ 5 | /* #undef HAVE_ANSIDECL_H */ 6 | 7 | /* Define to 1 if you have the `asctime' function. */ 8 | #define HAVE_ASCTIME 1 9 | 10 | /* Define to 1 if you have the `clock_gettime' function. */ 11 | #define HAVE_CLOCK_GETTIME 1 12 | 13 | /* Define to 1 if you have the header file. */ 14 | #define HAVE_DLFCN_H 1 15 | 16 | /* Define if fabs is there */ 17 | #define HAVE_FABS /**/ 18 | 19 | /* Define to 1 if you have the header file. */ 20 | #define HAVE_FLOAT_H 1 21 | 22 | /* Define if floor is there */ 23 | #define HAVE_FLOOR /**/ 24 | 25 | /* Define to 1 if you have the `fprintf' function. */ 26 | #define HAVE_FPRINTF 1 27 | 28 | /* Define to 1 if you have the header file. */ 29 | /* #undef HAVE_FP_CLASS_H */ 30 | 31 | /* Define to 1 if you have the `ftime' function. */ 32 | #define HAVE_FTIME 1 33 | 34 | /* Define if gcrypt library is available. */ 35 | /* #undef HAVE_GCRYPT */ 36 | 37 | /* Define to 1 if you have the `gettimeofday' function. */ 38 | #define HAVE_GETTIMEOFDAY 1 39 | 40 | /* Define to 1 if you have the `gmtime' function. */ 41 | #define HAVE_GMTIME 1 42 | 43 | /* Define to 1 if you have the `gmtime_r' function. */ 44 | #define HAVE_GMTIME_R 1 45 | 46 | /* Define to 1 if you have the header file. */ 47 | /* #undef HAVE_IEEEFP_H */ 48 | 49 | /* Define to 1 if you have the header file. */ 50 | #define HAVE_INTTYPES_H 1 51 | 52 | /* Define if pthread library is there (-lpthread) */ 53 | #define HAVE_LIBPTHREAD /**/ 54 | 55 | /* Define to 1 if you have the header file. */ 56 | #define HAVE_LOCALE_H 1 57 | 58 | /* Define to 1 if you have the `localtime' function. */ 59 | #define HAVE_LOCALTIME 1 60 | 61 | /* Define to 1 if you have the `localtime_r' function. */ 62 | #define HAVE_LOCALTIME_R 1 63 | 64 | /* Define to 1 if you have the header file. */ 65 | #define HAVE_MATH_H 1 66 | 67 | /* Define to 1 if you have the header file. */ 68 | #define HAVE_MEMORY_H 1 69 | 70 | /* Define to 1 if you have the `mktime' function. */ 71 | #define HAVE_MKTIME 1 72 | 73 | /* Define to 1 if you have the header file. */ 74 | /* #undef HAVE_NAN_H */ 75 | 76 | /* Define if pow is there */ 77 | #define HAVE_POW /**/ 78 | 79 | /* Define to 1 if you have the `printf' function. */ 80 | #define HAVE_PRINTF 1 81 | 82 | /* Define if is there */ 83 | #define HAVE_PTHREAD_H /**/ 84 | 85 | /* Define to 1 if you have the `snprintf' function. */ 86 | #define HAVE_SNPRINTF 1 87 | 88 | /* Define to 1 if you have the `sprintf' function. */ 89 | #define HAVE_SPRINTF 1 90 | 91 | /* Define to 1 if you have the `sscanf' function. */ 92 | #define HAVE_SSCANF 1 93 | 94 | /* Define to 1 if you have the `stat' function. */ 95 | #define HAVE_STAT 1 96 | 97 | /* Define to 1 if you have the header file. */ 98 | #define HAVE_STDARG_H 1 99 | 100 | /* Define to 1 if you have the header file. */ 101 | #define HAVE_STDINT_H 1 102 | 103 | /* Define to 1 if you have the header file. */ 104 | #define HAVE_STDLIB_H 1 105 | 106 | /* Define to 1 if you have the header file. */ 107 | #define HAVE_STRINGS_H 1 108 | 109 | /* Define to 1 if you have the header file. */ 110 | #define HAVE_STRING_H 1 111 | 112 | /* Define to 1 if you have the header file. */ 113 | #define HAVE_SYS_SELECT_H 1 114 | 115 | /* Define to 1 if you have the header file. */ 116 | #define HAVE_SYS_STAT_H 1 117 | 118 | /* Define to 1 if you have the header file. */ 119 | #define HAVE_SYS_TIMEB_H 1 120 | 121 | /* Define to 1 if you have the header file. */ 122 | #define HAVE_SYS_TIME_H 1 123 | 124 | /* Define to 1 if you have the header file. */ 125 | #define HAVE_SYS_TYPES_H 1 126 | 127 | /* Define to 1 if you have the `time' function. */ 128 | #define HAVE_TIME 1 129 | 130 | /* Define to 1 if you have the header file. */ 131 | #define HAVE_TIME_H 1 132 | 133 | /* Define to 1 if you have the header file. */ 134 | #define HAVE_UNISTD_H 1 135 | 136 | /* Define to 1 if you have the `vfprintf' function. */ 137 | #define HAVE_VFPRINTF 1 138 | 139 | /* Define to 1 if you have the `vsnprintf' function. */ 140 | #define HAVE_VSNPRINTF 1 141 | 142 | /* Define to 1 if you have the `vsprintf' function. */ 143 | #define HAVE_VSPRINTF 1 144 | 145 | /* Define to 1 if you have the header file. */ 146 | #define HAVE_XLOCALE_H 1 147 | 148 | /* Define to 1 if you have the `_stat' function. */ 149 | /* #undef HAVE__STAT */ 150 | 151 | /* Define to the sub-directory in which libtool stores uninstalled libraries. 152 | */ 153 | #define LT_OBJDIR ".libs/" 154 | 155 | /* Name of package */ 156 | #define PACKAGE "libxslt" 157 | 158 | /* Define to the address where bug reports for this package should be sent. */ 159 | #define PACKAGE_BUGREPORT "" 160 | 161 | /* Define to the full name of this package. */ 162 | #define PACKAGE_NAME "" 163 | 164 | /* Define to the full name and version of this package. */ 165 | #define PACKAGE_STRING "" 166 | 167 | /* Define to the one symbol short name of this package. */ 168 | #define PACKAGE_TARNAME "" 169 | 170 | /* Define to the home page for this package. */ 171 | #define PACKAGE_URL "" 172 | 173 | /* Define to the version of this package. */ 174 | #define PACKAGE_VERSION "" 175 | 176 | /* Define to 1 if you have the ANSI C header files. */ 177 | #define STDC_HEADERS 1 178 | 179 | /* Enable extensions on AIX 3, Interix. */ 180 | #ifndef _ALL_SOURCE 181 | # define _ALL_SOURCE 1 182 | #endif 183 | /* Enable GNU extensions on systems that have them. */ 184 | #ifndef _GNU_SOURCE 185 | # define _GNU_SOURCE 1 186 | #endif 187 | /* Enable threading extensions on Solaris. */ 188 | #ifndef _POSIX_PTHREAD_SEMANTICS 189 | # define _POSIX_PTHREAD_SEMANTICS 1 190 | #endif 191 | /* Enable extensions on HP NonStop. */ 192 | #ifndef _TANDEM_SOURCE 193 | # define _TANDEM_SOURCE 1 194 | #endif 195 | /* Enable general extensions on Solaris. */ 196 | #ifndef __EXTENSIONS__ 197 | # define __EXTENSIONS__ 1 198 | #endif 199 | 200 | 201 | /* Version number of package */ 202 | #define VERSION "1.1.28" 203 | 204 | /* Define if debugging support is enabled */ 205 | #define WITH_DEBUGGER /**/ 206 | 207 | /* Define to 1 if on MINIX. */ 208 | /* #undef _MINIX */ 209 | 210 | /* Define to 2 if the system does not provide POSIX.1 features except with 211 | this defined. */ 212 | /* #undef _POSIX_1_SOURCE */ 213 | 214 | /* Define to 1 if you need to in order for `stat' and other things to work. */ 215 | /* #undef _POSIX_SOURCE */ 216 | 217 | /* Using the Win32 Socket implementation */ 218 | /* #undef _WINSOCKAPI_ */ 219 | 220 | /* Win32 Std C name mangling work-around */ 221 | /* #undef snprintf */ 222 | 223 | /* Win32 Std C name mangling work-around */ 224 | /* #undef vsnprintf */ 225 | -------------------------------------------------------------------------------- /deps/libxslt.config/linux/arm64/libexslt/exsltconfig.h: -------------------------------------------------------------------------------- 1 | /* 2 | * exsltconfig.h: compile-time version informations for the EXSLT library 3 | * 4 | * See Copyright for the status of this software. 5 | * 6 | * daniel@veillard.com 7 | */ 8 | 9 | #ifndef __XML_EXSLTCONFIG_H__ 10 | #define __XML_EXSLTCONFIG_H__ 11 | 12 | #ifdef __cplusplus 13 | extern "C" { 14 | #endif 15 | 16 | /** 17 | * LIBEXSLT_DOTTED_VERSION: 18 | * 19 | * the version string like "1.2.3" 20 | */ 21 | #define LIBEXSLT_DOTTED_VERSION "1.1.28" 22 | 23 | /** 24 | * LIBEXSLT_VERSION: 25 | * 26 | * the version number: 1.2.3 value is 10203 27 | */ 28 | #define LIBEXSLT_VERSION 817 29 | 30 | /** 31 | * LIBEXSLT_VERSION_STRING: 32 | * 33 | * the version number string, 1.2.3 value is "10203" 34 | */ 35 | #define LIBEXSLT_VERSION_STRING "817" 36 | 37 | /** 38 | * LIBEXSLT_VERSION_EXTRA: 39 | * 40 | * extra version information, used to show a CVS compilation 41 | */ 42 | #define LIBEXSLT_VERSION_EXTRA "" 43 | 44 | /** 45 | * WITH_CRYPTO: 46 | * 47 | * Whether crypto support is configured into exslt 48 | */ 49 | #if 0 50 | #define EXSLT_CRYPTO_ENABLED 51 | #endif 52 | 53 | /** 54 | * ATTRIBUTE_UNUSED: 55 | * 56 | * This macro is used to flag unused function parameters to GCC 57 | */ 58 | #ifdef __GNUC__ 59 | #ifdef HAVE_ANSIDECL_H 60 | #include 61 | #endif 62 | #ifndef ATTRIBUTE_UNUSED 63 | #define ATTRIBUTE_UNUSED __attribute__((unused)) 64 | #endif 65 | #else 66 | #define ATTRIBUTE_UNUSED 67 | #endif 68 | 69 | #ifdef __cplusplus 70 | } 71 | #endif 72 | 73 | #endif /* __XML_EXSLTCONFIG_H__ */ 74 | -------------------------------------------------------------------------------- /deps/libxslt.config/linux/arm64/libxslt/xsltconfig.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Summary: compile-time version informations for the XSLT engine 3 | * Description: compile-time version informations for the XSLT engine 4 | * this module is autogenerated. 5 | * 6 | * Copy: See Copyright for the status of this software. 7 | * 8 | * Author: Daniel Veillard 9 | */ 10 | 11 | #ifndef __XML_XSLTCONFIG_H__ 12 | #define __XML_XSLTCONFIG_H__ 13 | 14 | #ifdef __cplusplus 15 | extern "C" { 16 | #endif 17 | 18 | /** 19 | * LIBXSLT_DOTTED_VERSION: 20 | * 21 | * the version string like "1.2.3" 22 | */ 23 | #define LIBXSLT_DOTTED_VERSION "1.1.28" 24 | 25 | /** 26 | * LIBXSLT_VERSION: 27 | * 28 | * the version number: 1.2.3 value is 10203 29 | */ 30 | #define LIBXSLT_VERSION 10128 31 | 32 | /** 33 | * LIBXSLT_VERSION_STRING: 34 | * 35 | * the version number string, 1.2.3 value is "10203" 36 | */ 37 | #define LIBXSLT_VERSION_STRING "10128" 38 | 39 | /** 40 | * LIBXSLT_VERSION_EXTRA: 41 | * 42 | * extra version information, used to show a CVS compilation 43 | */ 44 | #define LIBXSLT_VERSION_EXTRA "" 45 | 46 | /** 47 | * WITH_XSLT_DEBUG: 48 | * 49 | * Activate the compilation of the debug reporting. Speed penalty 50 | * is insignifiant and being able to run xsltpoc -v is useful. On 51 | * by default unless --without-debug is passed to configure 52 | */ 53 | #if 1 54 | #define WITH_XSLT_DEBUG 55 | #endif 56 | 57 | #if 0 58 | /** 59 | * DEBUG_MEMORY: 60 | * 61 | * should be activated only when debugging libxslt. It replaces the 62 | * allocator with a collect and debug shell to the libc allocator. 63 | * Use configure --with-mem-debug to activate it on both library 64 | */ 65 | #define DEBUG_MEMORY 66 | 67 | /** 68 | * DEBUG_MEMORY_LOCATION: 69 | * 70 | * should be activated only when debugging libxslt. 71 | * DEBUG_MEMORY_LOCATION should be activated only when libxml has 72 | * been configured with --with-debug-mem too 73 | */ 74 | #define DEBUG_MEMORY_LOCATION 75 | #endif 76 | 77 | /** 78 | * XSLT_NEED_TRIO: 79 | * 80 | * should be activated if the existing libc library lacks some of the 81 | * string formatting function, in that case reuse the Trio ones already 82 | * compiled in the libxml2 library. 83 | */ 84 | 85 | #if 0 86 | #define XSLT_NEED_TRIO 87 | #endif 88 | #ifdef __VMS 89 | #define HAVE_MATH_H 1 90 | #define HAVE_SYS_STAT_H 1 91 | #ifndef XSLT_NEED_TRIO 92 | #define XSLT_NEED_TRIO 93 | #endif 94 | #endif 95 | 96 | #ifdef XSLT_NEED_TRIO 97 | #define TRIO_REPLACE_STDIO 98 | #endif 99 | 100 | /** 101 | * WITH_XSLT_DEBUGGER: 102 | * 103 | * Activate the compilation of the debugger support. Speed penalty 104 | * is insignifiant. 105 | * On by default unless --without-debugger is passed to configure 106 | */ 107 | #if 1 108 | #ifndef WITH_DEBUGGER 109 | #define WITH_DEBUGGER 110 | #endif 111 | #endif 112 | 113 | /** 114 | * WITH_MODULES: 115 | * 116 | * Whether module support is configured into libxslt 117 | * Note: no default module path for win32 platforms 118 | */ 119 | #if 1 120 | #ifndef WITH_MODULES 121 | #define WITH_MODULES 122 | #endif 123 | #define LIBXSLT_DEFAULT_PLUGINS_PATH() "/usr/local/lib/libxslt-plugins" 124 | #endif 125 | 126 | /** 127 | * Locale support 128 | */ 129 | #if 0 130 | #ifndef XSLT_LOCALE_XLOCALE 131 | #define XSLT_LOCALE_XLOCALE 132 | #endif 133 | #elif 0 134 | #ifndef XSLT_LOCALE_WINAPI 135 | #define XSLT_LOCALE_WINAPI 136 | #endif 137 | #endif 138 | 139 | /** 140 | * ATTRIBUTE_UNUSED: 141 | * 142 | * This macro is used to flag unused function parameters to GCC 143 | */ 144 | #ifdef __GNUC__ 145 | #ifdef HAVE_ANSIDECL_H 146 | #include 147 | #endif 148 | #ifndef ATTRIBUTE_UNUSED 149 | #define ATTRIBUTE_UNUSED __attribute__((unused)) 150 | #endif 151 | #else 152 | #define ATTRIBUTE_UNUSED 153 | #endif 154 | 155 | /** 156 | * LIBXSLT_PUBLIC: 157 | * 158 | * This macro is used to declare PUBLIC variables for Cygwin and for MSC on Windows 159 | */ 160 | #if !defined LIBXSLT_PUBLIC 161 | #if (defined(__CYGWIN__) || defined _MSC_VER) && !defined IN_LIBXSLT && !defined LIBXSLT_STATIC 162 | #define LIBXSLT_PUBLIC __declspec(dllimport) 163 | #else 164 | #define LIBXSLT_PUBLIC 165 | #endif 166 | #endif 167 | 168 | #ifdef __cplusplus 169 | } 170 | #endif 171 | 172 | #endif /* __XML_XSLTCONFIG_H__ */ 173 | -------------------------------------------------------------------------------- /deps/libxslt.config/linux/ia32/config.h: -------------------------------------------------------------------------------- 1 | /* config.h. Generated from config.h.in by configure. */ 2 | /* config.h.in. Generated from configure.in by autoheader. */ 3 | 4 | /* Define to 1 if you have the header file. */ 5 | /* #undef HAVE_ANSIDECL_H */ 6 | 7 | /* Define to 1 if you have the `asctime' function. */ 8 | #define HAVE_ASCTIME 1 9 | 10 | /* Define to 1 if you have the `clock_gettime' function. */ 11 | #define HAVE_CLOCK_GETTIME 1 12 | 13 | /* Define to 1 if you have the header file. */ 14 | #define HAVE_DLFCN_H 1 15 | 16 | /* Define if fabs is there */ 17 | #define HAVE_FABS /**/ 18 | 19 | /* Define to 1 if you have the header file. */ 20 | #define HAVE_FLOAT_H 1 21 | 22 | /* Define if floor is there */ 23 | #define HAVE_FLOOR /**/ 24 | 25 | /* Define to 1 if you have the `fprintf' function. */ 26 | #define HAVE_FPRINTF 1 27 | 28 | /* Define to 1 if you have the header file. */ 29 | /* #undef HAVE_FP_CLASS_H */ 30 | 31 | /* Define to 1 if you have the `ftime' function. */ 32 | #define HAVE_FTIME 1 33 | 34 | /* Define if gcrypt library is available. */ 35 | /* #undef HAVE_GCRYPT */ 36 | 37 | /* Define to 1 if you have the `gettimeofday' function. */ 38 | #define HAVE_GETTIMEOFDAY 1 39 | 40 | /* Define to 1 if you have the `gmtime' function. */ 41 | #define HAVE_GMTIME 1 42 | 43 | /* Define to 1 if you have the `gmtime_r' function. */ 44 | #define HAVE_GMTIME_R 1 45 | 46 | /* Define to 1 if you have the header file. */ 47 | /* #undef HAVE_IEEEFP_H */ 48 | 49 | /* Define to 1 if you have the header file. */ 50 | #define HAVE_INTTYPES_H 1 51 | 52 | /* Define if pthread library is there (-lpthread) */ 53 | #define HAVE_LIBPTHREAD /**/ 54 | 55 | /* Define to 1 if you have the header file. */ 56 | #define HAVE_LOCALE_H 1 57 | 58 | /* Define to 1 if you have the `localtime' function. */ 59 | #define HAVE_LOCALTIME 1 60 | 61 | /* Define to 1 if you have the `localtime_r' function. */ 62 | #define HAVE_LOCALTIME_R 1 63 | 64 | /* Define to 1 if you have the header file. */ 65 | #define HAVE_MATH_H 1 66 | 67 | /* Define to 1 if you have the header file. */ 68 | #define HAVE_MEMORY_H 1 69 | 70 | /* Define to 1 if you have the `mktime' function. */ 71 | #define HAVE_MKTIME 1 72 | 73 | /* Define to 1 if you have the header file. */ 74 | /* #undef HAVE_NAN_H */ 75 | 76 | /* Define if pow is there */ 77 | #define HAVE_POW /**/ 78 | 79 | /* Define to 1 if you have the `printf' function. */ 80 | #define HAVE_PRINTF 1 81 | 82 | /* Define if is there */ 83 | #define HAVE_PTHREAD_H /**/ 84 | 85 | /* Define to 1 if you have the `snprintf' function. */ 86 | #define HAVE_SNPRINTF 1 87 | 88 | /* Define to 1 if you have the `sprintf' function. */ 89 | #define HAVE_SPRINTF 1 90 | 91 | /* Define to 1 if you have the `sscanf' function. */ 92 | #define HAVE_SSCANF 1 93 | 94 | /* Define to 1 if you have the `stat' function. */ 95 | #define HAVE_STAT 1 96 | 97 | /* Define to 1 if you have the header file. */ 98 | #define HAVE_STDARG_H 1 99 | 100 | /* Define to 1 if you have the header file. */ 101 | #define HAVE_STDINT_H 1 102 | 103 | /* Define to 1 if you have the header file. */ 104 | #define HAVE_STDLIB_H 1 105 | 106 | /* Define to 1 if you have the header file. */ 107 | #define HAVE_STRINGS_H 1 108 | 109 | /* Define to 1 if you have the header file. */ 110 | #define HAVE_STRING_H 1 111 | 112 | /* Define to 1 if you have the header file. */ 113 | #define HAVE_SYS_SELECT_H 1 114 | 115 | /* Define to 1 if you have the header file. */ 116 | #define HAVE_SYS_STAT_H 1 117 | 118 | /* Define to 1 if you have the header file. */ 119 | #define HAVE_SYS_TIMEB_H 1 120 | 121 | /* Define to 1 if you have the header file. */ 122 | #define HAVE_SYS_TIME_H 1 123 | 124 | /* Define to 1 if you have the header file. */ 125 | #define HAVE_SYS_TYPES_H 1 126 | 127 | /* Define to 1 if you have the `time' function. */ 128 | #define HAVE_TIME 1 129 | 130 | /* Define to 1 if you have the header file. */ 131 | #define HAVE_TIME_H 1 132 | 133 | /* Define to 1 if you have the header file. */ 134 | #define HAVE_UNISTD_H 1 135 | 136 | /* Define to 1 if you have the `vfprintf' function. */ 137 | #define HAVE_VFPRINTF 1 138 | 139 | /* Define to 1 if you have the `vsnprintf' function. */ 140 | #define HAVE_VSNPRINTF 1 141 | 142 | /* Define to 1 if you have the `vsprintf' function. */ 143 | #define HAVE_VSPRINTF 1 144 | 145 | /* Define to 1 if you have the header file. */ 146 | #define HAVE_XLOCALE_H 1 147 | 148 | /* Define to 1 if you have the `_stat' function. */ 149 | /* #undef HAVE__STAT */ 150 | 151 | /* Define to the sub-directory in which libtool stores uninstalled libraries. 152 | */ 153 | #define LT_OBJDIR ".libs/" 154 | 155 | /* Name of package */ 156 | #define PACKAGE "libxslt" 157 | 158 | /* Define to the address where bug reports for this package should be sent. */ 159 | #define PACKAGE_BUGREPORT "" 160 | 161 | /* Define to the full name of this package. */ 162 | #define PACKAGE_NAME "" 163 | 164 | /* Define to the full name and version of this package. */ 165 | #define PACKAGE_STRING "" 166 | 167 | /* Define to the one symbol short name of this package. */ 168 | #define PACKAGE_TARNAME "" 169 | 170 | /* Define to the home page for this package. */ 171 | #define PACKAGE_URL "" 172 | 173 | /* Define to the version of this package. */ 174 | #define PACKAGE_VERSION "" 175 | 176 | /* Define to 1 if you have the ANSI C header files. */ 177 | #define STDC_HEADERS 1 178 | 179 | /* Enable extensions on AIX 3, Interix. */ 180 | #ifndef _ALL_SOURCE 181 | # define _ALL_SOURCE 1 182 | #endif 183 | /* Enable GNU extensions on systems that have them. */ 184 | #ifndef _GNU_SOURCE 185 | # define _GNU_SOURCE 1 186 | #endif 187 | /* Enable threading extensions on Solaris. */ 188 | #ifndef _POSIX_PTHREAD_SEMANTICS 189 | # define _POSIX_PTHREAD_SEMANTICS 1 190 | #endif 191 | /* Enable extensions on HP NonStop. */ 192 | #ifndef _TANDEM_SOURCE 193 | # define _TANDEM_SOURCE 1 194 | #endif 195 | /* Enable general extensions on Solaris. */ 196 | #ifndef __EXTENSIONS__ 197 | # define __EXTENSIONS__ 1 198 | #endif 199 | 200 | 201 | /* Version number of package */ 202 | #define VERSION "1.1.28" 203 | 204 | /* Define if debugging support is enabled */ 205 | #define WITH_DEBUGGER /**/ 206 | 207 | /* Define to 1 if on MINIX. */ 208 | /* #undef _MINIX */ 209 | 210 | /* Define to 2 if the system does not provide POSIX.1 features except with 211 | this defined. */ 212 | /* #undef _POSIX_1_SOURCE */ 213 | 214 | /* Define to 1 if you need to in order for `stat' and other things to work. */ 215 | /* #undef _POSIX_SOURCE */ 216 | 217 | /* Using the Win32 Socket implementation */ 218 | /* #undef _WINSOCKAPI_ */ 219 | 220 | /* Win32 Std C name mangling work-around */ 221 | /* #undef snprintf */ 222 | 223 | /* Win32 Std C name mangling work-around */ 224 | /* #undef vsnprintf */ 225 | -------------------------------------------------------------------------------- /deps/libxslt.config/linux/ia32/libexslt/exsltconfig.h: -------------------------------------------------------------------------------- 1 | /* 2 | * exsltconfig.h: compile-time version informations for the EXSLT library 3 | * 4 | * See Copyright for the status of this software. 5 | * 6 | * daniel@veillard.com 7 | */ 8 | 9 | #ifndef __XML_EXSLTCONFIG_H__ 10 | #define __XML_EXSLTCONFIG_H__ 11 | 12 | #ifdef __cplusplus 13 | extern "C" { 14 | #endif 15 | 16 | /** 17 | * LIBEXSLT_DOTTED_VERSION: 18 | * 19 | * the version string like "1.2.3" 20 | */ 21 | #define LIBEXSLT_DOTTED_VERSION "1.1.28" 22 | 23 | /** 24 | * LIBEXSLT_VERSION: 25 | * 26 | * the version number: 1.2.3 value is 10203 27 | */ 28 | #define LIBEXSLT_VERSION 817 29 | 30 | /** 31 | * LIBEXSLT_VERSION_STRING: 32 | * 33 | * the version number string, 1.2.3 value is "10203" 34 | */ 35 | #define LIBEXSLT_VERSION_STRING "817" 36 | 37 | /** 38 | * LIBEXSLT_VERSION_EXTRA: 39 | * 40 | * extra version information, used to show a CVS compilation 41 | */ 42 | #define LIBEXSLT_VERSION_EXTRA "" 43 | 44 | /** 45 | * WITH_CRYPTO: 46 | * 47 | * Whether crypto support is configured into exslt 48 | */ 49 | #if 0 50 | #define EXSLT_CRYPTO_ENABLED 51 | #endif 52 | 53 | /** 54 | * ATTRIBUTE_UNUSED: 55 | * 56 | * This macro is used to flag unused function parameters to GCC 57 | */ 58 | #ifdef __GNUC__ 59 | #ifdef HAVE_ANSIDECL_H 60 | #include 61 | #endif 62 | #ifndef ATTRIBUTE_UNUSED 63 | #define ATTRIBUTE_UNUSED __attribute__((unused)) 64 | #endif 65 | #else 66 | #define ATTRIBUTE_UNUSED 67 | #endif 68 | 69 | #ifdef __cplusplus 70 | } 71 | #endif 72 | 73 | #endif /* __XML_EXSLTCONFIG_H__ */ 74 | -------------------------------------------------------------------------------- /deps/libxslt.config/linux/ia32/libxslt/xsltconfig.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Summary: compile-time version informations for the XSLT engine 3 | * Description: compile-time version informations for the XSLT engine 4 | * this module is autogenerated. 5 | * 6 | * Copy: See Copyright for the status of this software. 7 | * 8 | * Author: Daniel Veillard 9 | */ 10 | 11 | #ifndef __XML_XSLTCONFIG_H__ 12 | #define __XML_XSLTCONFIG_H__ 13 | 14 | #ifdef __cplusplus 15 | extern "C" { 16 | #endif 17 | 18 | /** 19 | * LIBXSLT_DOTTED_VERSION: 20 | * 21 | * the version string like "1.2.3" 22 | */ 23 | #define LIBXSLT_DOTTED_VERSION "1.1.28" 24 | 25 | /** 26 | * LIBXSLT_VERSION: 27 | * 28 | * the version number: 1.2.3 value is 10203 29 | */ 30 | #define LIBXSLT_VERSION 10128 31 | 32 | /** 33 | * LIBXSLT_VERSION_STRING: 34 | * 35 | * the version number string, 1.2.3 value is "10203" 36 | */ 37 | #define LIBXSLT_VERSION_STRING "10128" 38 | 39 | /** 40 | * LIBXSLT_VERSION_EXTRA: 41 | * 42 | * extra version information, used to show a CVS compilation 43 | */ 44 | #define LIBXSLT_VERSION_EXTRA "" 45 | 46 | /** 47 | * WITH_XSLT_DEBUG: 48 | * 49 | * Activate the compilation of the debug reporting. Speed penalty 50 | * is insignifiant and being able to run xsltpoc -v is useful. On 51 | * by default unless --without-debug is passed to configure 52 | */ 53 | #if 1 54 | #define WITH_XSLT_DEBUG 55 | #endif 56 | 57 | #if 0 58 | /** 59 | * DEBUG_MEMORY: 60 | * 61 | * should be activated only when debugging libxslt. It replaces the 62 | * allocator with a collect and debug shell to the libc allocator. 63 | * Use configure --with-mem-debug to activate it on both library 64 | */ 65 | #define DEBUG_MEMORY 66 | 67 | /** 68 | * DEBUG_MEMORY_LOCATION: 69 | * 70 | * should be activated only when debugging libxslt. 71 | * DEBUG_MEMORY_LOCATION should be activated only when libxml has 72 | * been configured with --with-debug-mem too 73 | */ 74 | #define DEBUG_MEMORY_LOCATION 75 | #endif 76 | 77 | /** 78 | * XSLT_NEED_TRIO: 79 | * 80 | * should be activated if the existing libc library lacks some of the 81 | * string formatting function, in that case reuse the Trio ones already 82 | * compiled in the libxml2 library. 83 | */ 84 | 85 | #if 0 86 | #define XSLT_NEED_TRIO 87 | #endif 88 | #ifdef __VMS 89 | #define HAVE_MATH_H 1 90 | #define HAVE_SYS_STAT_H 1 91 | #ifndef XSLT_NEED_TRIO 92 | #define XSLT_NEED_TRIO 93 | #endif 94 | #endif 95 | 96 | #ifdef XSLT_NEED_TRIO 97 | #define TRIO_REPLACE_STDIO 98 | #endif 99 | 100 | /** 101 | * WITH_XSLT_DEBUGGER: 102 | * 103 | * Activate the compilation of the debugger support. Speed penalty 104 | * is insignifiant. 105 | * On by default unless --without-debugger is passed to configure 106 | */ 107 | #if 1 108 | #ifndef WITH_DEBUGGER 109 | #define WITH_DEBUGGER 110 | #endif 111 | #endif 112 | 113 | /** 114 | * WITH_MODULES: 115 | * 116 | * Whether module support is configured into libxslt 117 | * Note: no default module path for win32 platforms 118 | */ 119 | #if 1 120 | #ifndef WITH_MODULES 121 | #define WITH_MODULES 122 | #endif 123 | #define LIBXSLT_DEFAULT_PLUGINS_PATH() "/usr/local/lib/libxslt-plugins" 124 | #endif 125 | 126 | 127 | /** 128 | * Locale support 129 | */ 130 | #if 0 131 | #ifndef XSLT_LOCALE_XLOCALE 132 | #define XSLT_LOCALE_XLOCALE 133 | #endif 134 | #elif 0 135 | #ifndef XSLT_LOCALE_WINAPI 136 | #define XSLT_LOCALE_WINAPI 137 | #endif 138 | #endif 139 | 140 | /** 141 | * ATTRIBUTE_UNUSED: 142 | * 143 | * This macro is used to flag unused function parameters to GCC 144 | */ 145 | #ifdef __GNUC__ 146 | #ifdef HAVE_ANSIDECL_H 147 | #include 148 | #endif 149 | #ifndef ATTRIBUTE_UNUSED 150 | #define ATTRIBUTE_UNUSED __attribute__((unused)) 151 | #endif 152 | #else 153 | #define ATTRIBUTE_UNUSED 154 | #endif 155 | 156 | /** 157 | * LIBXSLT_PUBLIC: 158 | * 159 | * This macro is used to declare PUBLIC variables for Cygwin and for MSC on Windows 160 | */ 161 | #if !defined LIBXSLT_PUBLIC 162 | #if (defined(__CYGWIN__) || defined _MSC_VER) && !defined IN_LIBXSLT && !defined LIBXSLT_STATIC 163 | #define LIBXSLT_PUBLIC __declspec(dllimport) 164 | #else 165 | #define LIBXSLT_PUBLIC 166 | #endif 167 | #endif 168 | 169 | #ifdef __cplusplus 170 | } 171 | #endif 172 | 173 | #endif /* __XML_XSLTCONFIG_H__ */ 174 | -------------------------------------------------------------------------------- /deps/libxslt.config/linux/x64/config.h: -------------------------------------------------------------------------------- 1 | /* config.h. Generated from config.h.in by configure. */ 2 | /* config.h.in. Generated from configure.in by autoheader. */ 3 | 4 | /* Define to 1 if you have the header file. */ 5 | /* #undef HAVE_ANSIDECL_H */ 6 | 7 | /* Define to 1 if you have the `asctime' function. */ 8 | #define HAVE_ASCTIME 1 9 | 10 | /* Define to 1 if you have the `clock_gettime' function. */ 11 | #define HAVE_CLOCK_GETTIME 1 12 | 13 | /* Define to 1 if you have the header file. */ 14 | #define HAVE_DLFCN_H 1 15 | 16 | /* Define if fabs is there */ 17 | #define HAVE_FABS /**/ 18 | 19 | /* Define to 1 if you have the header file. */ 20 | #define HAVE_FLOAT_H 1 21 | 22 | /* Define if floor is there */ 23 | #define HAVE_FLOOR /**/ 24 | 25 | /* Define to 1 if you have the `fprintf' function. */ 26 | #define HAVE_FPRINTF 1 27 | 28 | /* Define to 1 if you have the header file. */ 29 | /* #undef HAVE_FP_CLASS_H */ 30 | 31 | /* Define to 1 if you have the `ftime' function. */ 32 | #define HAVE_FTIME 1 33 | 34 | /* Define if gcrypt library is available. */ 35 | /* #undef HAVE_GCRYPT */ 36 | 37 | /* Define to 1 if you have the `gettimeofday' function. */ 38 | #define HAVE_GETTIMEOFDAY 1 39 | 40 | /* Define to 1 if you have the `gmtime' function. */ 41 | #define HAVE_GMTIME 1 42 | 43 | /* Define to 1 if you have the `gmtime_r' function. */ 44 | #define HAVE_GMTIME_R 1 45 | 46 | /* Define to 1 if you have the header file. */ 47 | /* #undef HAVE_IEEEFP_H */ 48 | 49 | /* Define to 1 if you have the header file. */ 50 | #define HAVE_INTTYPES_H 1 51 | 52 | /* Define if pthread library is there (-lpthread) */ 53 | #define HAVE_LIBPTHREAD /**/ 54 | 55 | /* Define to 1 if you have the header file. */ 56 | #define HAVE_LOCALE_H 1 57 | 58 | /* Define to 1 if you have the `localtime' function. */ 59 | #define HAVE_LOCALTIME 1 60 | 61 | /* Define to 1 if you have the `localtime_r' function. */ 62 | #define HAVE_LOCALTIME_R 1 63 | 64 | /* Define to 1 if you have the header file. */ 65 | #define HAVE_MATH_H 1 66 | 67 | /* Define to 1 if you have the header file. */ 68 | #define HAVE_MEMORY_H 1 69 | 70 | /* Define to 1 if you have the `mktime' function. */ 71 | #define HAVE_MKTIME 1 72 | 73 | /* Define to 1 if you have the header file. */ 74 | /* #undef HAVE_NAN_H */ 75 | 76 | /* Define if pow is there */ 77 | #define HAVE_POW /**/ 78 | 79 | /* Define to 1 if you have the `printf' function. */ 80 | #define HAVE_PRINTF 1 81 | 82 | /* Define if is there */ 83 | #define HAVE_PTHREAD_H /**/ 84 | 85 | /* Define to 1 if you have the `snprintf' function. */ 86 | #define HAVE_SNPRINTF 1 87 | 88 | /* Define to 1 if you have the `sprintf' function. */ 89 | #define HAVE_SPRINTF 1 90 | 91 | /* Define to 1 if you have the `sscanf' function. */ 92 | #define HAVE_SSCANF 1 93 | 94 | /* Define to 1 if you have the `stat' function. */ 95 | #define HAVE_STAT 1 96 | 97 | /* Define to 1 if you have the header file. */ 98 | #define HAVE_STDARG_H 1 99 | 100 | /* Define to 1 if you have the header file. */ 101 | #define HAVE_STDINT_H 1 102 | 103 | /* Define to 1 if you have the header file. */ 104 | #define HAVE_STDLIB_H 1 105 | 106 | /* Define to 1 if you have the header file. */ 107 | #define HAVE_STRINGS_H 1 108 | 109 | /* Define to 1 if you have the header file. */ 110 | #define HAVE_STRING_H 1 111 | 112 | /* Define to 1 if you have the header file. */ 113 | #define HAVE_SYS_SELECT_H 1 114 | 115 | /* Define to 1 if you have the header file. */ 116 | #define HAVE_SYS_STAT_H 1 117 | 118 | /* Define to 1 if you have the header file. */ 119 | #define HAVE_SYS_TIMEB_H 1 120 | 121 | /* Define to 1 if you have the header file. */ 122 | #define HAVE_SYS_TIME_H 1 123 | 124 | /* Define to 1 if you have the header file. */ 125 | #define HAVE_SYS_TYPES_H 1 126 | 127 | /* Define to 1 if you have the `time' function. */ 128 | #define HAVE_TIME 1 129 | 130 | /* Define to 1 if you have the header file. */ 131 | #define HAVE_TIME_H 1 132 | 133 | /* Define to 1 if you have the header file. */ 134 | #define HAVE_UNISTD_H 1 135 | 136 | /* Define to 1 if you have the `vfprintf' function. */ 137 | #define HAVE_VFPRINTF 1 138 | 139 | /* Define to 1 if you have the `vsnprintf' function. */ 140 | #define HAVE_VSNPRINTF 1 141 | 142 | /* Define to 1 if you have the `vsprintf' function. */ 143 | #define HAVE_VSPRINTF 1 144 | 145 | /* Define to 1 if you have the header file. */ 146 | #define HAVE_XLOCALE_H 1 147 | 148 | /* Define to 1 if you have the `_stat' function. */ 149 | /* #undef HAVE__STAT */ 150 | 151 | /* Define to the sub-directory in which libtool stores uninstalled libraries. 152 | */ 153 | #define LT_OBJDIR ".libs/" 154 | 155 | /* Name of package */ 156 | #define PACKAGE "libxslt" 157 | 158 | /* Define to the address where bug reports for this package should be sent. */ 159 | #define PACKAGE_BUGREPORT "" 160 | 161 | /* Define to the full name of this package. */ 162 | #define PACKAGE_NAME "" 163 | 164 | /* Define to the full name and version of this package. */ 165 | #define PACKAGE_STRING "" 166 | 167 | /* Define to the one symbol short name of this package. */ 168 | #define PACKAGE_TARNAME "" 169 | 170 | /* Define to the home page for this package. */ 171 | #define PACKAGE_URL "" 172 | 173 | /* Define to the version of this package. */ 174 | #define PACKAGE_VERSION "" 175 | 176 | /* Define to 1 if you have the ANSI C header files. */ 177 | #define STDC_HEADERS 1 178 | 179 | /* Enable extensions on AIX 3, Interix. */ 180 | #ifndef _ALL_SOURCE 181 | # define _ALL_SOURCE 1 182 | #endif 183 | /* Enable GNU extensions on systems that have them. */ 184 | #ifndef _GNU_SOURCE 185 | # define _GNU_SOURCE 1 186 | #endif 187 | /* Enable threading extensions on Solaris. */ 188 | #ifndef _POSIX_PTHREAD_SEMANTICS 189 | # define _POSIX_PTHREAD_SEMANTICS 1 190 | #endif 191 | /* Enable extensions on HP NonStop. */ 192 | #ifndef _TANDEM_SOURCE 193 | # define _TANDEM_SOURCE 1 194 | #endif 195 | /* Enable general extensions on Solaris. */ 196 | #ifndef __EXTENSIONS__ 197 | # define __EXTENSIONS__ 1 198 | #endif 199 | 200 | 201 | /* Version number of package */ 202 | #define VERSION "1.1.28" 203 | 204 | /* Define if debugging support is enabled */ 205 | #define WITH_DEBUGGER /**/ 206 | 207 | /* Define to 1 if on MINIX. */ 208 | /* #undef _MINIX */ 209 | 210 | /* Define to 2 if the system does not provide POSIX.1 features except with 211 | this defined. */ 212 | /* #undef _POSIX_1_SOURCE */ 213 | 214 | /* Define to 1 if you need to in order for `stat' and other things to work. */ 215 | /* #undef _POSIX_SOURCE */ 216 | 217 | /* Using the Win32 Socket implementation */ 218 | /* #undef _WINSOCKAPI_ */ 219 | 220 | /* Win32 Std C name mangling work-around */ 221 | /* #undef snprintf */ 222 | 223 | /* Win32 Std C name mangling work-around */ 224 | /* #undef vsnprintf */ 225 | -------------------------------------------------------------------------------- /deps/libxslt.config/linux/x64/libexslt/exsltconfig.h: -------------------------------------------------------------------------------- 1 | /* 2 | * exsltconfig.h: compile-time version informations for the EXSLT library 3 | * 4 | * See Copyright for the status of this software. 5 | * 6 | * daniel@veillard.com 7 | */ 8 | 9 | #ifndef __XML_EXSLTCONFIG_H__ 10 | #define __XML_EXSLTCONFIG_H__ 11 | 12 | #ifdef __cplusplus 13 | extern "C" { 14 | #endif 15 | 16 | /** 17 | * LIBEXSLT_DOTTED_VERSION: 18 | * 19 | * the version string like "1.2.3" 20 | */ 21 | #define LIBEXSLT_DOTTED_VERSION "1.1.28" 22 | 23 | /** 24 | * LIBEXSLT_VERSION: 25 | * 26 | * the version number: 1.2.3 value is 10203 27 | */ 28 | #define LIBEXSLT_VERSION 817 29 | 30 | /** 31 | * LIBEXSLT_VERSION_STRING: 32 | * 33 | * the version number string, 1.2.3 value is "10203" 34 | */ 35 | #define LIBEXSLT_VERSION_STRING "817" 36 | 37 | /** 38 | * LIBEXSLT_VERSION_EXTRA: 39 | * 40 | * extra version information, used to show a CVS compilation 41 | */ 42 | #define LIBEXSLT_VERSION_EXTRA "" 43 | 44 | /** 45 | * WITH_CRYPTO: 46 | * 47 | * Whether crypto support is configured into exslt 48 | */ 49 | #if 0 50 | #define EXSLT_CRYPTO_ENABLED 51 | #endif 52 | 53 | /** 54 | * ATTRIBUTE_UNUSED: 55 | * 56 | * This macro is used to flag unused function parameters to GCC 57 | */ 58 | #ifdef __GNUC__ 59 | #ifdef HAVE_ANSIDECL_H 60 | #include 61 | #endif 62 | #ifndef ATTRIBUTE_UNUSED 63 | #define ATTRIBUTE_UNUSED __attribute__((unused)) 64 | #endif 65 | #else 66 | #define ATTRIBUTE_UNUSED 67 | #endif 68 | 69 | #ifdef __cplusplus 70 | } 71 | #endif 72 | 73 | #endif /* __XML_EXSLTCONFIG_H__ */ 74 | -------------------------------------------------------------------------------- /deps/libxslt.config/linux/x64/libxslt/xsltconfig.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Summary: compile-time version informations for the XSLT engine 3 | * Description: compile-time version informations for the XSLT engine 4 | * this module is autogenerated. 5 | * 6 | * Copy: See Copyright for the status of this software. 7 | * 8 | * Author: Daniel Veillard 9 | */ 10 | 11 | #ifndef __XML_XSLTCONFIG_H__ 12 | #define __XML_XSLTCONFIG_H__ 13 | 14 | #ifdef __cplusplus 15 | extern "C" { 16 | #endif 17 | 18 | /** 19 | * LIBXSLT_DOTTED_VERSION: 20 | * 21 | * the version string like "1.2.3" 22 | */ 23 | #define LIBXSLT_DOTTED_VERSION "1.1.28" 24 | 25 | /** 26 | * LIBXSLT_VERSION: 27 | * 28 | * the version number: 1.2.3 value is 10203 29 | */ 30 | #define LIBXSLT_VERSION 10128 31 | 32 | /** 33 | * LIBXSLT_VERSION_STRING: 34 | * 35 | * the version number string, 1.2.3 value is "10203" 36 | */ 37 | #define LIBXSLT_VERSION_STRING "10128" 38 | 39 | /** 40 | * LIBXSLT_VERSION_EXTRA: 41 | * 42 | * extra version information, used to show a CVS compilation 43 | */ 44 | #define LIBXSLT_VERSION_EXTRA "" 45 | 46 | /** 47 | * WITH_XSLT_DEBUG: 48 | * 49 | * Activate the compilation of the debug reporting. Speed penalty 50 | * is insignifiant and being able to run xsltpoc -v is useful. On 51 | * by default unless --without-debug is passed to configure 52 | */ 53 | #if 1 54 | #define WITH_XSLT_DEBUG 55 | #endif 56 | 57 | #if 0 58 | /** 59 | * DEBUG_MEMORY: 60 | * 61 | * should be activated only when debugging libxslt. It replaces the 62 | * allocator with a collect and debug shell to the libc allocator. 63 | * Use configure --with-mem-debug to activate it on both library 64 | */ 65 | #define DEBUG_MEMORY 66 | 67 | /** 68 | * DEBUG_MEMORY_LOCATION: 69 | * 70 | * should be activated only when debugging libxslt. 71 | * DEBUG_MEMORY_LOCATION should be activated only when libxml has 72 | * been configured with --with-debug-mem too 73 | */ 74 | #define DEBUG_MEMORY_LOCATION 75 | #endif 76 | 77 | /** 78 | * XSLT_NEED_TRIO: 79 | * 80 | * should be activated if the existing libc library lacks some of the 81 | * string formatting function, in that case reuse the Trio ones already 82 | * compiled in the libxml2 library. 83 | */ 84 | 85 | #if 0 86 | #define XSLT_NEED_TRIO 87 | #endif 88 | #ifdef __VMS 89 | #define HAVE_MATH_H 1 90 | #define HAVE_SYS_STAT_H 1 91 | #ifndef XSLT_NEED_TRIO 92 | #define XSLT_NEED_TRIO 93 | #endif 94 | #endif 95 | 96 | #ifdef XSLT_NEED_TRIO 97 | #define TRIO_REPLACE_STDIO 98 | #endif 99 | 100 | /** 101 | * WITH_XSLT_DEBUGGER: 102 | * 103 | * Activate the compilation of the debugger support. Speed penalty 104 | * is insignifiant. 105 | * On by default unless --without-debugger is passed to configure 106 | */ 107 | #if 1 108 | #ifndef WITH_DEBUGGER 109 | #define WITH_DEBUGGER 110 | #endif 111 | #endif 112 | 113 | /** 114 | * WITH_MODULES: 115 | * 116 | * Whether module support is configured into libxslt 117 | * Note: no default module path for win32 platforms 118 | */ 119 | #if 1 120 | #ifndef WITH_MODULES 121 | #define WITH_MODULES 122 | #endif 123 | #define LIBXSLT_DEFAULT_PLUGINS_PATH() "/usr/local/lib/libxslt-plugins" 124 | #endif 125 | 126 | /** 127 | * Locale support 128 | */ 129 | #if 0 130 | #ifndef XSLT_LOCALE_XLOCALE 131 | #define XSLT_LOCALE_XLOCALE 132 | #endif 133 | #elif 0 134 | #ifndef XSLT_LOCALE_WINAPI 135 | #define XSLT_LOCALE_WINAPI 136 | #endif 137 | #endif 138 | 139 | /** 140 | * ATTRIBUTE_UNUSED: 141 | * 142 | * This macro is used to flag unused function parameters to GCC 143 | */ 144 | #ifdef __GNUC__ 145 | #ifdef HAVE_ANSIDECL_H 146 | #include 147 | #endif 148 | #ifndef ATTRIBUTE_UNUSED 149 | #define ATTRIBUTE_UNUSED __attribute__((unused)) 150 | #endif 151 | #else 152 | #define ATTRIBUTE_UNUSED 153 | #endif 154 | 155 | /** 156 | * LIBXSLT_PUBLIC: 157 | * 158 | * This macro is used to declare PUBLIC variables for Cygwin and for MSC on Windows 159 | */ 160 | #if !defined LIBXSLT_PUBLIC 161 | #if (defined(__CYGWIN__) || defined _MSC_VER) && !defined IN_LIBXSLT && !defined LIBXSLT_STATIC 162 | #define LIBXSLT_PUBLIC __declspec(dllimport) 163 | #else 164 | #define LIBXSLT_PUBLIC 165 | #endif 166 | #endif 167 | 168 | #ifdef __cplusplus 169 | } 170 | #endif 171 | 172 | #endif /* __XML_XSLTCONFIG_H__ */ 173 | -------------------------------------------------------------------------------- /deps/libxslt.config/mac/arm64/config.h: -------------------------------------------------------------------------------- 1 | /* config.h. Generated from config.h.in by configure. */ 2 | /* config.h.in. Generated from configure.in by autoheader. */ 3 | 4 | /* Define to 1 if you have the header file. */ 5 | /* #undef HAVE_ANSIDECL_H */ 6 | 7 | /* Define to 1 if you have the `asctime' function. */ 8 | #define HAVE_ASCTIME 1 9 | 10 | /* Define to 1 if you have the `clock_gettime' function. */ 11 | #undef HAVE_CLOCK_GETTIME 12 | 13 | /* Define to 1 if you have the header file. */ 14 | #define HAVE_DLFCN_H 1 15 | 16 | /* Define if fabs is there */ 17 | #define HAVE_FABS /**/ 18 | 19 | /* Define to 1 if you have the header file. */ 20 | #define HAVE_FLOAT_H 1 21 | 22 | /* Define if floor is there */ 23 | #define HAVE_FLOOR /**/ 24 | 25 | /* Define to 1 if you have the `fprintf' function. */ 26 | #define HAVE_FPRINTF 1 27 | 28 | /* Define to 1 if you have the header file. */ 29 | /* #undef HAVE_FP_CLASS_H */ 30 | 31 | /* Define to 1 if you have the `ftime' function. */ 32 | #define HAVE_FTIME 1 33 | 34 | /* Define if gcrypt library is available. */ 35 | /* #undef HAVE_GCRYPT */ 36 | 37 | /* Define to 1 if you have the `gettimeofday' function. */ 38 | #define HAVE_GETTIMEOFDAY 1 39 | 40 | /* Define to 1 if you have the `gmtime' function. */ 41 | #define HAVE_GMTIME 1 42 | 43 | /* Define to 1 if you have the `gmtime_r' function. */ 44 | #define HAVE_GMTIME_R 1 45 | 46 | /* Define to 1 if you have the header file. */ 47 | /* #undef HAVE_IEEEFP_H */ 48 | 49 | /* Define to 1 if you have the header file. */ 50 | #define HAVE_INTTYPES_H 1 51 | 52 | /* Define if pthread library is there (-lpthread) */ 53 | #define HAVE_LIBPTHREAD /**/ 54 | 55 | /* Define to 1 if you have the header file. */ 56 | #define HAVE_LOCALE_H 1 57 | 58 | /* Define to 1 if you have the `localtime' function. */ 59 | #define HAVE_LOCALTIME 1 60 | 61 | /* Define to 1 if you have the `localtime_r' function. */ 62 | #define HAVE_LOCALTIME_R 1 63 | 64 | /* Define to 1 if you have the header file. */ 65 | #define HAVE_MATH_H 1 66 | 67 | /* Define to 1 if you have the header file. */ 68 | #define HAVE_MEMORY_H 1 69 | 70 | /* Define to 1 if you have the `mktime' function. */ 71 | #define HAVE_MKTIME 1 72 | 73 | /* Define to 1 if you have the header file. */ 74 | /* #undef HAVE_NAN_H */ 75 | 76 | /* Define if pow is there */ 77 | #define HAVE_POW /**/ 78 | 79 | /* Define to 1 if you have the `printf' function. */ 80 | #define HAVE_PRINTF 1 81 | 82 | /* Define if is there */ 83 | #define HAVE_PTHREAD_H /**/ 84 | 85 | /* Define to 1 if you have the `snprintf' function. */ 86 | #define HAVE_SNPRINTF 1 87 | 88 | /* Define to 1 if you have the `sprintf' function. */ 89 | #define HAVE_SPRINTF 1 90 | 91 | /* Define to 1 if you have the `sscanf' function. */ 92 | #define HAVE_SSCANF 1 93 | 94 | /* Define to 1 if you have the `stat' function. */ 95 | #define HAVE_STAT 1 96 | 97 | /* Define to 1 if you have the header file. */ 98 | #define HAVE_STDARG_H 1 99 | 100 | /* Define to 1 if you have the header file. */ 101 | #define HAVE_STDINT_H 1 102 | 103 | /* Define to 1 if you have the header file. */ 104 | #define HAVE_STDLIB_H 1 105 | 106 | /* Define to 1 if you have the header file. */ 107 | #define HAVE_STRINGS_H 1 108 | 109 | /* Define to 1 if you have the header file. */ 110 | #define HAVE_STRING_H 1 111 | 112 | /* Define to 1 if you have the header file. */ 113 | #define HAVE_SYS_SELECT_H 1 114 | 115 | /* Define to 1 if you have the header file. */ 116 | #define HAVE_SYS_STAT_H 1 117 | 118 | /* Define to 1 if you have the header file. */ 119 | #define HAVE_SYS_TIMEB_H 1 120 | 121 | /* Define to 1 if you have the header file. */ 122 | #define HAVE_SYS_TIME_H 1 123 | 124 | /* Define to 1 if you have the header file. */ 125 | #define HAVE_SYS_TYPES_H 1 126 | 127 | /* Define to 1 if you have the `time' function. */ 128 | #define HAVE_TIME 1 129 | 130 | /* Define to 1 if you have the header file. */ 131 | #define HAVE_TIME_H 1 132 | 133 | /* Define to 1 if you have the header file. */ 134 | #define HAVE_UNISTD_H 1 135 | 136 | /* Define to 1 if you have the `vfprintf' function. */ 137 | #define HAVE_VFPRINTF 1 138 | 139 | /* Define to 1 if you have the `vsnprintf' function. */ 140 | #define HAVE_VSNPRINTF 1 141 | 142 | /* Define to 1 if you have the `vsprintf' function. */ 143 | #define HAVE_VSPRINTF 1 144 | 145 | /* Define to 1 if you have the header file. */ 146 | #define HAVE_XLOCALE_H 1 147 | 148 | /* Define to 1 if you have the `_stat' function. */ 149 | /* #undef HAVE__STAT */ 150 | 151 | /* Define to the sub-directory in which libtool stores uninstalled libraries. 152 | */ 153 | #define LT_OBJDIR ".libs/" 154 | 155 | /* Name of package */ 156 | #define PACKAGE "libxslt" 157 | 158 | /* Define to the address where bug reports for this package should be sent. */ 159 | #define PACKAGE_BUGREPORT "" 160 | 161 | /* Define to the full name of this package. */ 162 | #define PACKAGE_NAME "" 163 | 164 | /* Define to the full name and version of this package. */ 165 | #define PACKAGE_STRING "" 166 | 167 | /* Define to the one symbol short name of this package. */ 168 | #define PACKAGE_TARNAME "" 169 | 170 | /* Define to the home page for this package. */ 171 | #define PACKAGE_URL "" 172 | 173 | /* Define to the version of this package. */ 174 | #define PACKAGE_VERSION "" 175 | 176 | /* Define to 1 if you have the ANSI C header files. */ 177 | #define STDC_HEADERS 1 178 | 179 | /* Enable extensions on AIX 3, Interix. */ 180 | #ifndef _ALL_SOURCE 181 | # define _ALL_SOURCE 1 182 | #endif 183 | /* Enable GNU extensions on systems that have them. */ 184 | #ifndef _GNU_SOURCE 185 | # define _GNU_SOURCE 1 186 | #endif 187 | /* Enable threading extensions on Solaris. */ 188 | #ifndef _POSIX_PTHREAD_SEMANTICS 189 | # define _POSIX_PTHREAD_SEMANTICS 1 190 | #endif 191 | /* Enable extensions on HP NonStop. */ 192 | #ifndef _TANDEM_SOURCE 193 | # define _TANDEM_SOURCE 1 194 | #endif 195 | /* Enable general extensions on Solaris. */ 196 | #ifndef __EXTENSIONS__ 197 | # define __EXTENSIONS__ 1 198 | #endif 199 | 200 | 201 | /* Version number of package */ 202 | #define VERSION "1.1.28" 203 | 204 | /* Define if debugging support is enabled */ 205 | #define WITH_DEBUGGER /**/ 206 | 207 | /* Define to 1 if on MINIX. */ 208 | /* #undef _MINIX */ 209 | 210 | /* Define to 2 if the system does not provide POSIX.1 features except with 211 | this defined. */ 212 | /* #undef _POSIX_1_SOURCE */ 213 | 214 | /* Define to 1 if you need to in order for `stat' and other things to work. */ 215 | /* #undef _POSIX_SOURCE */ 216 | 217 | /* Using the Win32 Socket implementation */ 218 | /* #undef _WINSOCKAPI_ */ 219 | 220 | /* Win32 Std C name mangling work-around */ 221 | /* #undef snprintf */ 222 | 223 | /* Win32 Std C name mangling work-around */ 224 | /* #undef vsnprintf */ 225 | -------------------------------------------------------------------------------- /deps/libxslt.config/mac/arm64/libexslt/exsltconfig.h: -------------------------------------------------------------------------------- 1 | /* 2 | * exsltconfig.h: compile-time version informations for the EXSLT library 3 | * 4 | * See Copyright for the status of this software. 5 | * 6 | * daniel@veillard.com 7 | */ 8 | 9 | #ifndef __XML_EXSLTCONFIG_H__ 10 | #define __XML_EXSLTCONFIG_H__ 11 | 12 | #ifdef __cplusplus 13 | extern "C" { 14 | #endif 15 | 16 | /** 17 | * LIBEXSLT_DOTTED_VERSION: 18 | * 19 | * the version string like "1.2.3" 20 | */ 21 | #define LIBEXSLT_DOTTED_VERSION "1.1.28" 22 | 23 | /** 24 | * LIBEXSLT_VERSION: 25 | * 26 | * the version number: 1.2.3 value is 10203 27 | */ 28 | #define LIBEXSLT_VERSION 817 29 | 30 | /** 31 | * LIBEXSLT_VERSION_STRING: 32 | * 33 | * the version number string, 1.2.3 value is "10203" 34 | */ 35 | #define LIBEXSLT_VERSION_STRING "817" 36 | 37 | /** 38 | * LIBEXSLT_VERSION_EXTRA: 39 | * 40 | * extra version information, used to show a CVS compilation 41 | */ 42 | #define LIBEXSLT_VERSION_EXTRA "" 43 | 44 | /** 45 | * WITH_CRYPTO: 46 | * 47 | * Whether crypto support is configured into exslt 48 | */ 49 | #if 0 50 | #define EXSLT_CRYPTO_ENABLED 51 | #endif 52 | 53 | /** 54 | * ATTRIBUTE_UNUSED: 55 | * 56 | * This macro is used to flag unused function parameters to GCC 57 | */ 58 | #ifdef __GNUC__ 59 | #ifdef HAVE_ANSIDECL_H 60 | #include 61 | #endif 62 | #ifndef ATTRIBUTE_UNUSED 63 | #define ATTRIBUTE_UNUSED __attribute__((unused)) 64 | #endif 65 | #else 66 | #define ATTRIBUTE_UNUSED 67 | #endif 68 | 69 | #ifdef __cplusplus 70 | } 71 | #endif 72 | 73 | #endif /* __XML_EXSLTCONFIG_H__ */ 74 | -------------------------------------------------------------------------------- /deps/libxslt.config/mac/arm64/libxslt/xsltconfig.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Summary: compile-time version informations for the XSLT engine 3 | * Description: compile-time version informations for the XSLT engine 4 | * this module is autogenerated. 5 | * 6 | * Copy: See Copyright for the status of this software. 7 | * 8 | * Author: Daniel Veillard 9 | */ 10 | 11 | #ifndef __XML_XSLTCONFIG_H__ 12 | #define __XML_XSLTCONFIG_H__ 13 | 14 | #ifdef __cplusplus 15 | extern "C" { 16 | #endif 17 | 18 | /** 19 | * LIBXSLT_DOTTED_VERSION: 20 | * 21 | * the version string like "1.2.3" 22 | */ 23 | #define LIBXSLT_DOTTED_VERSION "1.1.28" 24 | 25 | /** 26 | * LIBXSLT_VERSION: 27 | * 28 | * the version number: 1.2.3 value is 10203 29 | */ 30 | #define LIBXSLT_VERSION 10128 31 | 32 | /** 33 | * LIBXSLT_VERSION_STRING: 34 | * 35 | * the version number string, 1.2.3 value is "10203" 36 | */ 37 | #define LIBXSLT_VERSION_STRING "10128" 38 | 39 | /** 40 | * LIBXSLT_VERSION_EXTRA: 41 | * 42 | * extra version information, used to show a CVS compilation 43 | */ 44 | #define LIBXSLT_VERSION_EXTRA "" 45 | 46 | /** 47 | * WITH_XSLT_DEBUG: 48 | * 49 | * Activate the compilation of the debug reporting. Speed penalty 50 | * is insignifiant and being able to run xsltpoc -v is useful. On 51 | * by default unless --without-debug is passed to configure 52 | */ 53 | #if 1 54 | #define WITH_XSLT_DEBUG 55 | #endif 56 | 57 | #if 0 58 | /** 59 | * DEBUG_MEMORY: 60 | * 61 | * should be activated only when debugging libxslt. It replaces the 62 | * allocator with a collect and debug shell to the libc allocator. 63 | * Use configure --with-mem-debug to activate it on both library 64 | */ 65 | #define DEBUG_MEMORY 66 | 67 | /** 68 | * DEBUG_MEMORY_LOCATION: 69 | * 70 | * should be activated only when debugging libxslt. 71 | * DEBUG_MEMORY_LOCATION should be activated only when libxml has 72 | * been configured with --with-debug-mem too 73 | */ 74 | #define DEBUG_MEMORY_LOCATION 75 | #endif 76 | 77 | /** 78 | * XSLT_NEED_TRIO: 79 | * 80 | * should be activated if the existing libc library lacks some of the 81 | * string formatting function, in that case reuse the Trio ones already 82 | * compiled in the libxml2 library. 83 | */ 84 | 85 | #if 0 86 | #define XSLT_NEED_TRIO 87 | #endif 88 | #ifdef __VMS 89 | #define HAVE_MATH_H 1 90 | #define HAVE_SYS_STAT_H 1 91 | #ifndef XSLT_NEED_TRIO 92 | #define XSLT_NEED_TRIO 93 | #endif 94 | #endif 95 | 96 | #ifdef XSLT_NEED_TRIO 97 | #define TRIO_REPLACE_STDIO 98 | #endif 99 | 100 | /** 101 | * WITH_XSLT_DEBUGGER: 102 | * 103 | * Activate the compilation of the debugger support. Speed penalty 104 | * is insignifiant. 105 | * On by default unless --without-debugger is passed to configure 106 | */ 107 | #if 1 108 | #ifndef WITH_DEBUGGER 109 | #define WITH_DEBUGGER 110 | #endif 111 | #endif 112 | 113 | /** 114 | * WITH_MODULES: 115 | * 116 | * Whether module support is configured into libxslt 117 | * Note: no default module path for win32 platforms 118 | */ 119 | #if 1 120 | #ifndef WITH_MODULES 121 | #define WITH_MODULES 122 | #endif 123 | #define LIBXSLT_DEFAULT_PLUGINS_PATH() "/usr/local/lib/libxslt-plugins" 124 | #endif 125 | 126 | /** 127 | * Locale support 128 | */ 129 | #if 0 130 | #ifndef XSLT_LOCALE_XLOCALE 131 | #define XSLT_LOCALE_XLOCALE 132 | #endif 133 | #elif 0 134 | #ifndef XSLT_LOCALE_WINAPI 135 | #define XSLT_LOCALE_WINAPI 136 | #endif 137 | #endif 138 | 139 | /** 140 | * ATTRIBUTE_UNUSED: 141 | * 142 | * This macro is used to flag unused function parameters to GCC 143 | */ 144 | #ifdef __GNUC__ 145 | #ifdef HAVE_ANSIDECL_H 146 | #include 147 | #endif 148 | #ifndef ATTRIBUTE_UNUSED 149 | #define ATTRIBUTE_UNUSED __attribute__((unused)) 150 | #endif 151 | #else 152 | #define ATTRIBUTE_UNUSED 153 | #endif 154 | 155 | /** 156 | * LIBXSLT_PUBLIC: 157 | * 158 | * This macro is used to declare PUBLIC variables for Cygwin and for MSC on Windows 159 | */ 160 | #if !defined LIBXSLT_PUBLIC 161 | #if (defined(__CYGWIN__) || defined _MSC_VER) && !defined IN_LIBXSLT && !defined LIBXSLT_STATIC 162 | #define LIBXSLT_PUBLIC __declspec(dllimport) 163 | #else 164 | #define LIBXSLT_PUBLIC 165 | #endif 166 | #endif 167 | 168 | #ifdef __cplusplus 169 | } 170 | #endif 171 | 172 | #endif /* __XML_XSLTCONFIG_H__ */ 173 | -------------------------------------------------------------------------------- /deps/libxslt.config/mac/ia32/config.h: -------------------------------------------------------------------------------- 1 | /* config.h. Generated from config.h.in by configure. */ 2 | /* config.h.in. Generated from configure.in by autoheader. */ 3 | 4 | /* Define to 1 if you have the header file. */ 5 | /* #undef HAVE_ANSIDECL_H */ 6 | 7 | /* Define to 1 if you have the `asctime' function. */ 8 | #define HAVE_ASCTIME 1 9 | 10 | /* Define to 1 if you have the `clock_gettime' function. */ 11 | #undef HAVE_CLOCK_GETTIME 12 | 13 | /* Define to 1 if you have the header file. */ 14 | #define HAVE_DLFCN_H 1 15 | 16 | /* Define if fabs is there */ 17 | #define HAVE_FABS /**/ 18 | 19 | /* Define to 1 if you have the header file. */ 20 | #define HAVE_FLOAT_H 1 21 | 22 | /* Define if floor is there */ 23 | #define HAVE_FLOOR /**/ 24 | 25 | /* Define to 1 if you have the `fprintf' function. */ 26 | #define HAVE_FPRINTF 1 27 | 28 | /* Define to 1 if you have the header file. */ 29 | /* #undef HAVE_FP_CLASS_H */ 30 | 31 | /* Define to 1 if you have the `ftime' function. */ 32 | #define HAVE_FTIME 1 33 | 34 | /* Define if gcrypt library is available. */ 35 | /* #undef HAVE_GCRYPT */ 36 | 37 | /* Define to 1 if you have the `gettimeofday' function. */ 38 | #define HAVE_GETTIMEOFDAY 1 39 | 40 | /* Define to 1 if you have the `gmtime' function. */ 41 | #define HAVE_GMTIME 1 42 | 43 | /* Define to 1 if you have the `gmtime_r' function. */ 44 | #define HAVE_GMTIME_R 1 45 | 46 | /* Define to 1 if you have the header file. */ 47 | /* #undef HAVE_IEEEFP_H */ 48 | 49 | /* Define to 1 if you have the header file. */ 50 | #define HAVE_INTTYPES_H 1 51 | 52 | /* Define if pthread library is there (-lpthread) */ 53 | #define HAVE_LIBPTHREAD /**/ 54 | 55 | /* Define to 1 if you have the header file. */ 56 | #define HAVE_LOCALE_H 1 57 | 58 | /* Define to 1 if you have the `localtime' function. */ 59 | #define HAVE_LOCALTIME 1 60 | 61 | /* Define to 1 if you have the `localtime_r' function. */ 62 | #define HAVE_LOCALTIME_R 1 63 | 64 | /* Define to 1 if you have the header file. */ 65 | #define HAVE_MATH_H 1 66 | 67 | /* Define to 1 if you have the header file. */ 68 | #define HAVE_MEMORY_H 1 69 | 70 | /* Define to 1 if you have the `mktime' function. */ 71 | #define HAVE_MKTIME 1 72 | 73 | /* Define to 1 if you have the header file. */ 74 | /* #undef HAVE_NAN_H */ 75 | 76 | /* Define if pow is there */ 77 | #define HAVE_POW /**/ 78 | 79 | /* Define to 1 if you have the `printf' function. */ 80 | #define HAVE_PRINTF 1 81 | 82 | /* Define if is there */ 83 | #define HAVE_PTHREAD_H /**/ 84 | 85 | /* Define to 1 if you have the `snprintf' function. */ 86 | #define HAVE_SNPRINTF 1 87 | 88 | /* Define to 1 if you have the `sprintf' function. */ 89 | #define HAVE_SPRINTF 1 90 | 91 | /* Define to 1 if you have the `sscanf' function. */ 92 | #define HAVE_SSCANF 1 93 | 94 | /* Define to 1 if you have the `stat' function. */ 95 | #define HAVE_STAT 1 96 | 97 | /* Define to 1 if you have the header file. */ 98 | #define HAVE_STDARG_H 1 99 | 100 | /* Define to 1 if you have the header file. */ 101 | #define HAVE_STDINT_H 1 102 | 103 | /* Define to 1 if you have the header file. */ 104 | #define HAVE_STDLIB_H 1 105 | 106 | /* Define to 1 if you have the header file. */ 107 | #define HAVE_STRINGS_H 1 108 | 109 | /* Define to 1 if you have the header file. */ 110 | #define HAVE_STRING_H 1 111 | 112 | /* Define to 1 if you have the header file. */ 113 | #define HAVE_SYS_SELECT_H 1 114 | 115 | /* Define to 1 if you have the header file. */ 116 | #define HAVE_SYS_STAT_H 1 117 | 118 | /* Define to 1 if you have the header file. */ 119 | #define HAVE_SYS_TIMEB_H 1 120 | 121 | /* Define to 1 if you have the header file. */ 122 | #define HAVE_SYS_TIME_H 1 123 | 124 | /* Define to 1 if you have the header file. */ 125 | #define HAVE_SYS_TYPES_H 1 126 | 127 | /* Define to 1 if you have the `time' function. */ 128 | #define HAVE_TIME 1 129 | 130 | /* Define to 1 if you have the header file. */ 131 | #define HAVE_TIME_H 1 132 | 133 | /* Define to 1 if you have the header file. */ 134 | #define HAVE_UNISTD_H 1 135 | 136 | /* Define to 1 if you have the `vfprintf' function. */ 137 | #define HAVE_VFPRINTF 1 138 | 139 | /* Define to 1 if you have the `vsnprintf' function. */ 140 | #define HAVE_VSNPRINTF 1 141 | 142 | /* Define to 1 if you have the `vsprintf' function. */ 143 | #define HAVE_VSPRINTF 1 144 | 145 | /* Define to 1 if you have the header file. */ 146 | #define HAVE_XLOCALE_H 1 147 | 148 | /* Define to 1 if you have the `_stat' function. */ 149 | /* #undef HAVE__STAT */ 150 | 151 | /* Define to the sub-directory in which libtool stores uninstalled libraries. 152 | */ 153 | #define LT_OBJDIR ".libs/" 154 | 155 | /* Name of package */ 156 | #define PACKAGE "libxslt" 157 | 158 | /* Define to the address where bug reports for this package should be sent. */ 159 | #define PACKAGE_BUGREPORT "" 160 | 161 | /* Define to the full name of this package. */ 162 | #define PACKAGE_NAME "" 163 | 164 | /* Define to the full name and version of this package. */ 165 | #define PACKAGE_STRING "" 166 | 167 | /* Define to the one symbol short name of this package. */ 168 | #define PACKAGE_TARNAME "" 169 | 170 | /* Define to the home page for this package. */ 171 | #define PACKAGE_URL "" 172 | 173 | /* Define to the version of this package. */ 174 | #define PACKAGE_VERSION "" 175 | 176 | /* Define to 1 if you have the ANSI C header files. */ 177 | #define STDC_HEADERS 1 178 | 179 | /* Enable extensions on AIX 3, Interix. */ 180 | #ifndef _ALL_SOURCE 181 | # define _ALL_SOURCE 1 182 | #endif 183 | /* Enable GNU extensions on systems that have them. */ 184 | #ifndef _GNU_SOURCE 185 | # define _GNU_SOURCE 1 186 | #endif 187 | /* Enable threading extensions on Solaris. */ 188 | #ifndef _POSIX_PTHREAD_SEMANTICS 189 | # define _POSIX_PTHREAD_SEMANTICS 1 190 | #endif 191 | /* Enable extensions on HP NonStop. */ 192 | #ifndef _TANDEM_SOURCE 193 | # define _TANDEM_SOURCE 1 194 | #endif 195 | /* Enable general extensions on Solaris. */ 196 | #ifndef __EXTENSIONS__ 197 | # define __EXTENSIONS__ 1 198 | #endif 199 | 200 | 201 | /* Version number of package */ 202 | #define VERSION "1.1.28" 203 | 204 | /* Define if debugging support is enabled */ 205 | #define WITH_DEBUGGER /**/ 206 | 207 | /* Define to 1 if on MINIX. */ 208 | /* #undef _MINIX */ 209 | 210 | /* Define to 2 if the system does not provide POSIX.1 features except with 211 | this defined. */ 212 | /* #undef _POSIX_1_SOURCE */ 213 | 214 | /* Define to 1 if you need to in order for `stat' and other things to work. */ 215 | /* #undef _POSIX_SOURCE */ 216 | 217 | /* Using the Win32 Socket implementation */ 218 | /* #undef _WINSOCKAPI_ */ 219 | 220 | /* Win32 Std C name mangling work-around */ 221 | /* #undef snprintf */ 222 | 223 | /* Win32 Std C name mangling work-around */ 224 | /* #undef vsnprintf */ 225 | -------------------------------------------------------------------------------- /deps/libxslt.config/mac/ia32/libexslt/exsltconfig.h: -------------------------------------------------------------------------------- 1 | /* 2 | * exsltconfig.h: compile-time version informations for the EXSLT library 3 | * 4 | * See Copyright for the status of this software. 5 | * 6 | * daniel@veillard.com 7 | */ 8 | 9 | #ifndef __XML_EXSLTCONFIG_H__ 10 | #define __XML_EXSLTCONFIG_H__ 11 | 12 | #ifdef __cplusplus 13 | extern "C" { 14 | #endif 15 | 16 | /** 17 | * LIBEXSLT_DOTTED_VERSION: 18 | * 19 | * the version string like "1.2.3" 20 | */ 21 | #define LIBEXSLT_DOTTED_VERSION "1.1.28" 22 | 23 | /** 24 | * LIBEXSLT_VERSION: 25 | * 26 | * the version number: 1.2.3 value is 10203 27 | */ 28 | #define LIBEXSLT_VERSION 817 29 | 30 | /** 31 | * LIBEXSLT_VERSION_STRING: 32 | * 33 | * the version number string, 1.2.3 value is "10203" 34 | */ 35 | #define LIBEXSLT_VERSION_STRING "817" 36 | 37 | /** 38 | * LIBEXSLT_VERSION_EXTRA: 39 | * 40 | * extra version information, used to show a CVS compilation 41 | */ 42 | #define LIBEXSLT_VERSION_EXTRA "" 43 | 44 | /** 45 | * WITH_CRYPTO: 46 | * 47 | * Whether crypto support is configured into exslt 48 | */ 49 | #if 0 50 | #define EXSLT_CRYPTO_ENABLED 51 | #endif 52 | 53 | /** 54 | * ATTRIBUTE_UNUSED: 55 | * 56 | * This macro is used to flag unused function parameters to GCC 57 | */ 58 | #ifdef __GNUC__ 59 | #ifdef HAVE_ANSIDECL_H 60 | #include 61 | #endif 62 | #ifndef ATTRIBUTE_UNUSED 63 | #define ATTRIBUTE_UNUSED __attribute__((unused)) 64 | #endif 65 | #else 66 | #define ATTRIBUTE_UNUSED 67 | #endif 68 | 69 | #ifdef __cplusplus 70 | } 71 | #endif 72 | 73 | #endif /* __XML_EXSLTCONFIG_H__ */ 74 | -------------------------------------------------------------------------------- /deps/libxslt.config/mac/ia32/libxslt/xsltconfig.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Summary: compile-time version informations for the XSLT engine 3 | * Description: compile-time version informations for the XSLT engine 4 | * this module is autogenerated. 5 | * 6 | * Copy: See Copyright for the status of this software. 7 | * 8 | * Author: Daniel Veillard 9 | */ 10 | 11 | #ifndef __XML_XSLTCONFIG_H__ 12 | #define __XML_XSLTCONFIG_H__ 13 | 14 | #ifdef __cplusplus 15 | extern "C" { 16 | #endif 17 | 18 | /** 19 | * LIBXSLT_DOTTED_VERSION: 20 | * 21 | * the version string like "1.2.3" 22 | */ 23 | #define LIBXSLT_DOTTED_VERSION "1.1.28" 24 | 25 | /** 26 | * LIBXSLT_VERSION: 27 | * 28 | * the version number: 1.2.3 value is 10203 29 | */ 30 | #define LIBXSLT_VERSION 10128 31 | 32 | /** 33 | * LIBXSLT_VERSION_STRING: 34 | * 35 | * the version number string, 1.2.3 value is "10203" 36 | */ 37 | #define LIBXSLT_VERSION_STRING "10128" 38 | 39 | /** 40 | * LIBXSLT_VERSION_EXTRA: 41 | * 42 | * extra version information, used to show a CVS compilation 43 | */ 44 | #define LIBXSLT_VERSION_EXTRA "" 45 | 46 | /** 47 | * WITH_XSLT_DEBUG: 48 | * 49 | * Activate the compilation of the debug reporting. Speed penalty 50 | * is insignifiant and being able to run xsltpoc -v is useful. On 51 | * by default unless --without-debug is passed to configure 52 | */ 53 | #if 1 54 | #define WITH_XSLT_DEBUG 55 | #endif 56 | 57 | #if 0 58 | /** 59 | * DEBUG_MEMORY: 60 | * 61 | * should be activated only when debugging libxslt. It replaces the 62 | * allocator with a collect and debug shell to the libc allocator. 63 | * Use configure --with-mem-debug to activate it on both library 64 | */ 65 | #define DEBUG_MEMORY 66 | 67 | /** 68 | * DEBUG_MEMORY_LOCATION: 69 | * 70 | * should be activated only when debugging libxslt. 71 | * DEBUG_MEMORY_LOCATION should be activated only when libxml has 72 | * been configured with --with-debug-mem too 73 | */ 74 | #define DEBUG_MEMORY_LOCATION 75 | #endif 76 | 77 | /** 78 | * XSLT_NEED_TRIO: 79 | * 80 | * should be activated if the existing libc library lacks some of the 81 | * string formatting function, in that case reuse the Trio ones already 82 | * compiled in the libxml2 library. 83 | */ 84 | 85 | #if 0 86 | #define XSLT_NEED_TRIO 87 | #endif 88 | #ifdef __VMS 89 | #define HAVE_MATH_H 1 90 | #define HAVE_SYS_STAT_H 1 91 | #ifndef XSLT_NEED_TRIO 92 | #define XSLT_NEED_TRIO 93 | #endif 94 | #endif 95 | 96 | #ifdef XSLT_NEED_TRIO 97 | #define TRIO_REPLACE_STDIO 98 | #endif 99 | 100 | /** 101 | * WITH_XSLT_DEBUGGER: 102 | * 103 | * Activate the compilation of the debugger support. Speed penalty 104 | * is insignifiant. 105 | * On by default unless --without-debugger is passed to configure 106 | */ 107 | #if 1 108 | #ifndef WITH_DEBUGGER 109 | #define WITH_DEBUGGER 110 | #endif 111 | #endif 112 | 113 | /** 114 | * WITH_MODULES: 115 | * 116 | * Whether module support is configured into libxslt 117 | * Note: no default module path for win32 platforms 118 | */ 119 | #if 1 120 | #ifndef WITH_MODULES 121 | #define WITH_MODULES 122 | #endif 123 | #define LIBXSLT_DEFAULT_PLUGINS_PATH() "/usr/local/lib/libxslt-plugins" 124 | #endif 125 | 126 | /** 127 | * Locale support 128 | */ 129 | #if 0 130 | #ifndef XSLT_LOCALE_XLOCALE 131 | #define XSLT_LOCALE_XLOCALE 132 | #endif 133 | #elif 0 134 | #ifndef XSLT_LOCALE_WINAPI 135 | #define XSLT_LOCALE_WINAPI 136 | #endif 137 | #endif 138 | 139 | /** 140 | * ATTRIBUTE_UNUSED: 141 | * 142 | * This macro is used to flag unused function parameters to GCC 143 | */ 144 | #ifdef __GNUC__ 145 | #ifdef HAVE_ANSIDECL_H 146 | #include 147 | #endif 148 | #ifndef ATTRIBUTE_UNUSED 149 | #define ATTRIBUTE_UNUSED __attribute__((unused)) 150 | #endif 151 | #else 152 | #define ATTRIBUTE_UNUSED 153 | #endif 154 | 155 | /** 156 | * LIBXSLT_PUBLIC: 157 | * 158 | * This macro is used to declare PUBLIC variables for Cygwin and for MSC on Windows 159 | */ 160 | #if !defined LIBXSLT_PUBLIC 161 | #if (defined(__CYGWIN__) || defined _MSC_VER) && !defined IN_LIBXSLT && !defined LIBXSLT_STATIC 162 | #define LIBXSLT_PUBLIC __declspec(dllimport) 163 | #else 164 | #define LIBXSLT_PUBLIC 165 | #endif 166 | #endif 167 | 168 | #ifdef __cplusplus 169 | } 170 | #endif 171 | 172 | #endif /* __XML_XSLTCONFIG_H__ */ 173 | -------------------------------------------------------------------------------- /deps/libxslt.config/mac/x64/config.h: -------------------------------------------------------------------------------- 1 | /* config.h. Generated from config.h.in by configure. */ 2 | /* config.h.in. Generated from configure.in by autoheader. */ 3 | 4 | /* Define to 1 if you have the header file. */ 5 | /* #undef HAVE_ANSIDECL_H */ 6 | 7 | /* Define to 1 if you have the `asctime' function. */ 8 | #define HAVE_ASCTIME 1 9 | 10 | /* Define to 1 if you have the `clock_gettime' function. */ 11 | #undef HAVE_CLOCK_GETTIME 12 | 13 | /* Define to 1 if you have the header file. */ 14 | #define HAVE_DLFCN_H 1 15 | 16 | /* Define if fabs is there */ 17 | #define HAVE_FABS /**/ 18 | 19 | /* Define to 1 if you have the header file. */ 20 | #define HAVE_FLOAT_H 1 21 | 22 | /* Define if floor is there */ 23 | #define HAVE_FLOOR /**/ 24 | 25 | /* Define to 1 if you have the `fprintf' function. */ 26 | #define HAVE_FPRINTF 1 27 | 28 | /* Define to 1 if you have the header file. */ 29 | /* #undef HAVE_FP_CLASS_H */ 30 | 31 | /* Define to 1 if you have the `ftime' function. */ 32 | #define HAVE_FTIME 1 33 | 34 | /* Define if gcrypt library is available. */ 35 | /* #undef HAVE_GCRYPT */ 36 | 37 | /* Define to 1 if you have the `gettimeofday' function. */ 38 | #define HAVE_GETTIMEOFDAY 1 39 | 40 | /* Define to 1 if you have the `gmtime' function. */ 41 | #define HAVE_GMTIME 1 42 | 43 | /* Define to 1 if you have the `gmtime_r' function. */ 44 | #define HAVE_GMTIME_R 1 45 | 46 | /* Define to 1 if you have the header file. */ 47 | /* #undef HAVE_IEEEFP_H */ 48 | 49 | /* Define to 1 if you have the header file. */ 50 | #define HAVE_INTTYPES_H 1 51 | 52 | /* Define if pthread library is there (-lpthread) */ 53 | #define HAVE_LIBPTHREAD /**/ 54 | 55 | /* Define to 1 if you have the header file. */ 56 | #define HAVE_LOCALE_H 1 57 | 58 | /* Define to 1 if you have the `localtime' function. */ 59 | #define HAVE_LOCALTIME 1 60 | 61 | /* Define to 1 if you have the `localtime_r' function. */ 62 | #define HAVE_LOCALTIME_R 1 63 | 64 | /* Define to 1 if you have the header file. */ 65 | #define HAVE_MATH_H 1 66 | 67 | /* Define to 1 if you have the header file. */ 68 | #define HAVE_MEMORY_H 1 69 | 70 | /* Define to 1 if you have the `mktime' function. */ 71 | #define HAVE_MKTIME 1 72 | 73 | /* Define to 1 if you have the header file. */ 74 | /* #undef HAVE_NAN_H */ 75 | 76 | /* Define if pow is there */ 77 | #define HAVE_POW /**/ 78 | 79 | /* Define to 1 if you have the `printf' function. */ 80 | #define HAVE_PRINTF 1 81 | 82 | /* Define if is there */ 83 | #define HAVE_PTHREAD_H /**/ 84 | 85 | /* Define to 1 if you have the `snprintf' function. */ 86 | #define HAVE_SNPRINTF 1 87 | 88 | /* Define to 1 if you have the `sprintf' function. */ 89 | #define HAVE_SPRINTF 1 90 | 91 | /* Define to 1 if you have the `sscanf' function. */ 92 | #define HAVE_SSCANF 1 93 | 94 | /* Define to 1 if you have the `stat' function. */ 95 | #define HAVE_STAT 1 96 | 97 | /* Define to 1 if you have the header file. */ 98 | #define HAVE_STDARG_H 1 99 | 100 | /* Define to 1 if you have the header file. */ 101 | #define HAVE_STDINT_H 1 102 | 103 | /* Define to 1 if you have the header file. */ 104 | #define HAVE_STDLIB_H 1 105 | 106 | /* Define to 1 if you have the header file. */ 107 | #define HAVE_STRINGS_H 1 108 | 109 | /* Define to 1 if you have the header file. */ 110 | #define HAVE_STRING_H 1 111 | 112 | /* Define to 1 if you have the header file. */ 113 | #define HAVE_SYS_SELECT_H 1 114 | 115 | /* Define to 1 if you have the header file. */ 116 | #define HAVE_SYS_STAT_H 1 117 | 118 | /* Define to 1 if you have the header file. */ 119 | #define HAVE_SYS_TIMEB_H 1 120 | 121 | /* Define to 1 if you have the header file. */ 122 | #define HAVE_SYS_TIME_H 1 123 | 124 | /* Define to 1 if you have the header file. */ 125 | #define HAVE_SYS_TYPES_H 1 126 | 127 | /* Define to 1 if you have the `time' function. */ 128 | #define HAVE_TIME 1 129 | 130 | /* Define to 1 if you have the header file. */ 131 | #define HAVE_TIME_H 1 132 | 133 | /* Define to 1 if you have the header file. */ 134 | #define HAVE_UNISTD_H 1 135 | 136 | /* Define to 1 if you have the `vfprintf' function. */ 137 | #define HAVE_VFPRINTF 1 138 | 139 | /* Define to 1 if you have the `vsnprintf' function. */ 140 | #define HAVE_VSNPRINTF 1 141 | 142 | /* Define to 1 if you have the `vsprintf' function. */ 143 | #define HAVE_VSPRINTF 1 144 | 145 | /* Define to 1 if you have the header file. */ 146 | #define HAVE_XLOCALE_H 1 147 | 148 | /* Define to 1 if you have the `_stat' function. */ 149 | /* #undef HAVE__STAT */ 150 | 151 | /* Define to the sub-directory in which libtool stores uninstalled libraries. 152 | */ 153 | #define LT_OBJDIR ".libs/" 154 | 155 | /* Name of package */ 156 | #define PACKAGE "libxslt" 157 | 158 | /* Define to the address where bug reports for this package should be sent. */ 159 | #define PACKAGE_BUGREPORT "" 160 | 161 | /* Define to the full name of this package. */ 162 | #define PACKAGE_NAME "" 163 | 164 | /* Define to the full name and version of this package. */ 165 | #define PACKAGE_STRING "" 166 | 167 | /* Define to the one symbol short name of this package. */ 168 | #define PACKAGE_TARNAME "" 169 | 170 | /* Define to the home page for this package. */ 171 | #define PACKAGE_URL "" 172 | 173 | /* Define to the version of this package. */ 174 | #define PACKAGE_VERSION "" 175 | 176 | /* Define to 1 if you have the ANSI C header files. */ 177 | #define STDC_HEADERS 1 178 | 179 | /* Enable extensions on AIX 3, Interix. */ 180 | #ifndef _ALL_SOURCE 181 | # define _ALL_SOURCE 1 182 | #endif 183 | /* Enable GNU extensions on systems that have them. */ 184 | #ifndef _GNU_SOURCE 185 | # define _GNU_SOURCE 1 186 | #endif 187 | /* Enable threading extensions on Solaris. */ 188 | #ifndef _POSIX_PTHREAD_SEMANTICS 189 | # define _POSIX_PTHREAD_SEMANTICS 1 190 | #endif 191 | /* Enable extensions on HP NonStop. */ 192 | #ifndef _TANDEM_SOURCE 193 | # define _TANDEM_SOURCE 1 194 | #endif 195 | /* Enable general extensions on Solaris. */ 196 | #ifndef __EXTENSIONS__ 197 | # define __EXTENSIONS__ 1 198 | #endif 199 | 200 | 201 | /* Version number of package */ 202 | #define VERSION "1.1.28" 203 | 204 | /* Define if debugging support is enabled */ 205 | #define WITH_DEBUGGER /**/ 206 | 207 | /* Define to 1 if on MINIX. */ 208 | /* #undef _MINIX */ 209 | 210 | /* Define to 2 if the system does not provide POSIX.1 features except with 211 | this defined. */ 212 | /* #undef _POSIX_1_SOURCE */ 213 | 214 | /* Define to 1 if you need to in order for `stat' and other things to work. */ 215 | /* #undef _POSIX_SOURCE */ 216 | 217 | /* Using the Win32 Socket implementation */ 218 | /* #undef _WINSOCKAPI_ */ 219 | 220 | /* Win32 Std C name mangling work-around */ 221 | /* #undef snprintf */ 222 | 223 | /* Win32 Std C name mangling work-around */ 224 | /* #undef vsnprintf */ 225 | -------------------------------------------------------------------------------- /deps/libxslt.config/mac/x64/libexslt/exsltconfig.h: -------------------------------------------------------------------------------- 1 | /* 2 | * exsltconfig.h: compile-time version informations for the EXSLT library 3 | * 4 | * See Copyright for the status of this software. 5 | * 6 | * daniel@veillard.com 7 | */ 8 | 9 | #ifndef __XML_EXSLTCONFIG_H__ 10 | #define __XML_EXSLTCONFIG_H__ 11 | 12 | #ifdef __cplusplus 13 | extern "C" { 14 | #endif 15 | 16 | /** 17 | * LIBEXSLT_DOTTED_VERSION: 18 | * 19 | * the version string like "1.2.3" 20 | */ 21 | #define LIBEXSLT_DOTTED_VERSION "1.1.28" 22 | 23 | /** 24 | * LIBEXSLT_VERSION: 25 | * 26 | * the version number: 1.2.3 value is 10203 27 | */ 28 | #define LIBEXSLT_VERSION 817 29 | 30 | /** 31 | * LIBEXSLT_VERSION_STRING: 32 | * 33 | * the version number string, 1.2.3 value is "10203" 34 | */ 35 | #define LIBEXSLT_VERSION_STRING "817" 36 | 37 | /** 38 | * LIBEXSLT_VERSION_EXTRA: 39 | * 40 | * extra version information, used to show a CVS compilation 41 | */ 42 | #define LIBEXSLT_VERSION_EXTRA "" 43 | 44 | /** 45 | * WITH_CRYPTO: 46 | * 47 | * Whether crypto support is configured into exslt 48 | */ 49 | #if 0 50 | #define EXSLT_CRYPTO_ENABLED 51 | #endif 52 | 53 | /** 54 | * ATTRIBUTE_UNUSED: 55 | * 56 | * This macro is used to flag unused function parameters to GCC 57 | */ 58 | #ifdef __GNUC__ 59 | #ifdef HAVE_ANSIDECL_H 60 | #include 61 | #endif 62 | #ifndef ATTRIBUTE_UNUSED 63 | #define ATTRIBUTE_UNUSED __attribute__((unused)) 64 | #endif 65 | #else 66 | #define ATTRIBUTE_UNUSED 67 | #endif 68 | 69 | #ifdef __cplusplus 70 | } 71 | #endif 72 | 73 | #endif /* __XML_EXSLTCONFIG_H__ */ 74 | -------------------------------------------------------------------------------- /deps/libxslt.config/mac/x64/libxslt/xsltconfig.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Summary: compile-time version informations for the XSLT engine 3 | * Description: compile-time version informations for the XSLT engine 4 | * this module is autogenerated. 5 | * 6 | * Copy: See Copyright for the status of this software. 7 | * 8 | * Author: Daniel Veillard 9 | */ 10 | 11 | #ifndef __XML_XSLTCONFIG_H__ 12 | #define __XML_XSLTCONFIG_H__ 13 | 14 | #ifdef __cplusplus 15 | extern "C" { 16 | #endif 17 | 18 | /** 19 | * LIBXSLT_DOTTED_VERSION: 20 | * 21 | * the version string like "1.2.3" 22 | */ 23 | #define LIBXSLT_DOTTED_VERSION "1.1.28" 24 | 25 | /** 26 | * LIBXSLT_VERSION: 27 | * 28 | * the version number: 1.2.3 value is 10203 29 | */ 30 | #define LIBXSLT_VERSION 10128 31 | 32 | /** 33 | * LIBXSLT_VERSION_STRING: 34 | * 35 | * the version number string, 1.2.3 value is "10203" 36 | */ 37 | #define LIBXSLT_VERSION_STRING "10128" 38 | 39 | /** 40 | * LIBXSLT_VERSION_EXTRA: 41 | * 42 | * extra version information, used to show a CVS compilation 43 | */ 44 | #define LIBXSLT_VERSION_EXTRA "" 45 | 46 | /** 47 | * WITH_XSLT_DEBUG: 48 | * 49 | * Activate the compilation of the debug reporting. Speed penalty 50 | * is insignifiant and being able to run xsltpoc -v is useful. On 51 | * by default unless --without-debug is passed to configure 52 | */ 53 | #if 1 54 | #define WITH_XSLT_DEBUG 55 | #endif 56 | 57 | #if 0 58 | /** 59 | * DEBUG_MEMORY: 60 | * 61 | * should be activated only when debugging libxslt. It replaces the 62 | * allocator with a collect and debug shell to the libc allocator. 63 | * Use configure --with-mem-debug to activate it on both library 64 | */ 65 | #define DEBUG_MEMORY 66 | 67 | /** 68 | * DEBUG_MEMORY_LOCATION: 69 | * 70 | * should be activated only when debugging libxslt. 71 | * DEBUG_MEMORY_LOCATION should be activated only when libxml has 72 | * been configured with --with-debug-mem too 73 | */ 74 | #define DEBUG_MEMORY_LOCATION 75 | #endif 76 | 77 | /** 78 | * XSLT_NEED_TRIO: 79 | * 80 | * should be activated if the existing libc library lacks some of the 81 | * string formatting function, in that case reuse the Trio ones already 82 | * compiled in the libxml2 library. 83 | */ 84 | 85 | #if 0 86 | #define XSLT_NEED_TRIO 87 | #endif 88 | #ifdef __VMS 89 | #define HAVE_MATH_H 1 90 | #define HAVE_SYS_STAT_H 1 91 | #ifndef XSLT_NEED_TRIO 92 | #define XSLT_NEED_TRIO 93 | #endif 94 | #endif 95 | 96 | #ifdef XSLT_NEED_TRIO 97 | #define TRIO_REPLACE_STDIO 98 | #endif 99 | 100 | /** 101 | * WITH_XSLT_DEBUGGER: 102 | * 103 | * Activate the compilation of the debugger support. Speed penalty 104 | * is insignifiant. 105 | * On by default unless --without-debugger is passed to configure 106 | */ 107 | #if 1 108 | #ifndef WITH_DEBUGGER 109 | #define WITH_DEBUGGER 110 | #endif 111 | #endif 112 | 113 | /** 114 | * WITH_MODULES: 115 | * 116 | * Whether module support is configured into libxslt 117 | * Note: no default module path for win32 platforms 118 | */ 119 | #if 1 120 | #ifndef WITH_MODULES 121 | #define WITH_MODULES 122 | #endif 123 | #define LIBXSLT_DEFAULT_PLUGINS_PATH() "/usr/local/lib/libxslt-plugins" 124 | #endif 125 | 126 | /** 127 | * Locale support 128 | */ 129 | #if 0 130 | #ifndef XSLT_LOCALE_XLOCALE 131 | #define XSLT_LOCALE_XLOCALE 132 | #endif 133 | #elif 0 134 | #ifndef XSLT_LOCALE_WINAPI 135 | #define XSLT_LOCALE_WINAPI 136 | #endif 137 | #endif 138 | 139 | /** 140 | * ATTRIBUTE_UNUSED: 141 | * 142 | * This macro is used to flag unused function parameters to GCC 143 | */ 144 | #ifdef __GNUC__ 145 | #ifdef HAVE_ANSIDECL_H 146 | #include 147 | #endif 148 | #ifndef ATTRIBUTE_UNUSED 149 | #define ATTRIBUTE_UNUSED __attribute__((unused)) 150 | #endif 151 | #else 152 | #define ATTRIBUTE_UNUSED 153 | #endif 154 | 155 | /** 156 | * LIBXSLT_PUBLIC: 157 | * 158 | * This macro is used to declare PUBLIC variables for Cygwin and for MSC on Windows 159 | */ 160 | #if !defined LIBXSLT_PUBLIC 161 | #if (defined(__CYGWIN__) || defined _MSC_VER) && !defined IN_LIBXSLT && !defined LIBXSLT_STATIC 162 | #define LIBXSLT_PUBLIC __declspec(dllimport) 163 | #else 164 | #define LIBXSLT_PUBLIC 165 | #endif 166 | #endif 167 | 168 | #ifdef __cplusplus 169 | } 170 | #endif 171 | 172 | #endif /* __XML_XSLTCONFIG_H__ */ 173 | -------------------------------------------------------------------------------- /deps/libxslt.config/solaris/ia32/config.h: -------------------------------------------------------------------------------- 1 | /* config.h. Generated from config.h.in by configure. */ 2 | /* config.h.in. Generated from configure.in by autoheader. */ 3 | 4 | /* Define to 1 if you have the header file. */ 5 | /* #undef HAVE_ANSIDECL_H */ 6 | 7 | /* Define to 1 if you have the `asctime' function. */ 8 | #define HAVE_ASCTIME 1 9 | 10 | /* Define to 1 if you have the `clock_gettime' function. */ 11 | #define HAVE_CLOCK_GETTIME 1 12 | 13 | /* Define to 1 if you have the header file. */ 14 | #define HAVE_DLFCN_H 1 15 | 16 | /* Define if fabs is there */ 17 | #define HAVE_FABS /**/ 18 | 19 | /* Define to 1 if you have the header file. */ 20 | #define HAVE_FLOAT_H 1 21 | 22 | /* Define if floor is there */ 23 | #define HAVE_FLOOR /**/ 24 | 25 | /* Define to 1 if you have the `fprintf' function. */ 26 | #define HAVE_FPRINTF 1 27 | 28 | /* Define to 1 if you have the header file. */ 29 | /* #undef HAVE_FP_CLASS_H */ 30 | 31 | /* Define to 1 if you have the `ftime' function. */ 32 | #define HAVE_FTIME 1 33 | 34 | /* Define if gcrypt library is available. */ 35 | /* #undef HAVE_GCRYPT */ 36 | 37 | /* Define to 1 if you have the `gettimeofday' function. */ 38 | #define HAVE_GETTIMEOFDAY 1 39 | 40 | /* Define to 1 if you have the `gmtime' function. */ 41 | #define HAVE_GMTIME 1 42 | 43 | /* Define to 1 if you have the `gmtime_r' function. */ 44 | #define HAVE_GMTIME_R 1 45 | 46 | /* Define to 1 if you have the header file. */ 47 | /* #undef HAVE_IEEEFP_H */ 48 | 49 | /* Define to 1 if you have the header file. */ 50 | #define HAVE_INTTYPES_H 1 51 | 52 | /* Define if pthread library is there (-lpthread) */ 53 | #define HAVE_LIBPTHREAD /**/ 54 | 55 | /* Define to 1 if you have the header file. */ 56 | #define HAVE_LOCALE_H 1 57 | 58 | /* Define to 1 if you have the `localtime' function. */ 59 | #define HAVE_LOCALTIME 1 60 | 61 | /* Define to 1 if you have the `localtime_r' function. */ 62 | #define HAVE_LOCALTIME_R 1 63 | 64 | /* Define to 1 if you have the header file. */ 65 | #define HAVE_MATH_H 1 66 | 67 | /* Define to 1 if you have the header file. */ 68 | #define HAVE_MEMORY_H 1 69 | 70 | /* Define to 1 if you have the `mktime' function. */ 71 | #define HAVE_MKTIME 1 72 | 73 | /* Define to 1 if you have the header file. */ 74 | /* #undef HAVE_NAN_H */ 75 | 76 | /* Define if pow is there */ 77 | #define HAVE_POW /**/ 78 | 79 | /* Define to 1 if you have the `printf' function. */ 80 | #define HAVE_PRINTF 1 81 | 82 | /* Define if is there */ 83 | #define HAVE_PTHREAD_H /**/ 84 | 85 | /* Define to 1 if you have the `snprintf' function. */ 86 | #define HAVE_SNPRINTF 1 87 | 88 | /* Define to 1 if you have the `sprintf' function. */ 89 | #define HAVE_SPRINTF 1 90 | 91 | /* Define to 1 if you have the `sscanf' function. */ 92 | #define HAVE_SSCANF 1 93 | 94 | /* Define to 1 if you have the `stat' function. */ 95 | #define HAVE_STAT 1 96 | 97 | /* Define to 1 if you have the header file. */ 98 | #define HAVE_STDARG_H 1 99 | 100 | /* Define to 1 if you have the header file. */ 101 | #define HAVE_STDINT_H 1 102 | 103 | /* Define to 1 if you have the header file. */ 104 | #define HAVE_STDLIB_H 1 105 | 106 | /* Define to 1 if you have the header file. */ 107 | #define HAVE_STRINGS_H 1 108 | 109 | /* Define to 1 if you have the header file. */ 110 | #define HAVE_STRING_H 1 111 | 112 | /* Define to 1 if you have the header file. */ 113 | #define HAVE_SYS_SELECT_H 1 114 | 115 | /* Define to 1 if you have the header file. */ 116 | #define HAVE_SYS_STAT_H 1 117 | 118 | /* Define to 1 if you have the header file. */ 119 | #define HAVE_SYS_TIMEB_H 1 120 | 121 | /* Define to 1 if you have the header file. */ 122 | #define HAVE_SYS_TIME_H 1 123 | 124 | /* Define to 1 if you have the header file. */ 125 | #define HAVE_SYS_TYPES_H 1 126 | 127 | /* Define to 1 if you have the `time' function. */ 128 | #define HAVE_TIME 1 129 | 130 | /* Define to 1 if you have the header file. */ 131 | #define HAVE_TIME_H 1 132 | 133 | /* Define to 1 if you have the header file. */ 134 | #define HAVE_UNISTD_H 1 135 | 136 | /* Define to 1 if you have the `vfprintf' function. */ 137 | #define HAVE_VFPRINTF 1 138 | 139 | /* Define to 1 if you have the `vsnprintf' function. */ 140 | #define HAVE_VSNPRINTF 1 141 | 142 | /* Define to 1 if you have the `vsprintf' function. */ 143 | #define HAVE_VSPRINTF 1 144 | 145 | /* Define to 1 if you have the header file. */ 146 | #define HAVE_XLOCALE_H 1 147 | 148 | /* Define to 1 if you have the `_stat' function. */ 149 | /* #undef HAVE__STAT */ 150 | 151 | /* Define to the sub-directory in which libtool stores uninstalled libraries. 152 | */ 153 | #define LT_OBJDIR ".libs/" 154 | 155 | /* Name of package */ 156 | #define PACKAGE "libxslt" 157 | 158 | /* Define to the address where bug reports for this package should be sent. */ 159 | #define PACKAGE_BUGREPORT "" 160 | 161 | /* Define to the full name of this package. */ 162 | #define PACKAGE_NAME "" 163 | 164 | /* Define to the full name and version of this package. */ 165 | #define PACKAGE_STRING "" 166 | 167 | /* Define to the one symbol short name of this package. */ 168 | #define PACKAGE_TARNAME "" 169 | 170 | /* Define to the home page for this package. */ 171 | #define PACKAGE_URL "" 172 | 173 | /* Define to the version of this package. */ 174 | #define PACKAGE_VERSION "" 175 | 176 | /* Define to 1 if you have the ANSI C header files. */ 177 | #define STDC_HEADERS 1 178 | 179 | /* Enable extensions on AIX 3, Interix. */ 180 | #ifndef _ALL_SOURCE 181 | # define _ALL_SOURCE 1 182 | #endif 183 | /* Enable GNU extensions on systems that have them. */ 184 | #ifndef _GNU_SOURCE 185 | # define _GNU_SOURCE 1 186 | #endif 187 | /* Enable threading extensions on Solaris. */ 188 | #ifndef _POSIX_PTHREAD_SEMANTICS 189 | # define _POSIX_PTHREAD_SEMANTICS 1 190 | #endif 191 | /* Enable extensions on HP NonStop. */ 192 | #ifndef _TANDEM_SOURCE 193 | # define _TANDEM_SOURCE 1 194 | #endif 195 | /* Enable general extensions on Solaris. */ 196 | #ifndef __EXTENSIONS__ 197 | # define __EXTENSIONS__ 1 198 | #endif 199 | 200 | 201 | /* Version number of package */ 202 | #define VERSION "1.1.28" 203 | 204 | /* Define if debugging support is enabled */ 205 | #define WITH_DEBUGGER /**/ 206 | 207 | /* Define to 1 if on MINIX. */ 208 | /* #undef _MINIX */ 209 | 210 | /* Define to 2 if the system does not provide POSIX.1 features except with 211 | this defined. */ 212 | /* #undef _POSIX_1_SOURCE */ 213 | 214 | /* Define to 1 if you need to in order for `stat' and other things to work. */ 215 | /* #undef _POSIX_SOURCE */ 216 | 217 | /* Using the Win32 Socket implementation */ 218 | /* #undef _WINSOCKAPI_ */ 219 | 220 | /* Win32 Std C name mangling work-around */ 221 | /* #undef snprintf */ 222 | 223 | /* Win32 Std C name mangling work-around */ 224 | /* #undef vsnprintf */ 225 | -------------------------------------------------------------------------------- /deps/libxslt.config/solaris/ia32/libexslt/exsltconfig.h: -------------------------------------------------------------------------------- 1 | /* 2 | * exsltconfig.h: compile-time version informations for the EXSLT library 3 | * 4 | * See Copyright for the status of this software. 5 | * 6 | * daniel@veillard.com 7 | */ 8 | 9 | #ifndef __XML_EXSLTCONFIG_H__ 10 | #define __XML_EXSLTCONFIG_H__ 11 | 12 | #ifdef __cplusplus 13 | extern "C" { 14 | #endif 15 | 16 | /** 17 | * LIBEXSLT_DOTTED_VERSION: 18 | * 19 | * the version string like "1.2.3" 20 | */ 21 | #define LIBEXSLT_DOTTED_VERSION "1.1.28" 22 | 23 | /** 24 | * LIBEXSLT_VERSION: 25 | * 26 | * the version number: 1.2.3 value is 10203 27 | */ 28 | #define LIBEXSLT_VERSION 817 29 | 30 | /** 31 | * LIBEXSLT_VERSION_STRING: 32 | * 33 | * the version number string, 1.2.3 value is "10203" 34 | */ 35 | #define LIBEXSLT_VERSION_STRING "817" 36 | 37 | /** 38 | * LIBEXSLT_VERSION_EXTRA: 39 | * 40 | * extra version information, used to show a CVS compilation 41 | */ 42 | #define LIBEXSLT_VERSION_EXTRA "" 43 | 44 | /** 45 | * WITH_CRYPTO: 46 | * 47 | * Whether crypto support is configured into exslt 48 | */ 49 | #if 0 50 | #define EXSLT_CRYPTO_ENABLED 51 | #endif 52 | 53 | /** 54 | * ATTRIBUTE_UNUSED: 55 | * 56 | * This macro is used to flag unused function parameters to GCC 57 | */ 58 | #ifdef __GNUC__ 59 | #ifdef HAVE_ANSIDECL_H 60 | #include 61 | #endif 62 | #ifndef ATTRIBUTE_UNUSED 63 | #define ATTRIBUTE_UNUSED __attribute__((unused)) 64 | #endif 65 | #else 66 | #define ATTRIBUTE_UNUSED 67 | #endif 68 | 69 | #ifdef __cplusplus 70 | } 71 | #endif 72 | 73 | #endif /* __XML_EXSLTCONFIG_H__ */ 74 | -------------------------------------------------------------------------------- /deps/libxslt.config/solaris/ia32/libxslt/xsltconfig.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Summary: compile-time version informations for the XSLT engine 3 | * Description: compile-time version informations for the XSLT engine 4 | * this module is autogenerated. 5 | * 6 | * Copy: See Copyright for the status of this software. 7 | * 8 | * Author: Daniel Veillard 9 | */ 10 | 11 | #ifndef __XML_XSLTCONFIG_H__ 12 | #define __XML_XSLTCONFIG_H__ 13 | 14 | #ifdef __cplusplus 15 | extern "C" { 16 | #endif 17 | 18 | /** 19 | * LIBXSLT_DOTTED_VERSION: 20 | * 21 | * the version string like "1.2.3" 22 | */ 23 | #define LIBXSLT_DOTTED_VERSION "1.1.28" 24 | 25 | /** 26 | * LIBXSLT_VERSION: 27 | * 28 | * the version number: 1.2.3 value is 10203 29 | */ 30 | #define LIBXSLT_VERSION 10128 31 | 32 | /** 33 | * LIBXSLT_VERSION_STRING: 34 | * 35 | * the version number string, 1.2.3 value is "10203" 36 | */ 37 | #define LIBXSLT_VERSION_STRING "10128" 38 | 39 | /** 40 | * LIBXSLT_VERSION_EXTRA: 41 | * 42 | * extra version information, used to show a CVS compilation 43 | */ 44 | #define LIBXSLT_VERSION_EXTRA "" 45 | 46 | /** 47 | * WITH_XSLT_DEBUG: 48 | * 49 | * Activate the compilation of the debug reporting. Speed penalty 50 | * is insignifiant and being able to run xsltpoc -v is useful. On 51 | * by default unless --without-debug is passed to configure 52 | */ 53 | #if 1 54 | #define WITH_XSLT_DEBUG 55 | #endif 56 | 57 | #if 0 58 | /** 59 | * DEBUG_MEMORY: 60 | * 61 | * should be activated only when debugging libxslt. It replaces the 62 | * allocator with a collect and debug shell to the libc allocator. 63 | * Use configure --with-mem-debug to activate it on both library 64 | */ 65 | #define DEBUG_MEMORY 66 | 67 | /** 68 | * DEBUG_MEMORY_LOCATION: 69 | * 70 | * should be activated only when debugging libxslt. 71 | * DEBUG_MEMORY_LOCATION should be activated only when libxml has 72 | * been configured with --with-debug-mem too 73 | */ 74 | #define DEBUG_MEMORY_LOCATION 75 | #endif 76 | 77 | /** 78 | * XSLT_NEED_TRIO: 79 | * 80 | * should be activated if the existing libc library lacks some of the 81 | * string formatting function, in that case reuse the Trio ones already 82 | * compiled in the libxml2 library. 83 | */ 84 | 85 | #if 0 86 | #define XSLT_NEED_TRIO 87 | #endif 88 | #ifdef __VMS 89 | #define HAVE_MATH_H 1 90 | #define HAVE_SYS_STAT_H 1 91 | #ifndef XSLT_NEED_TRIO 92 | #define XSLT_NEED_TRIO 93 | #endif 94 | #endif 95 | 96 | #ifdef XSLT_NEED_TRIO 97 | #define TRIO_REPLACE_STDIO 98 | #endif 99 | 100 | /** 101 | * WITH_XSLT_DEBUGGER: 102 | * 103 | * Activate the compilation of the debugger support. Speed penalty 104 | * is insignifiant. 105 | * On by default unless --without-debugger is passed to configure 106 | */ 107 | #if 1 108 | #ifndef WITH_DEBUGGER 109 | #define WITH_DEBUGGER 110 | #endif 111 | #endif 112 | 113 | /** 114 | * WITH_MODULES: 115 | * 116 | * Whether module support is configured into libxslt 117 | * Note: no default module path for win32 platforms 118 | */ 119 | #if 1 120 | #ifndef WITH_MODULES 121 | #define WITH_MODULES 122 | #endif 123 | #define LIBXSLT_DEFAULT_PLUGINS_PATH() "/usr/local/lib/libxslt-plugins" 124 | #endif 125 | 126 | /** 127 | * Locale support 128 | */ 129 | #if 0 130 | #ifndef XSLT_LOCALE_XLOCALE 131 | #define XSLT_LOCALE_XLOCALE 132 | #endif 133 | #elif 0 134 | #ifndef XSLT_LOCALE_WINAPI 135 | #define XSLT_LOCALE_WINAPI 136 | #endif 137 | #endif 138 | 139 | /** 140 | * ATTRIBUTE_UNUSED: 141 | * 142 | * This macro is used to flag unused function parameters to GCC 143 | */ 144 | #ifdef __GNUC__ 145 | #ifdef HAVE_ANSIDECL_H 146 | #include 147 | #endif 148 | #ifndef ATTRIBUTE_UNUSED 149 | #define ATTRIBUTE_UNUSED __attribute__((unused)) 150 | #endif 151 | #else 152 | #define ATTRIBUTE_UNUSED 153 | #endif 154 | 155 | /** 156 | * LIBXSLT_PUBLIC: 157 | * 158 | * This macro is used to declare PUBLIC variables for Cygwin and for MSC on Windows 159 | */ 160 | #if !defined LIBXSLT_PUBLIC 161 | #if (defined(__CYGWIN__) || defined _MSC_VER) && !defined IN_LIBXSLT && !defined LIBXSLT_STATIC 162 | #define LIBXSLT_PUBLIC __declspec(dllimport) 163 | #else 164 | #define LIBXSLT_PUBLIC 165 | #endif 166 | #endif 167 | 168 | #ifdef __cplusplus 169 | } 170 | #endif 171 | 172 | #endif /* __XML_XSLTCONFIG_H__ */ 173 | -------------------------------------------------------------------------------- /deps/libxslt.config/solaris/x64/config.h: -------------------------------------------------------------------------------- 1 | /* config.h. Generated from config.h.in by configure. */ 2 | /* config.h.in. Generated from configure.in by autoheader. */ 3 | 4 | /* Define to 1 if you have the header file. */ 5 | /* #undef HAVE_ANSIDECL_H */ 6 | 7 | /* Define to 1 if you have the `asctime' function. */ 8 | #define HAVE_ASCTIME 1 9 | 10 | /* Define to 1 if you have the `clock_gettime' function. */ 11 | #define HAVE_CLOCK_GETTIME 1 12 | 13 | /* Define to 1 if you have the header file. */ 14 | #define HAVE_DLFCN_H 1 15 | 16 | /* Define if fabs is there */ 17 | #define HAVE_FABS /**/ 18 | 19 | /* Define to 1 if you have the header file. */ 20 | #define HAVE_FLOAT_H 1 21 | 22 | /* Define if floor is there */ 23 | #define HAVE_FLOOR /**/ 24 | 25 | /* Define to 1 if you have the `fprintf' function. */ 26 | #define HAVE_FPRINTF 1 27 | 28 | /* Define to 1 if you have the header file. */ 29 | /* #undef HAVE_FP_CLASS_H */ 30 | 31 | /* Define to 1 if you have the `ftime' function. */ 32 | #define HAVE_FTIME 1 33 | 34 | /* Define if gcrypt library is available. */ 35 | /* #undef HAVE_GCRYPT */ 36 | 37 | /* Define to 1 if you have the `gettimeofday' function. */ 38 | #define HAVE_GETTIMEOFDAY 1 39 | 40 | /* Define to 1 if you have the `gmtime' function. */ 41 | #define HAVE_GMTIME 1 42 | 43 | /* Define to 1 if you have the `gmtime_r' function. */ 44 | #define HAVE_GMTIME_R 1 45 | 46 | /* Define to 1 if you have the header file. */ 47 | /* #undef HAVE_IEEEFP_H */ 48 | 49 | /* Define to 1 if you have the header file. */ 50 | #define HAVE_INTTYPES_H 1 51 | 52 | /* Define if pthread library is there (-lpthread) */ 53 | #define HAVE_LIBPTHREAD /**/ 54 | 55 | /* Define to 1 if you have the header file. */ 56 | #define HAVE_LOCALE_H 1 57 | 58 | /* Define to 1 if you have the `localtime' function. */ 59 | #define HAVE_LOCALTIME 1 60 | 61 | /* Define to 1 if you have the `localtime_r' function. */ 62 | #define HAVE_LOCALTIME_R 1 63 | 64 | /* Define to 1 if you have the header file. */ 65 | #define HAVE_MATH_H 1 66 | 67 | /* Define to 1 if you have the header file. */ 68 | #define HAVE_MEMORY_H 1 69 | 70 | /* Define to 1 if you have the `mktime' function. */ 71 | #define HAVE_MKTIME 1 72 | 73 | /* Define to 1 if you have the header file. */ 74 | /* #undef HAVE_NAN_H */ 75 | 76 | /* Define if pow is there */ 77 | #define HAVE_POW /**/ 78 | 79 | /* Define to 1 if you have the `printf' function. */ 80 | #define HAVE_PRINTF 1 81 | 82 | /* Define if is there */ 83 | #define HAVE_PTHREAD_H /**/ 84 | 85 | /* Define to 1 if you have the `snprintf' function. */ 86 | #define HAVE_SNPRINTF 1 87 | 88 | /* Define to 1 if you have the `sprintf' function. */ 89 | #define HAVE_SPRINTF 1 90 | 91 | /* Define to 1 if you have the `sscanf' function. */ 92 | #define HAVE_SSCANF 1 93 | 94 | /* Define to 1 if you have the `stat' function. */ 95 | #define HAVE_STAT 1 96 | 97 | /* Define to 1 if you have the header file. */ 98 | #define HAVE_STDARG_H 1 99 | 100 | /* Define to 1 if you have the header file. */ 101 | #define HAVE_STDINT_H 1 102 | 103 | /* Define to 1 if you have the header file. */ 104 | #define HAVE_STDLIB_H 1 105 | 106 | /* Define to 1 if you have the header file. */ 107 | #define HAVE_STRINGS_H 1 108 | 109 | /* Define to 1 if you have the header file. */ 110 | #define HAVE_STRING_H 1 111 | 112 | /* Define to 1 if you have the header file. */ 113 | #define HAVE_SYS_SELECT_H 1 114 | 115 | /* Define to 1 if you have the header file. */ 116 | #define HAVE_SYS_STAT_H 1 117 | 118 | /* Define to 1 if you have the header file. */ 119 | #define HAVE_SYS_TIMEB_H 1 120 | 121 | /* Define to 1 if you have the header file. */ 122 | #define HAVE_SYS_TIME_H 1 123 | 124 | /* Define to 1 if you have the header file. */ 125 | #define HAVE_SYS_TYPES_H 1 126 | 127 | /* Define to 1 if you have the `time' function. */ 128 | #define HAVE_TIME 1 129 | 130 | /* Define to 1 if you have the header file. */ 131 | #define HAVE_TIME_H 1 132 | 133 | /* Define to 1 if you have the header file. */ 134 | #define HAVE_UNISTD_H 1 135 | 136 | /* Define to 1 if you have the `vfprintf' function. */ 137 | #define HAVE_VFPRINTF 1 138 | 139 | /* Define to 1 if you have the `vsnprintf' function. */ 140 | #define HAVE_VSNPRINTF 1 141 | 142 | /* Define to 1 if you have the `vsprintf' function. */ 143 | #define HAVE_VSPRINTF 1 144 | 145 | /* Define to 1 if you have the header file. */ 146 | #define HAVE_XLOCALE_H 1 147 | 148 | /* Define to 1 if you have the `_stat' function. */ 149 | /* #undef HAVE__STAT */ 150 | 151 | /* Define to the sub-directory in which libtool stores uninstalled libraries. 152 | */ 153 | #define LT_OBJDIR ".libs/" 154 | 155 | /* Name of package */ 156 | #define PACKAGE "libxslt" 157 | 158 | /* Define to the address where bug reports for this package should be sent. */ 159 | #define PACKAGE_BUGREPORT "" 160 | 161 | /* Define to the full name of this package. */ 162 | #define PACKAGE_NAME "" 163 | 164 | /* Define to the full name and version of this package. */ 165 | #define PACKAGE_STRING "" 166 | 167 | /* Define to the one symbol short name of this package. */ 168 | #define PACKAGE_TARNAME "" 169 | 170 | /* Define to the home page for this package. */ 171 | #define PACKAGE_URL "" 172 | 173 | /* Define to the version of this package. */ 174 | #define PACKAGE_VERSION "" 175 | 176 | /* Define to 1 if you have the ANSI C header files. */ 177 | #define STDC_HEADERS 1 178 | 179 | /* Enable extensions on AIX 3, Interix. */ 180 | #ifndef _ALL_SOURCE 181 | # define _ALL_SOURCE 1 182 | #endif 183 | /* Enable GNU extensions on systems that have them. */ 184 | #ifndef _GNU_SOURCE 185 | # define _GNU_SOURCE 1 186 | #endif 187 | /* Enable threading extensions on Solaris. */ 188 | #ifndef _POSIX_PTHREAD_SEMANTICS 189 | # define _POSIX_PTHREAD_SEMANTICS 1 190 | #endif 191 | /* Enable extensions on HP NonStop. */ 192 | #ifndef _TANDEM_SOURCE 193 | # define _TANDEM_SOURCE 1 194 | #endif 195 | /* Enable general extensions on Solaris. */ 196 | #ifndef __EXTENSIONS__ 197 | # define __EXTENSIONS__ 1 198 | #endif 199 | 200 | 201 | /* Version number of package */ 202 | #define VERSION "1.1.28" 203 | 204 | /* Define if debugging support is enabled */ 205 | #define WITH_DEBUGGER /**/ 206 | 207 | /* Define to 1 if on MINIX. */ 208 | /* #undef _MINIX */ 209 | 210 | /* Define to 2 if the system does not provide POSIX.1 features except with 211 | this defined. */ 212 | /* #undef _POSIX_1_SOURCE */ 213 | 214 | /* Define to 1 if you need to in order for `stat' and other things to work. */ 215 | /* #undef _POSIX_SOURCE */ 216 | 217 | /* Using the Win32 Socket implementation */ 218 | /* #undef _WINSOCKAPI_ */ 219 | 220 | /* Win32 Std C name mangling work-around */ 221 | /* #undef snprintf */ 222 | 223 | /* Win32 Std C name mangling work-around */ 224 | /* #undef vsnprintf */ 225 | -------------------------------------------------------------------------------- /deps/libxslt.config/solaris/x64/libexslt/exsltconfig.h: -------------------------------------------------------------------------------- 1 | /* 2 | * exsltconfig.h: compile-time version informations for the EXSLT library 3 | * 4 | * See Copyright for the status of this software. 5 | * 6 | * daniel@veillard.com 7 | */ 8 | 9 | #ifndef __XML_EXSLTCONFIG_H__ 10 | #define __XML_EXSLTCONFIG_H__ 11 | 12 | #ifdef __cplusplus 13 | extern "C" { 14 | #endif 15 | 16 | /** 17 | * LIBEXSLT_DOTTED_VERSION: 18 | * 19 | * the version string like "1.2.3" 20 | */ 21 | #define LIBEXSLT_DOTTED_VERSION "1.1.28" 22 | 23 | /** 24 | * LIBEXSLT_VERSION: 25 | * 26 | * the version number: 1.2.3 value is 10203 27 | */ 28 | #define LIBEXSLT_VERSION 817 29 | 30 | /** 31 | * LIBEXSLT_VERSION_STRING: 32 | * 33 | * the version number string, 1.2.3 value is "10203" 34 | */ 35 | #define LIBEXSLT_VERSION_STRING "817" 36 | 37 | /** 38 | * LIBEXSLT_VERSION_EXTRA: 39 | * 40 | * extra version information, used to show a CVS compilation 41 | */ 42 | #define LIBEXSLT_VERSION_EXTRA "" 43 | 44 | /** 45 | * WITH_CRYPTO: 46 | * 47 | * Whether crypto support is configured into exslt 48 | */ 49 | #if 0 50 | #define EXSLT_CRYPTO_ENABLED 51 | #endif 52 | 53 | /** 54 | * ATTRIBUTE_UNUSED: 55 | * 56 | * This macro is used to flag unused function parameters to GCC 57 | */ 58 | #ifdef __GNUC__ 59 | #ifdef HAVE_ANSIDECL_H 60 | #include 61 | #endif 62 | #ifndef ATTRIBUTE_UNUSED 63 | #define ATTRIBUTE_UNUSED __attribute__((unused)) 64 | #endif 65 | #else 66 | #define ATTRIBUTE_UNUSED 67 | #endif 68 | 69 | #ifdef __cplusplus 70 | } 71 | #endif 72 | 73 | #endif /* __XML_EXSLTCONFIG_H__ */ 74 | -------------------------------------------------------------------------------- /deps/libxslt.config/solaris/x64/libxslt/xsltconfig.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Summary: compile-time version informations for the XSLT engine 3 | * Description: compile-time version informations for the XSLT engine 4 | * this module is autogenerated. 5 | * 6 | * Copy: See Copyright for the status of this software. 7 | * 8 | * Author: Daniel Veillard 9 | */ 10 | 11 | #ifndef __XML_XSLTCONFIG_H__ 12 | #define __XML_XSLTCONFIG_H__ 13 | 14 | #ifdef __cplusplus 15 | extern "C" { 16 | #endif 17 | 18 | /** 19 | * LIBXSLT_DOTTED_VERSION: 20 | * 21 | * the version string like "1.2.3" 22 | */ 23 | #define LIBXSLT_DOTTED_VERSION "1.1.28" 24 | 25 | /** 26 | * LIBXSLT_VERSION: 27 | * 28 | * the version number: 1.2.3 value is 10203 29 | */ 30 | #define LIBXSLT_VERSION 10128 31 | 32 | /** 33 | * LIBXSLT_VERSION_STRING: 34 | * 35 | * the version number string, 1.2.3 value is "10203" 36 | */ 37 | #define LIBXSLT_VERSION_STRING "10128" 38 | 39 | /** 40 | * LIBXSLT_VERSION_EXTRA: 41 | * 42 | * extra version information, used to show a CVS compilation 43 | */ 44 | #define LIBXSLT_VERSION_EXTRA "" 45 | 46 | /** 47 | * WITH_XSLT_DEBUG: 48 | * 49 | * Activate the compilation of the debug reporting. Speed penalty 50 | * is insignifiant and being able to run xsltpoc -v is useful. On 51 | * by default unless --without-debug is passed to configure 52 | */ 53 | #if 1 54 | #define WITH_XSLT_DEBUG 55 | #endif 56 | 57 | #if 0 58 | /** 59 | * DEBUG_MEMORY: 60 | * 61 | * should be activated only when debugging libxslt. It replaces the 62 | * allocator with a collect and debug shell to the libc allocator. 63 | * Use configure --with-mem-debug to activate it on both library 64 | */ 65 | #define DEBUG_MEMORY 66 | 67 | /** 68 | * DEBUG_MEMORY_LOCATION: 69 | * 70 | * should be activated only when debugging libxslt. 71 | * DEBUG_MEMORY_LOCATION should be activated only when libxml has 72 | * been configured with --with-debug-mem too 73 | */ 74 | #define DEBUG_MEMORY_LOCATION 75 | #endif 76 | 77 | /** 78 | * XSLT_NEED_TRIO: 79 | * 80 | * should be activated if the existing libc library lacks some of the 81 | * string formatting function, in that case reuse the Trio ones already 82 | * compiled in the libxml2 library. 83 | */ 84 | 85 | #if 0 86 | #define XSLT_NEED_TRIO 87 | #endif 88 | #ifdef __VMS 89 | #define HAVE_MATH_H 1 90 | #define HAVE_SYS_STAT_H 1 91 | #ifndef XSLT_NEED_TRIO 92 | #define XSLT_NEED_TRIO 93 | #endif 94 | #endif 95 | 96 | #ifdef XSLT_NEED_TRIO 97 | #define TRIO_REPLACE_STDIO 98 | #endif 99 | 100 | /** 101 | * WITH_XSLT_DEBUGGER: 102 | * 103 | * Activate the compilation of the debugger support. Speed penalty 104 | * is insignifiant. 105 | * On by default unless --without-debugger is passed to configure 106 | */ 107 | #if 1 108 | #ifndef WITH_DEBUGGER 109 | #define WITH_DEBUGGER 110 | #endif 111 | #endif 112 | 113 | /** 114 | * WITH_MODULES: 115 | * 116 | * Whether module support is configured into libxslt 117 | * Note: no default module path for win32 platforms 118 | */ 119 | #if 1 120 | #ifndef WITH_MODULES 121 | #define WITH_MODULES 122 | #endif 123 | #define LIBXSLT_DEFAULT_PLUGINS_PATH() "/usr/local/lib/libxslt-plugins" 124 | #endif 125 | 126 | /** 127 | * Locale support 128 | */ 129 | #if 0 130 | #ifndef XSLT_LOCALE_XLOCALE 131 | #define XSLT_LOCALE_XLOCALE 132 | #endif 133 | #elif 0 134 | #ifndef XSLT_LOCALE_WINAPI 135 | #define XSLT_LOCALE_WINAPI 136 | #endif 137 | #endif 138 | 139 | /** 140 | * ATTRIBUTE_UNUSED: 141 | * 142 | * This macro is used to flag unused function parameters to GCC 143 | */ 144 | #ifdef __GNUC__ 145 | #ifdef HAVE_ANSIDECL_H 146 | #include 147 | #endif 148 | #ifndef ATTRIBUTE_UNUSED 149 | #define ATTRIBUTE_UNUSED __attribute__((unused)) 150 | #endif 151 | #else 152 | #define ATTRIBUTE_UNUSED 153 | #endif 154 | 155 | /** 156 | * LIBXSLT_PUBLIC: 157 | * 158 | * This macro is used to declare PUBLIC variables for Cygwin and for MSC on Windows 159 | */ 160 | #if !defined LIBXSLT_PUBLIC 161 | #if (defined(__CYGWIN__) || defined _MSC_VER) && !defined IN_LIBXSLT && !defined LIBXSLT_STATIC 162 | #define LIBXSLT_PUBLIC __declspec(dllimport) 163 | #else 164 | #define LIBXSLT_PUBLIC 165 | #endif 166 | #endif 167 | 168 | #ifdef __cplusplus 169 | } 170 | #endif 171 | 172 | #endif /* __XML_XSLTCONFIG_H__ */ 173 | -------------------------------------------------------------------------------- /deps/libxslt.config/win/ia32/config.h: -------------------------------------------------------------------------------- 1 | /* config.h. Generated from config.h.in by configure. */ 2 | /* config.h.in. Generated from configure.in by autoheader. */ 3 | 4 | /* Define to 1 if you have the header file. */ 5 | /* #undef HAVE_ANSIDECL_H */ 6 | 7 | /* Define to 1 if you have the `asctime' function. */ 8 | #define HAVE_ASCTIME 1 9 | 10 | /* Define to 1 if you have the `clock_gettime' function. */ 11 | #define HAVE_CLOCK_GETTIME 1 12 | 13 | /* Define to 1 if you have the header file. */ 14 | #define HAVE_DLFCN_H 1 15 | 16 | /* Define if fabs is there */ 17 | #define HAVE_FABS /**/ 18 | 19 | /* Define to 1 if you have the header file. */ 20 | #define HAVE_FLOAT_H 1 21 | 22 | /* Define if floor is there */ 23 | #define HAVE_FLOOR /**/ 24 | 25 | /* Define to 1 if you have the `fprintf' function. */ 26 | #define HAVE_FPRINTF 1 27 | 28 | /* Define to 1 if you have the header file. */ 29 | /* #undef HAVE_FP_CLASS_H */ 30 | 31 | /* Define to 1 if you have the `ftime' function. */ 32 | #define HAVE_FTIME 1 33 | 34 | /* Define if gcrypt library is available. */ 35 | /* #undef HAVE_GCRYPT */ 36 | 37 | /* Define to 1 if you have the `gettimeofday' function. */ 38 | #define HAVE_GETTIMEOFDAY 1 39 | 40 | /* Define to 1 if you have the `gmtime' function. */ 41 | #define HAVE_GMTIME 1 42 | 43 | /* Define to 1 if you have the `gmtime_r' function. */ 44 | #define HAVE_GMTIME_R 1 45 | 46 | /* Define to 1 if you have the header file. */ 47 | /* #undef HAVE_IEEEFP_H */ 48 | 49 | /* Define to 1 if you have the header file. */ 50 | #define HAVE_INTTYPES_H 1 51 | 52 | /* Define if pthread library is there (-lpthread) */ 53 | #define HAVE_LIBPTHREAD /**/ 54 | 55 | /* Define to 1 if you have the header file. */ 56 | #define HAVE_LOCALE_H 1 57 | 58 | /* Define to 1 if you have the `localtime' function. */ 59 | #define HAVE_LOCALTIME 1 60 | 61 | /* Define to 1 if you have the `localtime_r' function. */ 62 | #define HAVE_LOCALTIME_R 1 63 | 64 | /* Define to 1 if you have the header file. */ 65 | #define HAVE_MATH_H 1 66 | 67 | /* Define to 1 if you have the header file. */ 68 | #define HAVE_MEMORY_H 1 69 | 70 | /* Define to 1 if you have the `mktime' function. */ 71 | #define HAVE_MKTIME 1 72 | 73 | /* Define to 1 if you have the header file. */ 74 | /* #undef HAVE_NAN_H */ 75 | 76 | /* Define if pow is there */ 77 | #define HAVE_POW /**/ 78 | 79 | /* Define to 1 if you have the `printf' function. */ 80 | #define HAVE_PRINTF 1 81 | 82 | /* Define if is there */ 83 | #define HAVE_PTHREAD_H /**/ 84 | 85 | /* Define to 1 if you have the `snprintf' function. */ 86 | #define HAVE_SNPRINTF 1 87 | 88 | /* Define to 1 if you have the `sprintf' function. */ 89 | #define HAVE_SPRINTF 1 90 | 91 | /* Define to 1 if you have the `sscanf' function. */ 92 | #define HAVE_SSCANF 1 93 | 94 | /* Define to 1 if you have the `stat' function. */ 95 | #define HAVE_STAT 1 96 | 97 | /* Define to 1 if you have the header file. */ 98 | #define HAVE_STDARG_H 1 99 | 100 | /* Define to 1 if you have the header file. */ 101 | #define HAVE_STDINT_H 1 102 | 103 | /* Define to 1 if you have the header file. */ 104 | #define HAVE_STDLIB_H 1 105 | 106 | /* Define to 1 if you have the header file. */ 107 | #define HAVE_STRINGS_H 1 108 | 109 | /* Define to 1 if you have the header file. */ 110 | #define HAVE_STRING_H 1 111 | 112 | /* Define to 1 if you have the header file. */ 113 | #define HAVE_SYS_SELECT_H 1 114 | 115 | /* Define to 1 if you have the header file. */ 116 | #define HAVE_SYS_STAT_H 1 117 | 118 | /* Define to 1 if you have the header file. */ 119 | #define HAVE_SYS_TIMEB_H 1 120 | 121 | /* Define to 1 if you have the header file. */ 122 | #define HAVE_SYS_TIME_H 1 123 | 124 | /* Define to 1 if you have the header file. */ 125 | #define HAVE_SYS_TYPES_H 1 126 | 127 | /* Define to 1 if you have the `time' function. */ 128 | #define HAVE_TIME 1 129 | 130 | /* Define to 1 if you have the header file. */ 131 | #define HAVE_TIME_H 1 132 | 133 | /* Define to 1 if you have the header file. */ 134 | #define HAVE_UNISTD_H 1 135 | 136 | /* Define to 1 if you have the `vfprintf' function. */ 137 | #define HAVE_VFPRINTF 1 138 | 139 | /* Define to 1 if you have the `vsnprintf' function. */ 140 | #define HAVE_VSNPRINTF 1 141 | 142 | /* Define to 1 if you have the `vsprintf' function. */ 143 | #define HAVE_VSPRINTF 1 144 | 145 | /* Define to 1 if you have the header file. */ 146 | #define HAVE_XLOCALE_H 1 147 | 148 | /* Define to 1 if you have the `_stat' function. */ 149 | /* #undef HAVE__STAT */ 150 | 151 | /* Define to the sub-directory in which libtool stores uninstalled libraries. 152 | */ 153 | #define LT_OBJDIR ".libs/" 154 | 155 | /* Name of package */ 156 | #define PACKAGE "libxslt" 157 | 158 | /* Define to the address where bug reports for this package should be sent. */ 159 | #define PACKAGE_BUGREPORT "" 160 | 161 | /* Define to the full name of this package. */ 162 | #define PACKAGE_NAME "" 163 | 164 | /* Define to the full name and version of this package. */ 165 | #define PACKAGE_STRING "" 166 | 167 | /* Define to the one symbol short name of this package. */ 168 | #define PACKAGE_TARNAME "" 169 | 170 | /* Define to the home page for this package. */ 171 | #define PACKAGE_URL "" 172 | 173 | /* Define to the version of this package. */ 174 | #define PACKAGE_VERSION "" 175 | 176 | /* Define to 1 if you have the ANSI C header files. */ 177 | #define STDC_HEADERS 1 178 | 179 | /* Enable extensions on AIX 3, Interix. */ 180 | #ifndef _ALL_SOURCE 181 | # define _ALL_SOURCE 1 182 | #endif 183 | /* Enable GNU extensions on systems that have them. */ 184 | #ifndef _GNU_SOURCE 185 | # define _GNU_SOURCE 1 186 | #endif 187 | /* Enable threading extensions on Solaris. */ 188 | #ifndef _POSIX_PTHREAD_SEMANTICS 189 | # define _POSIX_PTHREAD_SEMANTICS 1 190 | #endif 191 | /* Enable extensions on HP NonStop. */ 192 | #ifndef _TANDEM_SOURCE 193 | # define _TANDEM_SOURCE 1 194 | #endif 195 | /* Enable general extensions on Solaris. */ 196 | #ifndef __EXTENSIONS__ 197 | # define __EXTENSIONS__ 1 198 | #endif 199 | 200 | 201 | /* Version number of package */ 202 | #define VERSION "1.1.28" 203 | 204 | /* Define if debugging support is enabled */ 205 | #define WITH_DEBUGGER /**/ 206 | 207 | /* Define to 1 if on MINIX. */ 208 | /* #undef _MINIX */ 209 | 210 | /* Define to 2 if the system does not provide POSIX.1 features except with 211 | this defined. */ 212 | /* #undef _POSIX_1_SOURCE */ 213 | 214 | /* Define to 1 if you need to in order for `stat' and other things to work. */ 215 | /* #undef _POSIX_SOURCE */ 216 | 217 | /* Using the Win32 Socket implementation */ 218 | /* #undef _WINSOCKAPI_ */ 219 | 220 | /* Win32 Std C name mangling work-around */ 221 | /* #undef snprintf */ 222 | 223 | /* Win32 Std C name mangling work-around */ 224 | /* #undef vsnprintf */ 225 | -------------------------------------------------------------------------------- /deps/libxslt.config/win/ia32/libexslt/exsltconfig.h: -------------------------------------------------------------------------------- 1 | /* 2 | * exsltconfig.h: compile-time version informations for the EXSLT library 3 | * 4 | * See Copyright for the status of this software. 5 | * 6 | * daniel@veillard.com 7 | */ 8 | 9 | #ifndef __XML_EXSLTCONFIG_H__ 10 | #define __XML_EXSLTCONFIG_H__ 11 | 12 | #ifdef __cplusplus 13 | extern "C" { 14 | #endif 15 | 16 | /** 17 | * LIBEXSLT_DOTTED_VERSION: 18 | * 19 | * the version string like "1.2.3" 20 | */ 21 | #define LIBEXSLT_DOTTED_VERSION "1.1.28" 22 | 23 | /** 24 | * LIBEXSLT_VERSION: 25 | * 26 | * the version number: 1.2.3 value is 10203 27 | */ 28 | #define LIBEXSLT_VERSION 817 29 | 30 | /** 31 | * LIBEXSLT_VERSION_STRING: 32 | * 33 | * the version number string, 1.2.3 value is "10203" 34 | */ 35 | #define LIBEXSLT_VERSION_STRING "817" 36 | 37 | /** 38 | * LIBEXSLT_VERSION_EXTRA: 39 | * 40 | * extra version information, used to show a CVS compilation 41 | */ 42 | #define LIBEXSLT_VERSION_EXTRA "" 43 | 44 | /** 45 | * WITH_CRYPTO: 46 | * 47 | * Whether crypto support is configured into exslt 48 | */ 49 | #if 0 50 | #define EXSLT_CRYPTO_ENABLED 51 | #endif 52 | 53 | /** 54 | * ATTRIBUTE_UNUSED: 55 | * 56 | * This macro is used to flag unused function parameters to GCC 57 | */ 58 | #ifdef __GNUC__ 59 | #ifdef HAVE_ANSIDECL_H 60 | #include 61 | #endif 62 | #ifndef ATTRIBUTE_UNUSED 63 | #define ATTRIBUTE_UNUSED __attribute__((unused)) 64 | #endif 65 | #else 66 | #define ATTRIBUTE_UNUSED 67 | #endif 68 | 69 | #ifdef __cplusplus 70 | } 71 | #endif 72 | 73 | #endif /* __XML_EXSLTCONFIG_H__ */ 74 | -------------------------------------------------------------------------------- /deps/libxslt.config/win/ia32/libxslt/xsltconfig.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Summary: compile-time version informations for the XSLT engine 3 | * Description: compile-time version informations for the XSLT engine 4 | * this module is autogenerated. 5 | * 6 | * Copy: See Copyright for the status of this software. 7 | * 8 | * Author: Daniel Veillard 9 | */ 10 | 11 | #ifndef __XML_XSLTCONFIG_H__ 12 | #define __XML_XSLTCONFIG_H__ 13 | 14 | #ifdef __cplusplus 15 | extern "C" { 16 | #endif 17 | 18 | /** 19 | * LIBXSLT_DOTTED_VERSION: 20 | * 21 | * the version string like "1.2.3" 22 | */ 23 | #define LIBXSLT_DOTTED_VERSION "1.1.28" 24 | 25 | /** 26 | * LIBXSLT_VERSION: 27 | * 28 | * the version number: 1.2.3 value is 10203 29 | */ 30 | #define LIBXSLT_VERSION 10128 31 | 32 | /** 33 | * LIBXSLT_VERSION_STRING: 34 | * 35 | * the version number string, 1.2.3 value is "10203" 36 | */ 37 | #define LIBXSLT_VERSION_STRING "10128" 38 | 39 | /** 40 | * LIBXSLT_VERSION_EXTRA: 41 | * 42 | * extra version information, used to show a CVS compilation 43 | */ 44 | #define LIBXSLT_VERSION_EXTRA "" 45 | 46 | /** 47 | * WITH_XSLT_DEBUG: 48 | * 49 | * Activate the compilation of the debug reporting. Speed penalty 50 | * is insignifiant and being able to run xsltpoc -v is useful. On 51 | * by default unless --without-debug is passed to configure 52 | */ 53 | #if 1 54 | #define WITH_XSLT_DEBUG 55 | #endif 56 | 57 | #if 0 58 | /** 59 | * DEBUG_MEMORY: 60 | * 61 | * should be activated only when debugging libxslt. It replaces the 62 | * allocator with a collect and debug shell to the libc allocator. 63 | * Use configure --with-mem-debug to activate it on both library 64 | */ 65 | #define DEBUG_MEMORY 66 | 67 | /** 68 | * DEBUG_MEMORY_LOCATION: 69 | * 70 | * should be activated only when debugging libxslt. 71 | * DEBUG_MEMORY_LOCATION should be activated only when libxml has 72 | * been configured with --with-debug-mem too 73 | */ 74 | #define DEBUG_MEMORY_LOCATION 75 | #endif 76 | 77 | /** 78 | * XSLT_NEED_TRIO: 79 | * 80 | * should be activated if the existing libc library lacks some of the 81 | * string formatting function, in that case reuse the Trio ones already 82 | * compiled in the libxml2 library. 83 | */ 84 | 85 | #if 0 86 | #define XSLT_NEED_TRIO 87 | #endif 88 | #ifdef __VMS 89 | #define HAVE_MATH_H 1 90 | #define HAVE_SYS_STAT_H 1 91 | #ifndef XSLT_NEED_TRIO 92 | #define XSLT_NEED_TRIO 93 | #endif 94 | #endif 95 | 96 | #ifdef XSLT_NEED_TRIO 97 | #define TRIO_REPLACE_STDIO 98 | #endif 99 | 100 | /** 101 | * WITH_XSLT_DEBUGGER: 102 | * 103 | * Activate the compilation of the debugger support. Speed penalty 104 | * is insignifiant. 105 | * On by default unless --without-debugger is passed to configure 106 | */ 107 | #if 1 108 | #ifndef WITH_DEBUGGER 109 | #define WITH_DEBUGGER 110 | #endif 111 | #endif 112 | 113 | /** 114 | * WITH_MODULES: 115 | * 116 | * Whether module support is configured into libxslt 117 | * Note: no default module path for win32 platforms 118 | */ 119 | #if 1 120 | #ifndef WITH_MODULES 121 | #define WITH_MODULES 122 | #endif 123 | #define LIBXSLT_DEFAULT_PLUGINS_PATH() NULL 124 | #endif 125 | 126 | /** 127 | * Locale support 128 | */ 129 | #if 0 130 | #ifndef XSLT_LOCALE_XLOCALE 131 | #define XSLT_LOCALE_XLOCALE 132 | #endif 133 | #elif 0 134 | #ifndef XSLT_LOCALE_WINAPI 135 | #define XSLT_LOCALE_WINAPI 136 | #endif 137 | #endif 138 | 139 | /** 140 | * ATTRIBUTE_UNUSED: 141 | * 142 | * This macro is used to flag unused function parameters to GCC 143 | */ 144 | #ifdef __GNUC__ 145 | #ifdef HAVE_ANSIDECL_H 146 | #include 147 | #endif 148 | #ifndef ATTRIBUTE_UNUSED 149 | #define ATTRIBUTE_UNUSED __attribute__((unused)) 150 | #endif 151 | #else 152 | #define ATTRIBUTE_UNUSED 153 | #endif 154 | 155 | /** 156 | * LIBXSLT_PUBLIC: 157 | * 158 | * This macro is used to declare PUBLIC variables for Cygwin and for MSC on Windows 159 | */ 160 | #if !defined LIBXSLT_PUBLIC 161 | #if (defined(__CYGWIN__) || defined _MSC_VER) && !defined IN_LIBXSLT && !defined LIBXSLT_STATIC 162 | #define LIBXSLT_PUBLIC __declspec(dllimport) 163 | #else 164 | #define LIBXSLT_PUBLIC 165 | #endif 166 | #endif 167 | 168 | #ifdef __cplusplus 169 | } 170 | #endif 171 | 172 | #endif /* __XML_XSLTCONFIG_H__ */ 173 | -------------------------------------------------------------------------------- /deps/libxslt.config/win/x64/config.h: -------------------------------------------------------------------------------- 1 | /* config.h. Generated from config.h.in by configure. */ 2 | /* config.h.in. Generated from configure.in by autoheader. */ 3 | 4 | /* Define to 1 if you have the header file. */ 5 | /* #undef HAVE_ANSIDECL_H */ 6 | 7 | /* Define to 1 if you have the `asctime' function. */ 8 | #define HAVE_ASCTIME 1 9 | 10 | /* Define to 1 if you have the `clock_gettime' function. */ 11 | #define HAVE_CLOCK_GETTIME 1 12 | 13 | /* Define to 1 if you have the header file. */ 14 | #define HAVE_DLFCN_H 1 15 | 16 | /* Define if fabs is there */ 17 | #define HAVE_FABS /**/ 18 | 19 | /* Define to 1 if you have the header file. */ 20 | #define HAVE_FLOAT_H 1 21 | 22 | /* Define if floor is there */ 23 | #define HAVE_FLOOR /**/ 24 | 25 | /* Define to 1 if you have the `fprintf' function. */ 26 | #define HAVE_FPRINTF 1 27 | 28 | /* Define to 1 if you have the header file. */ 29 | /* #undef HAVE_FP_CLASS_H */ 30 | 31 | /* Define to 1 if you have the `ftime' function. */ 32 | #define HAVE_FTIME 1 33 | 34 | /* Define if gcrypt library is available. */ 35 | /* #undef HAVE_GCRYPT */ 36 | 37 | /* Define to 1 if you have the `gettimeofday' function. */ 38 | #define HAVE_GETTIMEOFDAY 1 39 | 40 | /* Define to 1 if you have the `gmtime' function. */ 41 | #define HAVE_GMTIME 1 42 | 43 | /* Define to 1 if you have the `gmtime_r' function. */ 44 | #define HAVE_GMTIME_R 1 45 | 46 | /* Define to 1 if you have the header file. */ 47 | /* #undef HAVE_IEEEFP_H */ 48 | 49 | /* Define to 1 if you have the header file. */ 50 | #define HAVE_INTTYPES_H 1 51 | 52 | /* Define if pthread library is there (-lpthread) */ 53 | #define HAVE_LIBPTHREAD /**/ 54 | 55 | /* Define to 1 if you have the header file. */ 56 | #define HAVE_LOCALE_H 1 57 | 58 | /* Define to 1 if you have the `localtime' function. */ 59 | #define HAVE_LOCALTIME 1 60 | 61 | /* Define to 1 if you have the `localtime_r' function. */ 62 | #define HAVE_LOCALTIME_R 1 63 | 64 | /* Define to 1 if you have the header file. */ 65 | #define HAVE_MATH_H 1 66 | 67 | /* Define to 1 if you have the header file. */ 68 | #define HAVE_MEMORY_H 1 69 | 70 | /* Define to 1 if you have the `mktime' function. */ 71 | #define HAVE_MKTIME 1 72 | 73 | /* Define to 1 if you have the header file. */ 74 | /* #undef HAVE_NAN_H */ 75 | 76 | /* Define if pow is there */ 77 | #define HAVE_POW /**/ 78 | 79 | /* Define to 1 if you have the `printf' function. */ 80 | #define HAVE_PRINTF 1 81 | 82 | /* Define if is there */ 83 | #define HAVE_PTHREAD_H /**/ 84 | 85 | /* Define to 1 if you have the `snprintf' function. */ 86 | #define HAVE_SNPRINTF 1 87 | 88 | /* Define to 1 if you have the `sprintf' function. */ 89 | #define HAVE_SPRINTF 1 90 | 91 | /* Define to 1 if you have the `sscanf' function. */ 92 | #define HAVE_SSCANF 1 93 | 94 | /* Define to 1 if you have the `stat' function. */ 95 | #define HAVE_STAT 1 96 | 97 | /* Define to 1 if you have the header file. */ 98 | #define HAVE_STDARG_H 1 99 | 100 | /* Define to 1 if you have the header file. */ 101 | #define HAVE_STDINT_H 1 102 | 103 | /* Define to 1 if you have the header file. */ 104 | #define HAVE_STDLIB_H 1 105 | 106 | /* Define to 1 if you have the header file. */ 107 | #define HAVE_STRINGS_H 1 108 | 109 | /* Define to 1 if you have the header file. */ 110 | #define HAVE_STRING_H 1 111 | 112 | /* Define to 1 if you have the header file. */ 113 | #define HAVE_SYS_SELECT_H 1 114 | 115 | /* Define to 1 if you have the header file. */ 116 | #define HAVE_SYS_STAT_H 1 117 | 118 | /* Define to 1 if you have the header file. */ 119 | #define HAVE_SYS_TIMEB_H 1 120 | 121 | /* Define to 1 if you have the header file. */ 122 | #define HAVE_SYS_TIME_H 1 123 | 124 | /* Define to 1 if you have the header file. */ 125 | #define HAVE_SYS_TYPES_H 1 126 | 127 | /* Define to 1 if you have the `time' function. */ 128 | #define HAVE_TIME 1 129 | 130 | /* Define to 1 if you have the header file. */ 131 | #define HAVE_TIME_H 1 132 | 133 | /* Define to 1 if you have the header file. */ 134 | #define HAVE_UNISTD_H 1 135 | 136 | /* Define to 1 if you have the `vfprintf' function. */ 137 | #define HAVE_VFPRINTF 1 138 | 139 | /* Define to 1 if you have the `vsnprintf' function. */ 140 | #define HAVE_VSNPRINTF 1 141 | 142 | /* Define to 1 if you have the `vsprintf' function. */ 143 | #define HAVE_VSPRINTF 1 144 | 145 | /* Define to 1 if you have the header file. */ 146 | #define HAVE_XLOCALE_H 1 147 | 148 | /* Define to 1 if you have the `_stat' function. */ 149 | /* #undef HAVE__STAT */ 150 | 151 | /* Define to the sub-directory in which libtool stores uninstalled libraries. 152 | */ 153 | #define LT_OBJDIR ".libs/" 154 | 155 | /* Name of package */ 156 | #define PACKAGE "libxslt" 157 | 158 | /* Define to the address where bug reports for this package should be sent. */ 159 | #define PACKAGE_BUGREPORT "" 160 | 161 | /* Define to the full name of this package. */ 162 | #define PACKAGE_NAME "" 163 | 164 | /* Define to the full name and version of this package. */ 165 | #define PACKAGE_STRING "" 166 | 167 | /* Define to the one symbol short name of this package. */ 168 | #define PACKAGE_TARNAME "" 169 | 170 | /* Define to the home page for this package. */ 171 | #define PACKAGE_URL "" 172 | 173 | /* Define to the version of this package. */ 174 | #define PACKAGE_VERSION "" 175 | 176 | /* Define to 1 if you have the ANSI C header files. */ 177 | #define STDC_HEADERS 1 178 | 179 | /* Enable extensions on AIX 3, Interix. */ 180 | #ifndef _ALL_SOURCE 181 | # define _ALL_SOURCE 1 182 | #endif 183 | /* Enable GNU extensions on systems that have them. */ 184 | #ifndef _GNU_SOURCE 185 | # define _GNU_SOURCE 1 186 | #endif 187 | /* Enable threading extensions on Solaris. */ 188 | #ifndef _POSIX_PTHREAD_SEMANTICS 189 | # define _POSIX_PTHREAD_SEMANTICS 1 190 | #endif 191 | /* Enable extensions on HP NonStop. */ 192 | #ifndef _TANDEM_SOURCE 193 | # define _TANDEM_SOURCE 1 194 | #endif 195 | /* Enable general extensions on Solaris. */ 196 | #ifndef __EXTENSIONS__ 197 | # define __EXTENSIONS__ 1 198 | #endif 199 | 200 | 201 | /* Version number of package */ 202 | #define VERSION "1.1.28" 203 | 204 | /* Define if debugging support is enabled */ 205 | #define WITH_DEBUGGER /**/ 206 | 207 | /* Define to 1 if on MINIX. */ 208 | /* #undef _MINIX */ 209 | 210 | /* Define to 2 if the system does not provide POSIX.1 features except with 211 | this defined. */ 212 | /* #undef _POSIX_1_SOURCE */ 213 | 214 | /* Define to 1 if you need to in order for `stat' and other things to work. */ 215 | /* #undef _POSIX_SOURCE */ 216 | 217 | /* Using the Win32 Socket implementation */ 218 | /* #undef _WINSOCKAPI_ */ 219 | 220 | /* Win32 Std C name mangling work-around */ 221 | /* #undef snprintf */ 222 | 223 | /* Win32 Std C name mangling work-around */ 224 | /* #undef vsnprintf */ 225 | -------------------------------------------------------------------------------- /deps/libxslt.config/win/x64/libexslt/exsltconfig.h: -------------------------------------------------------------------------------- 1 | /* 2 | * exsltconfig.h: compile-time version informations for the EXSLT library 3 | * 4 | * See Copyright for the status of this software. 5 | * 6 | * daniel@veillard.com 7 | */ 8 | 9 | #ifndef __XML_EXSLTCONFIG_H__ 10 | #define __XML_EXSLTCONFIG_H__ 11 | 12 | #ifdef __cplusplus 13 | extern "C" { 14 | #endif 15 | 16 | /** 17 | * LIBEXSLT_DOTTED_VERSION: 18 | * 19 | * the version string like "1.2.3" 20 | */ 21 | #define LIBEXSLT_DOTTED_VERSION "1.1.28" 22 | 23 | /** 24 | * LIBEXSLT_VERSION: 25 | * 26 | * the version number: 1.2.3 value is 10203 27 | */ 28 | #define LIBEXSLT_VERSION 817 29 | 30 | /** 31 | * LIBEXSLT_VERSION_STRING: 32 | * 33 | * the version number string, 1.2.3 value is "10203" 34 | */ 35 | #define LIBEXSLT_VERSION_STRING "817" 36 | 37 | /** 38 | * LIBEXSLT_VERSION_EXTRA: 39 | * 40 | * extra version information, used to show a CVS compilation 41 | */ 42 | #define LIBEXSLT_VERSION_EXTRA "" 43 | 44 | /** 45 | * WITH_CRYPTO: 46 | * 47 | * Whether crypto support is configured into exslt 48 | */ 49 | #if 0 50 | #define EXSLT_CRYPTO_ENABLED 51 | #endif 52 | 53 | /** 54 | * ATTRIBUTE_UNUSED: 55 | * 56 | * This macro is used to flag unused function parameters to GCC 57 | */ 58 | #ifdef __GNUC__ 59 | #ifdef HAVE_ANSIDECL_H 60 | #include 61 | #endif 62 | #ifndef ATTRIBUTE_UNUSED 63 | #define ATTRIBUTE_UNUSED __attribute__((unused)) 64 | #endif 65 | #else 66 | #define ATTRIBUTE_UNUSED 67 | #endif 68 | 69 | #ifdef __cplusplus 70 | } 71 | #endif 72 | 73 | #endif /* __XML_EXSLTCONFIG_H__ */ 74 | -------------------------------------------------------------------------------- /deps/libxslt.config/win/x64/libxslt/xsltconfig.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Summary: compile-time version informations for the XSLT engine 3 | * Description: compile-time version informations for the XSLT engine 4 | * this module is autogenerated. 5 | * 6 | * Copy: See Copyright for the status of this software. 7 | * 8 | * Author: Daniel Veillard 9 | */ 10 | 11 | #ifndef __XML_XSLTCONFIG_H__ 12 | #define __XML_XSLTCONFIG_H__ 13 | 14 | #ifdef __cplusplus 15 | extern "C" { 16 | #endif 17 | 18 | /** 19 | * LIBXSLT_DOTTED_VERSION: 20 | * 21 | * the version string like "1.2.3" 22 | */ 23 | #define LIBXSLT_DOTTED_VERSION "1.1.28" 24 | 25 | /** 26 | * LIBXSLT_VERSION: 27 | * 28 | * the version number: 1.2.3 value is 10203 29 | */ 30 | #define LIBXSLT_VERSION 10128 31 | 32 | /** 33 | * LIBXSLT_VERSION_STRING: 34 | * 35 | * the version number string, 1.2.3 value is "10203" 36 | */ 37 | #define LIBXSLT_VERSION_STRING "10128" 38 | 39 | /** 40 | * LIBXSLT_VERSION_EXTRA: 41 | * 42 | * extra version information, used to show a CVS compilation 43 | */ 44 | #define LIBXSLT_VERSION_EXTRA "" 45 | 46 | /** 47 | * WITH_XSLT_DEBUG: 48 | * 49 | * Activate the compilation of the debug reporting. Speed penalty 50 | * is insignifiant and being able to run xsltpoc -v is useful. On 51 | * by default unless --without-debug is passed to configure 52 | */ 53 | #if 1 54 | #define WITH_XSLT_DEBUG 55 | #endif 56 | 57 | #if 0 58 | /** 59 | * DEBUG_MEMORY: 60 | * 61 | * should be activated only when debugging libxslt. It replaces the 62 | * allocator with a collect and debug shell to the libc allocator. 63 | * Use configure --with-mem-debug to activate it on both library 64 | */ 65 | #define DEBUG_MEMORY 66 | 67 | /** 68 | * DEBUG_MEMORY_LOCATION: 69 | * 70 | * should be activated only when debugging libxslt. 71 | * DEBUG_MEMORY_LOCATION should be activated only when libxml has 72 | * been configured with --with-debug-mem too 73 | */ 74 | #define DEBUG_MEMORY_LOCATION 75 | #endif 76 | 77 | /** 78 | * XSLT_NEED_TRIO: 79 | * 80 | * should be activated if the existing libc library lacks some of the 81 | * string formatting function, in that case reuse the Trio ones already 82 | * compiled in the libxml2 library. 83 | */ 84 | 85 | #if 0 86 | #define XSLT_NEED_TRIO 87 | #endif 88 | #ifdef __VMS 89 | #define HAVE_MATH_H 1 90 | #define HAVE_SYS_STAT_H 1 91 | #ifndef XSLT_NEED_TRIO 92 | #define XSLT_NEED_TRIO 93 | #endif 94 | #endif 95 | 96 | #ifdef XSLT_NEED_TRIO 97 | #define TRIO_REPLACE_STDIO 98 | #endif 99 | 100 | /** 101 | * WITH_XSLT_DEBUGGER: 102 | * 103 | * Activate the compilation of the debugger support. Speed penalty 104 | * is insignifiant. 105 | * On by default unless --without-debugger is passed to configure 106 | */ 107 | #if 1 108 | #ifndef WITH_DEBUGGER 109 | #define WITH_DEBUGGER 110 | #endif 111 | #endif 112 | 113 | /** 114 | * WITH_MODULES: 115 | * 116 | * Whether module support is configured into libxslt 117 | * Note: no default module path for win32 platforms 118 | */ 119 | #if 1 120 | #ifndef WITH_MODULES 121 | #define WITH_MODULES 122 | #endif 123 | #define LIBXSLT_DEFAULT_PLUGINS_PATH() NULL 124 | #endif 125 | 126 | /** 127 | * Locale support 128 | */ 129 | #if 0 130 | #ifndef XSLT_LOCALE_XLOCALE 131 | #define XSLT_LOCALE_XLOCALE 132 | #endif 133 | #elif 0 134 | #ifndef XSLT_LOCALE_WINAPI 135 | #define XSLT_LOCALE_WINAPI 136 | #endif 137 | #endif 138 | 139 | /** 140 | * ATTRIBUTE_UNUSED: 141 | * 142 | * This macro is used to flag unused function parameters to GCC 143 | */ 144 | #ifdef __GNUC__ 145 | #ifdef HAVE_ANSIDECL_H 146 | #include 147 | #endif 148 | #ifndef ATTRIBUTE_UNUSED 149 | #define ATTRIBUTE_UNUSED __attribute__((unused)) 150 | #endif 151 | #else 152 | #define ATTRIBUTE_UNUSED 153 | #endif 154 | 155 | /** 156 | * LIBXSLT_PUBLIC: 157 | * 158 | * This macro is used to declare PUBLIC variables for Cygwin and for MSC on Windows 159 | */ 160 | #if !defined LIBXSLT_PUBLIC 161 | #if (defined(__CYGWIN__) || defined _MSC_VER) && !defined IN_LIBXSLT && !defined LIBXSLT_STATIC 162 | #define LIBXSLT_PUBLIC __declspec(dllimport) 163 | #else 164 | #define LIBXSLT_PUBLIC 165 | #endif 166 | #endif 167 | 168 | #ifdef __cplusplus 169 | } 170 | #endif 171 | 172 | #endif /* __XML_XSLTCONFIG_H__ */ 173 | -------------------------------------------------------------------------------- /deps/libxslt.gyp: -------------------------------------------------------------------------------- 1 | { 2 | 'variables': { 3 | 'target_arch%': 'ia32', # build for a 32-bit CPU by default 4 | 'xmljs_include_dirs%': [], 5 | 'xmljs_libraries%': [], 6 | }, 7 | 'target_defaults': { 8 | 'default_configuration': 'Release', 9 | 'configurations': { 10 | 'Debug': { 11 | 'defines': [ 'DEBUG', '_DEBUG' ], 12 | 'msvs_settings': { 13 | 'VCCLCompilerTool': { 14 | 'RuntimeLibrary': 1, # static debug 15 | }, 16 | }, 17 | }, 18 | 'Release': { 19 | 'defines': [ 'NDEBUG' ], 20 | 'msvs_settings': { 21 | 'VCCLCompilerTool': { 22 | 'RuntimeLibrary': 0, # static release 23 | }, 24 | }, 25 | } 26 | }, 27 | 'defines': ['HAVE_CONFIG_H','LIBXSLT_STATIC','WITH_MODULES'], 28 | 'include_dirs': [ 29 | 'libxslt/', 30 | # platform and arch-specific headers 31 | 'libxslt.config/<(OS)/<(target_arch)', 32 | '<@(xmljs_include_dirs)' 33 | ] 34 | }, 35 | 'targets': [ 36 | { 37 | 'target_name': 'libxslt', 38 | 'type': 'static_library', 39 | 'sources': [ 40 | 'libxslt/libxslt/attributes.c', 41 | 'libxslt/libxslt/attrvt.c', 42 | 'libxslt/libxslt/documents.c', 43 | 'libxslt/libxslt/extensions.c', 44 | 'libxslt/libxslt/extra.c', 45 | 'libxslt/libxslt/functions.c', 46 | 'libxslt/libxslt/imports.c', 47 | 'libxslt/libxslt/keys.c', 48 | 'libxslt/libxslt/namespaces.c', 49 | 'libxslt/libxslt/numbers.c', 50 | 'libxslt/libxslt/pattern.c', 51 | 'libxslt/libxslt/preproc.c', 52 | 'libxslt/libxslt/preproc.h', 53 | 'libxslt/libxslt/security.c', 54 | 'libxslt/libxslt/security.h', 55 | 'libxslt/libxslt/templates.c', 56 | 'libxslt/libxslt/transform.c', 57 | 'libxslt/libxslt/variables.c', 58 | 'libxslt/libxslt/xslt.c', 59 | 'libxslt/libxslt/xsltlocale.c', 60 | 'libxslt/libxslt/xsltutils.c' 61 | ], 62 | 'dependencies': [ 63 | '<(node_xmljs)/binding.gyp:xmljs-myh' 64 | ], 65 | 'link_settings': { 66 | 'libraries': [ 67 | '<@(xmljs_libraries)', 68 | ] 69 | }, 70 | 'direct_dependent_settings': { 71 | 'defines': ['LIBXSLT_STATIC'], 72 | 'include_dirs': [ 73 | 'libxslt/', 74 | # platform and arch-specific headers 75 | 'libxslt.config/<(OS)/<(target_arch)', 76 | '<@(xmljs_include_dirs)' 77 | ], 78 | } 79 | }, 80 | { 81 | 'target_name': 'libexslt', 82 | 'type': 'static_library', 83 | 'sources': [ 84 | 'libxslt/libexslt/common.c', 85 | 'libxslt/libexslt/crypto.c', 86 | 'libxslt/libexslt/date.c', 87 | 'libxslt/libexslt/dynamic.c', 88 | 'libxslt/libexslt/exslt.c', 89 | 'libxslt/libexslt/functions.c', 90 | 'libxslt/libexslt/math.c', 91 | 'libxslt/libexslt/saxon.c', 92 | 'libxslt/libexslt/sets.c', 93 | 'libxslt/libexslt/strings.c' 94 | ], 95 | 'dependencies': [ 96 | 'libxslt' 97 | ], 98 | 'link_settings': { 99 | 'libraries': [ 100 | '<@(xmljs_libraries)' 101 | ] 102 | } 103 | } 104 | ] 105 | } 106 | -------------------------------------------------------------------------------- /example.js: -------------------------------------------------------------------------------- 1 | // Mostly to run for debugging purposes 2 | var fs = require('fs'); 3 | var libxslt = require('./index'); 4 | 5 | var stylesheetSource = fs.readFileSync('./test/resources/cd.xsl', 'utf8'); 6 | var docSource = fs.readFileSync('./test/resources/cd.xml', 'utf8'); 7 | 8 | var stylesheet = libxslt.parse(stylesheetSource); 9 | //var result = stylesheet.apply(docSource); 10 | 11 | //console.log(result); 12 | 13 | 14 | stylesheet.apply(docSource, function(err, result){ 15 | console.log(result); 16 | }); -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Node.js bindings for libxslt compatible with libxmljs 3 | * @module libxslt 4 | */ 5 | 6 | var fs = require('fs'); 7 | var libxmljs = require('node1-libxmljsmt-myh'); 8 | var binding = require('bindings')('node-libxslt'); 9 | 10 | binding.registerEXSLT(); 11 | 12 | /** 13 | * The libxmljs module. Prevents the need for a user's code to require it a second time. Also prevent weird bugs. 14 | */ 15 | exports.libxmljs = libxmljs; 16 | 17 | /** 18 | * A compiled stylesheet. Do not call this constructor, instead use parse or parseFile. 19 | * 20 | * store both the source document and the parsed stylesheet 21 | * if we don't store the stylesheet doc it will be deleted by garbage collector and it will result in segfaults. 22 | * 23 | * @constructor 24 | * @param {Document} stylesheetDoc - XML document source of the stylesheet 25 | * @param {Document} stylesheetObj - Simple wrapper of a libxslt stylesheet 26 | */ 27 | var Stylesheet = function(stylesheetDoc, stylesheetObj){ 28 | this.stylesheetDoc = stylesheetDoc; 29 | this.stylesheetObj = stylesheetObj; 30 | }; 31 | 32 | /** 33 | * Parse a XSL stylesheet 34 | * 35 | * If no callback is given the function will run synchronously and return the result or throw an error. 36 | * 37 | * @param {string|Document} source - The content of the stylesheet as a string or a [libxmljs document]{@link https://github.com/polotek/libxmljs/wiki/Document} 38 | * @param {parseCallback} [callback] - The callback that handles the response. Expects err and Stylesheet object. 39 | * @return {Stylesheet} Only if no callback is given. 40 | */ 41 | exports.parse = function(source, callback) { 42 | // stylesheet can be given as a string or a pre-parsed xml document 43 | if (typeof source === 'string') { 44 | try { 45 | source = libxmljs.parseXml(source, { nocdata: true }); 46 | } catch (err) { 47 | if (callback) return callback(err); 48 | throw err; 49 | } 50 | } 51 | 52 | if (callback) { 53 | binding.stylesheetAsync(source, function(err, stylesheet){ 54 | if (err) return callback(err); 55 | callback(null, new Stylesheet(source, stylesheet)); 56 | }); 57 | } else { 58 | return new Stylesheet(source, binding.stylesheetSync(source)); 59 | } 60 | }; 61 | /** 62 | * Callback to the parse function 63 | * @callback parseCallback 64 | * @param {error} [err] 65 | * @param {Stylesheet} [stylesheet] 66 | */ 67 | 68 | /** 69 | * Parse a XSL stylesheet 70 | * 71 | * @param {stringPath} sourcePath - The path of the file 72 | * @param {parseFileCallback} callback - The callback that handles the response. Expects err and Stylesheet object. 73 | */ 74 | exports.parseFile = function(sourcePath, callback) { 75 | fs.readFile(sourcePath, 'utf8', function(err, data){ 76 | if (err) return callback(err); 77 | exports.parse(data, callback); 78 | }); 79 | }; 80 | /** 81 | * Callback to the parseFile function 82 | * @callback parseFileCallback 83 | * @param {error} [err] 84 | * @param {Stylesheet} [stylesheet] 85 | */ 86 | 87 | /** 88 | * Options for applying a stylesheet 89 | * @typedef applyOptions 90 | * @property {String} outputFormat - Force the type of the output, either 'document' or 'string'. Default is to use the type of the input. 91 | * @property {boolean} noWrapParams - If true then the parameters are XPath expressions, otherwise they are treated as strings. Default is false. 92 | */ 93 | 94 | /** 95 | * Apply a stylesheet to a XML document 96 | * 97 | * If no callback is given the function will run synchronously and return the result or throw an error. 98 | * 99 | * @param {string|Document} source - The XML content to apply the stylesheet to given as a string or a [libxmljs document]{@link https://github.com/polotek/libxmljs/wiki/Document} 100 | * @param {object} [params] - Parameters passed to the stylesheet ({@link http://www.w3schools.com/xsl/el_with-param.asp}) 101 | * @param {applyOptions} [options] - Options 102 | * @param {applyCallback} [callback] - The callback that handles the response. Expects err and result of the same type as the source param passed to apply. 103 | * @return {string|Document} Only if no callback is given. Type is the same as the source param. 104 | */ 105 | Stylesheet.prototype.apply = function(source, params, options, callback) { 106 | // params and options parameters are optional 107 | if (typeof options === 'function') { 108 | callback = options; 109 | options = {}; 110 | } 111 | if (typeof params === 'function') { 112 | callback = params; 113 | params = {}; 114 | options = {}; 115 | } 116 | params = params || {}; 117 | options = options || {}; 118 | 119 | if (!options.noWrapParams) { 120 | var wrappedParams = {}; 121 | for(var p in params) { 122 | // string parameters must be surrounded by quotes to be usable by the stylesheet 123 | if (typeof params[p] === 'string') wrappedParams[p] = '"' + params[p] + '"'; 124 | else wrappedParams[p] = params[p]; 125 | } 126 | params = wrappedParams; 127 | } 128 | 129 | // Output format can be passed as explicit option or 130 | // is implicit and mapped to the input format 131 | var outputString; 132 | if (options.outputFormat) { 133 | outputString = (options.outputFormat === 'string'); 134 | } else { 135 | outputString = (typeof source === 'string'); 136 | } 137 | 138 | // xml can be given as a string or a pre-parsed xml document 139 | if (typeof source === 'string') { 140 | try { 141 | source = libxmljs.parseXml(source); 142 | } catch (err) { 143 | if (callback) return callback(err); 144 | throw err; 145 | } 146 | } 147 | 148 | // flatten the params object in an array 149 | var paramsArray = []; 150 | for(var key in params) { 151 | paramsArray.push(key); 152 | paramsArray.push(params[key]); 153 | } 154 | 155 | var docResult = new libxmljs.Document(); 156 | 157 | if (callback) { 158 | binding.applyAsync(this.stylesheetObj, source, paramsArray, outputString, docResult, function(err, strResult){ 159 | if (err) return callback(err); 160 | callback(null, outputString ? strResult : docResult); 161 | }); 162 | } else { 163 | var strResult = binding.applySync(this.stylesheetObj, source, paramsArray, outputString, docResult); 164 | return outputString ? strResult : docResult; 165 | } 166 | }; 167 | 168 | /** 169 | * Callback to the Stylesheet.apply function 170 | * @callback applyCallback 171 | * @param {error} [err] - Error either from parsing the XML document if given as a string or from applying the styleshet 172 | * @param {string|Document} [result] Result of the same type as the source param passed to apply 173 | */ 174 | 175 | /** 176 | * Apply a stylesheet to a XML file 177 | * 178 | * @param {string} sourcePath - The path of the file to read 179 | * @param {object} [params] - Parameters passed to the stylesheet ({@link http://www.w3schools.com/xsl/el_with-param.asp}) 180 | * @param {applyOptions} [options] - Options 181 | * @param {applyToFileCallback} callback The callback that handles the response. Expects err and result as string. 182 | */ 183 | Stylesheet.prototype.applyToFile = function(sourcePath, params, options, callback) { 184 | var that = this; 185 | fs.readFile(sourcePath, 'utf8', function(err, data){ 186 | if (err) return callback(err); 187 | that.apply(data, params, options, callback); 188 | }); 189 | }; 190 | /** 191 | * Callback to the Stylesheet.applyToFile function 192 | * @callback applyToFileCallback 193 | * @param {error} [err] - Error either from reading the file, parsing the XML document or applying the styleshet 194 | * @param {string} [result] 195 | */ 196 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "libxslt", 3 | "version": "0.10.2", 4 | "description": "[Fork] Node.js bindings for libxslt compatible with libxmljs", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "mocha -R spec", 8 | "docs": "jsdoc2md index.js --template readme.hbs > README.md" 9 | }, 10 | "keywords": [ 11 | "xml", 12 | "xsl", 13 | "xslt", 14 | "libxslt", 15 | "bindings" 16 | ], 17 | "author": "Alban Mouton ", 18 | "homepage": "https://github.com/albanm/node-libxslt", 19 | "contributors": [ 20 | "Rui Azevedo (http://www.r-site.net/)" 21 | ], 22 | "bugs": { 23 | "url": "https://github.com/albanm/node-libxslt/issues" 24 | }, 25 | "repository": { 26 | "type": "git", 27 | "url": "https://github.com/albanm/node-libxslt.git" 28 | }, 29 | "license": "MIT", 30 | "dependencies": { 31 | "bindings": "^1.5.0", 32 | "nan": "~2.14.2", 33 | "node1-libxmljsmt-myh": "1.0.8" 34 | }, 35 | "devDependencies": { 36 | "async": "~3.2.0", 37 | "jsdoc-to-markdown": "^7.0.1", 38 | "mocha": "^9.0.2", 39 | "should": "~13.2.3" 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /readme.hbs: -------------------------------------------------------------------------------- 1 | node-libxslt 2 | ============ 3 | 4 | [![Build status](https://travis-ci.org/albanm/node-libxslt.svg)](https://travis-ci.org/albanm/node-libxslt) 5 | [![Code Climate](https://codeclimate.com/github/albanm/node-libxslt/badges/gpa.svg)](https://codeclimate.com/github/albanm/node-libxslt) 6 | [![NPM version](https://badge.fury.io/js/libxslt.svg)](http://badge.fury.io/js/libxslt) 7 | 8 | Node.js bindings for [libxslt](http://xmlsoft.org/libxslt/) compatible with [libxmljs](https://github.com/polotek/libxmljs/issues/226). 9 | 10 | Installation 11 | ------------ 12 | 13 | npm install libxslt 14 | 15 | Basic usage 16 | ----------- 17 | 18 | ```js 19 | var libxslt = require('libxslt'); 20 | 21 | libxslt.parse(stylesheetString, function(err, stylesheet){ 22 | var params = { 23 | MyParam: 'my value' 24 | }; 25 | 26 | // 'params' parameter is optional 27 | stylesheet.apply(documentString, params, function(err, result){ 28 | // err contains any error from parsing the document or applying the stylesheet 29 | // result is a string containing the result of the transformation 30 | }); 31 | }); 32 | ``` 33 | 34 | Libxmljs integration 35 | -------------------- 36 | 37 | Node-libxslt depends on [libxmljs](https://github.com/polotek/libxmljs/issues/226) in the same way that [libxslt](http://xmlsoft.org/libxslt/) depends on [libxml](http://xmlsoft.org/). This dependancy makes possible to bundle and to load in memory libxml only once for users of both libraries. 38 | 39 | The libxmljs module required by node-libxslt is exposed as ```require('libxslt').libxmljs```. This prevents depending on libxmljs twice which is not optimal and source of weird bugs. 40 | 41 | It is possible to work with libxmljs documents instead of strings: 42 | 43 | ```js 44 | var libxslt = require('libxslt'); 45 | var libxmljs = libxslt.libxmljs; 46 | 47 | var stylesheetObj = libxmljs.parseXml(stylesheetString, { nocdata: true }); 48 | var stylesheet = libxslt.parse(stylesheetObj); 49 | 50 | var document = libxmljs.parseXml(documentString); 51 | stylesheet.apply(document, function(err, result){ 52 | // result is now a libxmljs document containing the result of the transformation 53 | }); 54 | 55 | ``` 56 | 57 | This is only useful if you already needed to parse a document before applying the stylesheet for previous manipulations. 58 | Or if you wish to be returned a document instead of a string for ulterior manipulations. 59 | In these cases you will prevent extraneous parsings and serializations. 60 | 61 | Includes 62 | -------- 63 | 64 | XSL includes are supported but relative paths must be given from the execution directory, usually the root of the project. 65 | 66 | Includes are resolved when parsing the stylesheet by libxml. Therefore the parsing task becomes IO bound, which is why you should not use synchronous parsing when you expect some includes. 67 | 68 | Sync or async 69 | ------------- 70 | 71 | The same *parse()* and *apply()* functions can be used in synchronous mode simply by removing the callback parameter. 72 | In this case if a parsing error occurs it will be thrown. 73 | 74 | ```js 75 | var libxslt = require('libxslt'); 76 | 77 | var stylesheet = libxslt.parse(stylesheetString); 78 | 79 | var result = stylesheet.apply(documentString); 80 | 81 | ``` 82 | 83 | The asynchronous functions use the [libuv work queue](http://nikhilm.github.io/uvbook/threads.html#libuv-work-queue) 84 | to provide parallelized computation in node.js worker threads. This makes it non-blocking for the main event loop of node.js. 85 | 86 | Note that libxmljs parsing doesn't use the work queue, so only a part of the process is actually parallelized. 87 | 88 | A small benchmark is available in the project. It has a very limited scope, it uses always the same small transformation a few thousand times. 89 | To run it use: 90 | 91 | node benchmark.js 92 | 93 | This is an example of its results with an intel core i5 3.1GHz: 94 | 95 | ``` 96 | 10000 synchronous parse from parsed doc in 52ms = 192308/s 97 | 10000 asynchronous parse in series from parsed doc in 229ms = 43668/s 98 | 10000 asynchronous parse in parallel from parsed doc in 56ms = 178571/s 99 | 10000 synchronous apply from parsed doc in 329ms = 30395/s 100 | 10000 asynchronous apply in series from parsed doc in 569ms = 17575/s 101 | 10000 asynchronous apply in parallel from parsed doc in 288ms = 34722/s 102 | 103 | ``` 104 | 105 | Observations: 106 | - it's pretty fast ! 107 | - asynchronous is slower when running in series. 108 | - asynchronous can become faster when concurrency is high. 109 | 110 | Conclusion: 111 | - use asynchronous by default it will be kinder to your main event loop and is pretty fast anyway. 112 | - use synchronous only if you really want the highest performance and expect low concurrency. 113 | - of course you can also use synchronous simply to reduce code depth. If you don't expect a huge load it will be ok. 114 | - DO NOT USE synchronous parsing if there is some includes in your XSL stylesheets. 115 | 116 | Environment compatibility 117 | ------------------------- 118 | 119 | For now 64bits linux and 32bits windows are confirmed. Other environments are probably ok, but not checked. Please report an issue if you encounter some difficulties. 120 | 121 | Node-libxslt depends on [node-gyp](https://github.com/TooTallNate/node-gyp), you will need to meet its requirements. This can be a bit painful mostly for windows users. The node-gyp version bundled in your npm will have to be greater than 0.13.0, so you might have to follow [these instructions to upgrade](https://github.com/TooTallNate/node-gyp/wiki/Updating-npm's-bundled-node-gyp). There is no system dependancy otherwise, libxslt is bundled in the project. 122 | 123 | API Reference 124 | ============= 125 | {{#module name="libxslt"~}} 126 | {{>body~}} 127 | {{>members~}} 128 | {{/module~}} 129 | 130 | *documented by [jsdoc-to-markdown](https://github.com/75lb/jsdoc-to-markdown)*. 131 | -------------------------------------------------------------------------------- /src/document.cc: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | #include "./document.h" 5 | 6 | using namespace v8; 7 | 8 | Nan::Persistent Document::constructor; 9 | 10 | Document::Document(xmlDocumentPtr documentPtr) : document_obj(documentPtr) {} 11 | 12 | Document::~Document() 13 | { 14 | xmlFreeDocument(document_obj); 15 | } 16 | 17 | void Document::Init(Local exports) { 18 | // Prepare constructor template 19 | Local tpl = FunctionTemplate::New(); 20 | tpl->SetClassName(String::NewSymbol("Document")); 21 | tpl->InstanceTemplate()->SetInternalFieldCount(1); 22 | 23 | constructor = Nan::Persistent::New(tpl->GetFunction()); 24 | } 25 | 26 | // not called from node, private api 27 | Local Document::New(xmlDocumentPtr documentPtr) { 28 | Nan::EscapableHandleScope scope; 29 | Local wrapper = Nan::New(constructor).ToLocalChecked()->NewInstance(); 30 | Document* Document = new Document(documentPtr); 31 | Document->Wrap(wrapper); 32 | return scope.Escape(wrapper); 33 | } 34 | -------------------------------------------------------------------------------- /src/document.h: -------------------------------------------------------------------------------- 1 | // Very simple v8 wrapper for xml document, see "Wrapping C++ objects" section here http://nodejs.org/api/addons.html 2 | 3 | #ifndef SRC_DOCUMENT_H_ 4 | #define SRC_DOCUMENT_H_ 5 | 6 | #include 7 | #include 8 | #include 9 | #include 10 | 11 | class Document : public Nan::ObjectWrap { 12 | public: 13 | static void Init(v8::Local exports); 14 | static v8::Local New(xmlDocumentPtr DocumentPtr); 15 | static NAN_METHOD(TransformSync); 16 | xmlDocumentPtr Document_obj; 17 | 18 | private: 19 | explicit Document(xmlDocumentPtr DocumentPtr); 20 | ~Document(); 21 | static Nan::Persistent constructor; 22 | }; 23 | 24 | #endif // SRC_DOCUMENT_H_ -------------------------------------------------------------------------------- /src/node_libxslt.cc: -------------------------------------------------------------------------------- 1 | #define BUILDING_NODE_EXTENSION 2 | #include 3 | #include 4 | #include 5 | #include 6 | #include 7 | #include 8 | 9 | // includes from libxmljs 10 | #include 11 | #include 12 | 13 | #include "./node_libxslt.h" 14 | #include "./stylesheet.h" 15 | 16 | using namespace v8; 17 | 18 | //int vasprintf (char **strp, const char *fmt, va_list ap); 19 | 20 | int vasprintf(char** strp, const char* fmt, va_list ap) { 21 | va_list ap2; 22 | va_copy(ap2, ap); 23 | char tmp[1]; 24 | int size = vsnprintf(tmp, 1, fmt, ap2); 25 | if (size <= 0) return size; 26 | va_end(ap2); 27 | size += 1; 28 | *strp = (char*)malloc(size * sizeof(char)); 29 | return vsnprintf(*strp, size, fmt, ap); 30 | } 31 | 32 | static xmlDoc* copyDocument(Local input) { 33 | libxmljs::XmlDocument* docWrapper = 34 | Nan::ObjectWrap::Unwrap(Nan::To(input).ToLocalChecked()); 35 | xmlDoc* stylesheetDoc = docWrapper->xml_obj; 36 | return xmlCopyDoc(stylesheetDoc, true); 37 | } 38 | 39 | // Directly inspired by nokogiri: 40 | // https://github.com/sparklemotion/nokogiri/blob/24bb843327306d2d71e4b2dc337c1e327cbf4516/ext/nokogiri/xslt_stylesheet.c#L76 41 | static void xslt_generic_error_handler(void * ctx, const char *msg, ...) 42 | { 43 | char * message; 44 | va_list args; 45 | va_start(args, msg); 46 | vasprintf(&message, msg, args); 47 | va_end(args); 48 | strncpy((char*)ctx, message, 2048); 49 | free(message); 50 | } 51 | 52 | NAN_METHOD(StylesheetSync) { 53 | Nan::HandleScope scope; 54 | char* errstr = new char[2048]; 55 | xsltSetGenericErrorFunc(errstr, xslt_generic_error_handler); 56 | xmlDoc* doc = copyDocument(info[0]); 57 | xsltStylesheetPtr stylesheet = xsltParseStylesheetDoc(doc); 58 | xsltSetGenericErrorFunc(NULL, NULL); 59 | 60 | if (!stylesheet) { 61 | xmlFreeDoc(doc); 62 | return Nan::ThrowError(errstr); 63 | } 64 | 65 | Local stylesheetWrapper = Stylesheet::New(stylesheet); 66 | info.GetReturnValue().Set(stylesheetWrapper); 67 | } 68 | 69 | // for memory the segfault i previously fixed were due to xml documents being deleted 70 | // by garbage collector before their associated stylesheet. 71 | class StylesheetWorker : public Nan::AsyncWorker { 72 | public: 73 | StylesheetWorker(xmlDoc* doc, Nan::Callback *callback) 74 | : Nan::AsyncWorker(callback), doc(doc) {} 75 | ~StylesheetWorker() {} 76 | 77 | // Executed inside the worker-thread. 78 | // It is not safe to access V8, or V8 data structures 79 | // here, so everything we need for input and output 80 | // should go on `this`. 81 | void Execute () { 82 | libxmljs::WorkerSentinel workerSentinel(workerParent); 83 | 84 | // Error management is probably not really thread safe :( 85 | errstr = new char[2048];; 86 | xsltSetGenericErrorFunc(errstr, xslt_generic_error_handler); 87 | result = xsltParseStylesheetDoc(doc); 88 | xsltSetGenericErrorFunc(NULL, NULL); 89 | } 90 | 91 | // Executed when the async work is complete 92 | // this function will be run inside the main event loop 93 | // so it is safe to use V8 again 94 | void HandleOKCallback () { 95 | Nan::HandleScope scope; 96 | if (!result) { 97 | xmlFreeDoc(doc); 98 | Local argv[] = { Nan::Error(errstr) }; 99 | callback->Call(1, argv); 100 | } else { 101 | Local resultWrapper = Stylesheet::New(result); 102 | Local argv[] = { Nan::Null(), resultWrapper }; 103 | callback->Call(2, argv); 104 | } 105 | }; 106 | 107 | private: 108 | libxmljs::WorkerParent workerParent; 109 | xmlDoc* doc; 110 | xsltStylesheetPtr result; 111 | char* errstr; 112 | }; 113 | 114 | NAN_METHOD(StylesheetAsync) { 115 | Nan::HandleScope scope; 116 | xmlDoc* doc = copyDocument(info[0]); 117 | Nan::Callback *callback = new Nan::Callback(info[1].As()); 118 | StylesheetWorker* worker = new StylesheetWorker(doc, callback); 119 | Nan::AsyncQueueWorker(worker); 120 | return; 121 | } 122 | 123 | // duplicate from https://github.com/bsuh/node_xslt/blob/master/node_xslt.cc 124 | void freeArray(char **array, int size) { 125 | for (int i = 0; i < size; i++) { 126 | free(array[i]); 127 | } 128 | free(array); 129 | } 130 | // transform a v8 array into a char** to pass params to xsl transform 131 | // inspired by https://github.com/bsuh/node_xslt/blob/master/node_xslt.cc 132 | char** PrepareParams(Local array, Isolate *isolate) { 133 | uint32_t arrayLen = array->Length(); 134 | char** params = (char **)malloc(sizeof(char *) * (arrayLen + 1)); 135 | memset(params, 0, sizeof(char *) * (array->Length() + 1)); 136 | for (unsigned int i = 0; i < array->Length(); i++) { 137 | Local param = Nan::To(Nan::Get(array, i).ToLocalChecked()).ToLocalChecked(); 138 | params[i] = (char *)malloc(sizeof(char) * (param->Utf8Length(isolate) + 1)); 139 | param->WriteUtf8(isolate, params[i]); 140 | } 141 | return params; 142 | } 143 | 144 | NAN_METHOD(ApplySync) { 145 | Nan::HandleScope scope; 146 | Stylesheet* stylesheet = Nan::ObjectWrap::Unwrap(Nan::To(info[0]).ToLocalChecked()); 147 | libxmljs::XmlDocument* docSource = Nan::ObjectWrap::Unwrap(Nan::To(info[1]).ToLocalChecked()); 148 | Local paramsArray = Local::Cast(info[2]); 149 | bool outputString = Nan::To(info[3]).ToLocalChecked()->Value(); 150 | 151 | char** params = PrepareParams(paramsArray, info.GetIsolate()); 152 | 153 | xmlDoc* result = xsltApplyStylesheet(stylesheet->stylesheet_obj, docSource->xml_obj, (const char **)params); 154 | if (!result) { 155 | freeArray(params, paramsArray->Length()); 156 | return Nan::ThrowError("Failed to apply stylesheet"); 157 | } 158 | 159 | if (outputString) { 160 | // As well as a libxmljs document, prepare a string result 161 | unsigned char* resStr; 162 | int len; 163 | xsltSaveResultToString(&resStr,&len,result,stylesheet->stylesheet_obj); 164 | xmlFreeDoc(result); 165 | info.GetReturnValue().Set(Nan::New(resStr ? (char*)resStr : "").ToLocalChecked()); 166 | if (resStr) xmlFree(resStr); 167 | } else { 168 | // Fill a result libxmljs document. 169 | // for some obscure reason I didn't manage to create a new libxmljs document in applySync, 170 | // but passing a document by reference and modifying its content works fine 171 | // replace the empty document in docResult with the result of the stylesheet 172 | libxmljs::XmlDocument* docResult = Nan::ObjectWrap::Unwrap(Nan::To(info[4]).ToLocalChecked()); 173 | docResult->xml_obj->_private = NULL; 174 | xmlFreeDoc(docResult->xml_obj); 175 | docResult->xml_obj = result; 176 | result->_private = docResult; 177 | } 178 | 179 | freeArray(params, paramsArray->Length()); 180 | return; 181 | } 182 | 183 | // for memory the segfault i previously fixed were due to xml documents being deleted 184 | // by garbage collector before their associated stylesheet. 185 | class ApplyWorker : public Nan::AsyncWorker { 186 | public: 187 | ApplyWorker(Stylesheet* stylesheet, libxmljs::XmlDocument* docSource, char** params, int paramsLength, bool outputString, libxmljs::XmlDocument* docResult, Nan::Callback *callback) 188 | : Nan::AsyncWorker(callback), stylesheet(stylesheet), docSource(docSource), params(params), paramsLength(paramsLength), outputString(outputString), docResult(docResult) {} 189 | ~ApplyWorker() {} 190 | 191 | // Executed inside the worker-thread. 192 | // It is not safe to access V8, or V8 data structures 193 | // here, so everything we need for input and output 194 | // should go on `this`. 195 | void Execute () { 196 | libxmljs::WorkerSentinel workerSentinel(workerParent); 197 | result = xsltApplyStylesheet(stylesheet->stylesheet_obj, docSource->xml_obj, (const char **)params); 198 | } 199 | 200 | // Executed when the async work is complete 201 | // this function will be run inside the main event loop 202 | // so it is safe to use V8 again 203 | void HandleOKCallback () { 204 | Nan::HandleScope scope; 205 | if (!result) { 206 | Local argv[] = { Nan::Error("Failed to apply stylesheet") }; 207 | freeArray(params, paramsLength); 208 | callback->Call(1, argv); 209 | return; 210 | } 211 | 212 | if(!outputString) { 213 | // for some obscure reason I didn't manage to create a new libxmljs document in applySync, 214 | // but passing a document by reference and modifying its content works fine 215 | // replace the empty document in docResult with the result of the stylesheet 216 | docResult->xml_obj->_private = NULL; 217 | xmlFreeDoc(docResult->xml_obj); 218 | docResult->xml_obj = result; 219 | result->_private = docResult; 220 | Local argv[] = { Nan::Null() }; 221 | freeArray(params, paramsLength); 222 | callback->Call(1, argv); 223 | } else { 224 | unsigned char* resStr; 225 | int len; 226 | int cnt=xsltSaveResultToString(&resStr,&len,result,stylesheet->stylesheet_obj); 227 | xmlFreeDoc(result); 228 | Local argv[] = { Nan::Null(), Nan::New(resStr ? (char*)resStr : "").ToLocalChecked()}; 229 | if (resStr) xmlFree(resStr); 230 | freeArray(params, paramsLength); 231 | callback->Call(2, argv); 232 | } 233 | 234 | 235 | }; 236 | 237 | private: 238 | libxmljs::WorkerParent workerParent; 239 | Stylesheet* stylesheet; 240 | libxmljs::XmlDocument* docSource; 241 | char** params; 242 | int paramsLength; 243 | bool outputString; 244 | libxmljs::XmlDocument* docResult; 245 | xmlDoc* result; 246 | }; 247 | 248 | NAN_METHOD(ApplyAsync) { 249 | Nan::HandleScope scope; 250 | 251 | Stylesheet* stylesheet = Nan::ObjectWrap::Unwrap(Nan::To(info[0]).ToLocalChecked()); 252 | libxmljs::XmlDocument* docSource = Nan::ObjectWrap::Unwrap(Nan::To(info[1]).ToLocalChecked()); 253 | Local paramsArray = Local::Cast(info[2]); 254 | bool outputString = Nan::To(info[3]).ToLocalChecked()->Value(); 255 | 256 | //if (!outputString) { 257 | libxmljs::XmlDocument* docResult = Nan::ObjectWrap::Unwrap(Nan::To(info[4]).ToLocalChecked()); 258 | //} 259 | 260 | Nan::Callback *callback = new Nan::Callback(info[5].As()); 261 | 262 | char** params = PrepareParams(paramsArray, info.GetIsolate()); 263 | 264 | ApplyWorker* worker = new ApplyWorker(stylesheet, docSource, params, paramsArray->Length(), outputString, docResult, callback); 265 | for (uint32_t i = 0; i < 5; ++i) worker->SaveToPersistent(i, info[i]); 266 | Nan::AsyncQueueWorker(worker); 267 | return; 268 | } 269 | 270 | NAN_METHOD(RegisterEXSLT) { 271 | exsltRegisterAll(); 272 | return; 273 | } 274 | 275 | // Compose the module by assigning the methods previously prepared 276 | void InitAll(Local exports) { 277 | Stylesheet::Init(exports); 278 | Nan::Set(exports, Nan::New("stylesheetSync").ToLocalChecked(), Nan::GetFunction(Nan::New(StylesheetSync)).ToLocalChecked()); 279 | Nan::Set(exports, Nan::New("stylesheetAsync").ToLocalChecked(), Nan::GetFunction(Nan::New(StylesheetAsync)).ToLocalChecked()); 280 | Nan::Set(exports, Nan::New("applySync").ToLocalChecked(), Nan::GetFunction(Nan::New(ApplySync)).ToLocalChecked()); 281 | Nan::Set(exports, Nan::New("applyAsync").ToLocalChecked(), Nan::GetFunction(Nan::New(ApplyAsync)).ToLocalChecked()); 282 | Nan::Set(exports, Nan::New("registerEXSLT").ToLocalChecked(), Nan::GetFunction(Nan::New(RegisterEXSLT)).ToLocalChecked()); 283 | } 284 | NODE_MODULE(node_libxslt, InitAll); 285 | -------------------------------------------------------------------------------- /src/node_libxslt.h: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | NAN_METHOD(StylesheetSync); 5 | NAN_METHOD(StylesheetASync); 6 | NAN_METHOD(ApplySync); 7 | NAN_METHOD(ApplyAsync); 8 | NAN_METHOD(RegisterEXSLT); 9 | -------------------------------------------------------------------------------- /src/stylesheet.cc: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | #include "./stylesheet.h" 5 | 6 | using namespace v8; 7 | 8 | Nan::Persistent Stylesheet::constructor; 9 | 10 | Stylesheet::Stylesheet(xsltStylesheetPtr stylesheetPtr) : stylesheet_obj(stylesheetPtr) {} 11 | 12 | Stylesheet::~Stylesheet() 13 | { 14 | xsltFreeStylesheet(stylesheet_obj); 15 | } 16 | 17 | void Stylesheet::Init(Local exports) { 18 | // Prepare constructor template 19 | Local tpl = Nan::New(); 20 | tpl->SetClassName(Nan::New("Stylesheet").ToLocalChecked()); 21 | tpl->InstanceTemplate()->SetInternalFieldCount(1); 22 | 23 | constructor.Reset(Nan::GetFunction(tpl).ToLocalChecked()); 24 | } 25 | 26 | // not called from node, private api 27 | Local Stylesheet::New(xsltStylesheetPtr stylesheetPtr) { 28 | Nan::EscapableHandleScope scope; 29 | //Local wrapper = Nan::New(constructor)->NewInstance(); 30 | Local wrapper = Nan::NewInstance(Nan::New(constructor)).ToLocalChecked(); 31 | Stylesheet* stylesheet = new Stylesheet(stylesheetPtr); 32 | stylesheet->Wrap(wrapper); 33 | return scope.Escape(wrapper); 34 | } 35 | -------------------------------------------------------------------------------- /src/stylesheet.h: -------------------------------------------------------------------------------- 1 | // Very simple v8 wrapper for xslt stylesheet, see "Wrapping C++ objects" section here http://nodejs.org/api/addons.html 2 | 3 | #ifndef SRC_STYLESHEET_H_ 4 | #define SRC_STYLESHEET_H_ 5 | 6 | #include 7 | #include 8 | #include 9 | #include 10 | 11 | class Stylesheet : public Nan::ObjectWrap { 12 | public: 13 | static void Init(v8::Local exports); 14 | static v8::Local New(xsltStylesheetPtr stylesheetPtr); 15 | static NAN_METHOD(TransformSync); 16 | xsltStylesheetPtr stylesheet_obj; 17 | 18 | private: 19 | explicit Stylesheet(xsltStylesheetPtr stylesheetPtr); 20 | ~Stylesheet(); 21 | static Nan::Persistent constructor; 22 | }; 23 | 24 | #endif // SRC_STYLESHEET_H_ -------------------------------------------------------------------------------- /test/libxslt.js: -------------------------------------------------------------------------------- 1 | var fs = require('fs'); 2 | 3 | var should = require('should'); 4 | 5 | var libxslt = require('../index'); 6 | 7 | var stylesheetSource = fs.readFileSync('./test/resources/cd.xsl', 'utf8'); 8 | var docSource = fs.readFileSync('./test/resources/cd.xml', 'utf8'); 9 | var stylesheetIncludeSource = fs.readFileSync('./test/resources/xslinclude.xsl', 'utf8'); 10 | var stylesheetBadIncludeSource = fs.readFileSync('./test/resources/xslbadinclude.xsl', 'utf8'); 11 | var stylesheetBadParamSource = fs.readFileSync('./test/resources/xslbadparam.xsl', 'utf8'); 12 | var doc2Source = fs.readFileSync('./test/resources/collection.xml', 'utf8') 13 | 14 | describe('node-libxslt', function() { 15 | describe('synchronous parse function', function() { 16 | it('should parse a stylesheet from a libxslt.libxmljs xml document', function() { 17 | var stylesheetDoc = libxslt.libxmljs.parseXml(stylesheetSource); 18 | var stylesheet = libxslt.parse(stylesheetDoc); 19 | stylesheet.should.be.type('object'); 20 | }); 21 | it('should parse a stylesheet from a xml string', function() { 22 | var stylesheet = libxslt.parse(stylesheetSource); 23 | stylesheet.should.be.type('object'); 24 | }); 25 | it('should parse a stylesheet with a include from a xml string', function() { 26 | var stylesheetDoc = libxslt.libxmljs.parseXml(stylesheetIncludeSource); 27 | var stylesheetInclude = libxslt.parse(stylesheetDoc); 28 | stylesheetInclude.should.be.type('object'); 29 | }); 30 | it('should throw an error when parsing invalid stylesheet', function() { 31 | (function() { 32 | libxslt.parse('this is not a stylesheet!'); 33 | }).should.throw(); 34 | }); 35 | it('should throw an error when parsing stylesheet with invalid include', function() { 36 | (function() { 37 | libxslt.parse(stylesheetBadIncludeSource); 38 | }).should.throw(/unable to load/); 39 | }); 40 | }); 41 | 42 | describe('parseFile function', function() { 43 | it('should parse a stylesheet from a file', function(callback) { 44 | libxslt.parseFile('./test/resources/cd.xsl', function(err, stylesheet) { 45 | stylesheet.should.be.type('object'); 46 | callback(err); 47 | }); 48 | }); 49 | }); 50 | 51 | describe('asynchronous parse function', function() { 52 | it('should parse a stylesheet from a libxslt.libxmljs xml document', function(callback) { 53 | var stylesheetDoc = libxslt.libxmljs.parseXml(stylesheetSource); 54 | libxslt.parse(stylesheetDoc, function(err, stylesheet) { 55 | stylesheet.should.be.type('object'); 56 | callback(err); 57 | }); 58 | }); 59 | it('should parse a stylesheet from a xml string', function(callback) { 60 | libxslt.parse(stylesheetSource, function(err, stylesheet) { 61 | stylesheet.should.be.type('object'); 62 | callback(err); 63 | }); 64 | }); 65 | it('should parse a stylesheet with a include from a xml string', function(callback) { 66 | var stylesheetDoc = libxslt.libxmljs.parseXml(stylesheetIncludeSource); 67 | libxslt.parse(stylesheetDoc, function(err, stylesheet) { 68 | stylesheet.should.be.type('object'); 69 | callback(err); 70 | }); 71 | }); 72 | it('should return an error when parsing invalid stylesheet', function(callback) { 73 | libxslt.parse('this is not a stylesheet!', function(err) { 74 | should.exist(err); 75 | callback(); 76 | }); 77 | }); 78 | it('should throw an error when parsing stylesheet with invalid include', function(callback) { 79 | libxslt.parse(stylesheetBadIncludeSource, function(err) { 80 | should.exist(err); 81 | err.message.should.match(/unable to load/) 82 | callback(); 83 | }); 84 | }) 85 | }); 86 | 87 | describe('synchronous apply function', function() { 88 | it('should apply a stylesheet to a libxslt.libxmljs xml document', function() { 89 | var doc = libxslt.libxmljs.parseXml(docSource); 90 | var stylesheet = libxslt.parse(stylesheetSource); 91 | var result = stylesheet.apply(doc); 92 | result.should.be.type('object'); 93 | result.toString().should.match(/Bob Dylan<\/td>/); 94 | }); 95 | it('should apply a stylesheet to a libxslt.libxmljs xml document and force output as string', function() { 96 | var doc = libxslt.libxmljs.parseXml(docSource); 97 | var stylesheetDoc = libxslt.libxmljs.parseXml(stylesheetIncludeSource); 98 | var stylesheet = libxslt.parse(stylesheetSource); 99 | var result = stylesheet.apply(doc, {}, {outputFormat: 'string'}); 100 | result.should.be.type('string'); 101 | result.should.match(/Bob Dylan<\/td>/); 102 | }); 103 | it('should apply a stylesheet to a xml string', function() { 104 | var stylesheet = libxslt.parse(stylesheetSource); 105 | var result = stylesheet.apply(docSource); 106 | result.should.be.type('string'); 107 | result.should.match(/Bob Dylan<\/td>/); 108 | }); 109 | it('should apply a stylesheet to a xml string and force output as document', function() { 110 | var stylesheet = libxslt.parse(stylesheetSource); 111 | var result = stylesheet.apply(docSource, {}, {outputFormat: 'document'}); 112 | result.should.be.type('object'); 113 | result.toString().should.match(/Bob Dylan<\/td>/); 114 | }); 115 | it('should apply a stylesheet with a parameter', function() { 116 | var stylesheet = libxslt.parse(stylesheetSource); 117 | var result = stylesheet.apply(docSource, { 118 | MyParam: 'MyParamValue' 119 | }); 120 | result.should.be.type('string'); 121 | result.should.match(/

My param: MyParamValue<\/p>/); 122 | }); 123 | it('should apply a stylesheet with the same parameter multiple times', function() { 124 | var stylesheet = libxslt.parse(stylesheetSource); 125 | var params = { 126 | MyParam: 'MyParamValue' 127 | } 128 | var result = stylesheet.apply(docSource, params); 129 | result.should.be.type('string'); 130 | result.should.match(/

My param: MyParamValue<\/p>/); 131 | result = stylesheet.apply(docSource, params); 132 | result.should.be.type('string'); 133 | result.should.match(/

My param: MyParamValue<\/p>/); 134 | }); 135 | /*it.only('should throw an error if it fails to apply stylesheet', function() { 136 | var stylesheet = libxslt.parse(stylesheetBadParamSource); 137 | (function() { 138 | result = stylesheet.apply(''); 139 | console.log(result); 140 | }).should.throw(/unable to load/); 141 | });*/ 142 | }); 143 | 144 | describe('asynchronous apply function', function() { 145 | it('should apply a stylesheet to a libxslt.libxmljs xml document', function(callback) { 146 | var doc = libxslt.libxmljs.parseXml(docSource); 147 | var stylesheet = libxslt.parse(stylesheetSource); 148 | stylesheet.apply(doc, function(err, result) { 149 | result.should.be.type('object'); 150 | result.toString().should.match(/Bob Dylan<\/td>/); 151 | callback(); 152 | }); 153 | }); 154 | it('should apply a stylesheet to a libxslt.libxmljs xml document and force output as string', function(callback) { 155 | var doc = libxslt.libxmljs.parseXml(docSource); 156 | var stylesheet = libxslt.parse(stylesheetSource); 157 | stylesheet.apply(doc, {}, {outputFormat: 'string'}, function(err, result) { 158 | result.should.be.type('string'); 159 | result.should.match(/Bob Dylan<\/td>/); 160 | callback(); 161 | }); 162 | }); 163 | it('should apply a stylesheet to a xml string', function(callback) { 164 | var stylesheet = libxslt.parse(stylesheetSource); 165 | stylesheet.apply(docSource, function(err, result) { 166 | result.should.be.type('string'); 167 | result.should.match(/Bob Dylan<\/td>/); 168 | callback(); 169 | }); 170 | }); 171 | it('should apply a stylesheet to a xml string and force output as document', function(callback) { 172 | var stylesheet = libxslt.parse(stylesheetSource); 173 | stylesheet.apply(docSource, {}, {outputFormat: 'document'}, function(err, result) { 174 | result.should.be.type('object'); 175 | result.toString().should.match(/Bob Dylan<\/td>/); 176 | callback(); 177 | }); 178 | }); 179 | it('should apply a stylesheet with a include to a xml string', function(callback) { 180 | var stylesheetInclude = libxslt.parse(stylesheetIncludeSource); 181 | stylesheetInclude.apply(doc2Source, function(err, result) { 182 | result.should.be.type('string'); 183 | result.should.match(/Title - Lover Birds/); 184 | callback(); 185 | }); 186 | }); 187 | }); 188 | 189 | describe('applyToFile function', function() { 190 | it('should apply a stylesheet to a xml file', function(callback) { 191 | var stylesheet = libxslt.parse(stylesheetSource); 192 | stylesheet.applyToFile('./test/resources/cd.xml', function(err, result) { 193 | result.should.be.type('string'); 194 | result.should.match(/Bob Dylan<\/td>/); 195 | callback(); 196 | }); 197 | }); 198 | }); 199 | 200 | describe('disable-output-escaping attribute', function() { 201 | it('should be interpreted by a stylesheet', function() { 202 | var stylesheetStr = fs.readFileSync('test/resources/disable-output-escaping.xsl', 'utf8'); 203 | var stylesheetEsc = libxslt.parse(stylesheetStr); 204 | var result = stylesheetEsc.apply(''); 205 | result.should.match(//); 206 | result.should.match(/<bar\/>/); 207 | }); 208 | }); 209 | 210 | describe('omit-xml-declaration directive', function() { 211 | it('should be respected by a stylesheet with output method text', function() { 212 | var data=''; 213 | var stylesheetTextOut = libxslt.parse(fs.readFileSync('test/resources/omit-xml-declaration-text-out.xsl', 'utf8')); 214 | var result = stylesheetTextOut.apply(data); 215 | result.should.be.type('string'); 216 | result.should.not.match(/\?xml/); 217 | result.should.match(//); 218 | result.should.match(//); 219 | result.should.not.match(/\'; 226 | var stylesheetXMLOut = libxslt.parse(fs.readFileSync('test/resources/omit-xml-declaration-xml-out.xsl', 'utf8')); 227 | var result = stylesheetXMLOut.apply(data); 228 | result.should.be.type('string'); 229 | result.should.not.match(/\?xml/); 230 | result.should.match(//); 231 | result.should.match(/<bar\/>/); 232 | result.should.not.match(/\'; 242 | var stylesheetHtmlOut = libxslt.parse(fs.readFileSync('test/resources/implicit-omit-xml-declaration-html-out.xsl', 'utf8')); 243 | var result = stylesheetHtmlOut.apply(data); 244 | result.should.be.type('string'); 245 | result.should.not.match(/\?xml/); 246 | result.should.match(//); 247 | result.should.match(/<\/strong>/); 248 | result.should.match(/<bar\/>/); 249 | result.should.not.match(/\'; 256 | var stylesheetTextOut = libxslt.parse(fs.readFileSync('test/resources/implicit-omit-xml-declaration-text-out.xsl', 'utf8')); 257 | var result = stylesheetTextOut.apply(data); 258 | result.should.be.type('string'); 259 | result.should.not.match(/\?xml/); 260 | result.should.match(//); 261 | result.should.match(//); 262 | result.should.not.match(/\ 9 | 10 | 11 | -------------------------------------------------------------------------------- /test/resources/implicit-omit-xml-declaration-text-out.xsl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | ]]> 5 | ]]> 6 | 7 | with text 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /test/resources/min-value.xsl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Minimum: 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /test/resources/omit-xml-declaration-text-out.xsl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | ]]> 5 | ]]> 6 | with text 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /test/resources/omit-xml-declaration-xml-out.xsl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | ]]> 5 | ]]> 6 | 7 | with text 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /test/resources/use-xpath-params.xsl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | #selected nodes: 9 | 10 | 11 | 12 | 13 | Node [ id:] was selected. 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /test/resources/values.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 3 | 11 4 | 8 5 | 4 6 | -------------------------------------------------------------------------------- /test/resources/xslbadinclude.xsl: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /test/resources/xslbadparam.xsl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |

My CD Collection

9 |

10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /test/resources/xslinclude.xsl: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 |
14 |
15 | 16 | 21 | 22 |
23 | Title: 24 |
25 |
26 | 27 | 28 | 29 |
-------------------------------------------------------------------------------- /test/resources/xslincludefile.xsl: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | Title -
8 |
9 | 10 | 11 | Author -
12 |
13 | 14 | 15 | Publisher -
16 |
17 | 18 |
--------------------------------------------------------------------------------