You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All the exports will live under `globalThis.XsltProcessor`. [See a usage example here](https://github.com/DesignLiquido/xslt-processor/blob/main/interactive-tests/xslt.html).
@@ -137,25 +137,17 @@ These functions are part of `Xslt` and `XPath` classes, respectively, at version
137
137
138
138
## Introduction
139
139
140
-
XSLT-processor contains an implementation of XSLT in JavaScript. Because XSLT uses
141
-
XPath, it also contains an implementation of XPath that can be used
142
-
independently of XSLT. This implementation has the advantage that it
143
-
makes XSLT uniformly available whenever the browser's native `XSLTProcessor()`
140
+
XSLT-processor contains an implementation of XSLT in JavaScript. Because XSLT uses XPath, it also contains an implementation of XPath that can be used
141
+
independently of XSLT. This implementation has the advantage that it makes XSLT uniformly available whenever the browser's native `XSLTProcessor()`
144
142
is not available such as in Node.js or in web workers.
145
143
146
-
XSLT-processor builds on Google's [AJAXSLT](https://github.com/4031651/ajaxslt)
147
-
which was written before `XSLTProcessor()` became available in browsers, but the
148
-
code base has been updated to comply with ES2015+ and to make it work outside of
149
-
browsers.
144
+
XSLT-processor builds on Google's [AJAXSLT](https://github.com/4031651/ajaxslt) which was written before `XSLTProcessor()` became available in browsers, but the
145
+
code base has been updated to comply with ES2015+ and to make it work outside of browsers.
150
146
151
-
This implementation of XSLT operates at the DOM level on its input
152
-
documents. It internally uses a DOM implementation to create the
153
-
output document, but usually returns the output document as text
154
-
stream. The DOM to construct the output document can be supplied by
155
-
the application, or else an internal minimal DOM implementation is
156
-
used. This DOM comes with a minimal XML parser that can be used to
157
-
generate a suitable DOM representation of the input documents if they
158
-
are present as text.
147
+
This implementation of XSLT operates at the DOM level on its input documents. It internally uses a DOM implementation to create the
148
+
output document, but usually returns the output document as text stream. The DOM to construct the output document can be supplied by
149
+
the application, or else an internal minimal DOM implementation is used. This DOM comes with a minimal XML parser that can be used to
150
+
generate a suitable DOM representation of the input documents if they are present as text.
159
151
160
152
## Tests and usage examples
161
153
@@ -169,12 +161,13 @@ Both interactive tests and automatic tests demonstrate the use of the library fu
169
161
A few features that are required by the XSLT and XPath standards were left out (but patches to add them are welcome).
170
162
See our [TODO](TODO.md) for a list of missing features that we are aware of (please add more items by means of PRs).
171
163
164
+
So far, we have implemented XQuery functions for versions 1.0 and 2.0, but this is not complete yet.
165
+
172
166
Issues are also marked in the source code using throw-statements.
173
167
174
168
The DOM implementation is minimal so as to support the XSLT processing, and not intended to be complete.
175
169
176
-
The implementation is all agnostic about namespaces. It just expects
177
-
XSLT elements to have tags that carry the `xsl:` prefix, but we disregard all namespace declaration for them.
170
+
The implementation is all agnostic about namespaces. It just expects XSLT elements to have tags that carry the `xsl:` prefix, but we disregard all namespace declaration for them.
178
171
179
172
[There are a few nonstandard XPath functions](https://github.com/search?q=repo%3ADesignLiquido%2Fxslt-processor%20ext-&type=code).
0 commit comments