Skip to content

Commit ba32879

Browse files
Update README.md
1 parent ef15f21 commit ba32879

File tree

1 file changed

+12
-19
lines changed

1 file changed

+12
-19
lines changed

README.md

Lines changed: 12 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ const xslt = new Xslt(options);
8787
You can simply add a tag like this:
8888

8989
```html
90-
<script type="application/javascript" src="https://www.unpkg.com/xslt-processor@2.0.0/umd/xslt-processor.js"></script>
90+
<script type="application/javascript" src="https://www.unpkg.com/xslt-processor@2.1.0/umd/xslt-processor.js"></script>
9191
```
9292

9393
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
137137

138138
## Introduction
139139

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()`
144142
is not available such as in Node.js or in web workers.
145143

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.
150146

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.
159151

160152
## Tests and usage examples
161153

@@ -169,12 +161,13 @@ Both interactive tests and automatic tests demonstrate the use of the library fu
169161
A few features that are required by the XSLT and XPath standards were left out (but patches to add them are welcome).
170162
See our [TODO](TODO.md) for a list of missing features that we are aware of (please add more items by means of PRs).
171163

164+
So far, we have implemented XQuery functions for versions 1.0 and 2.0, but this is not complete yet.
165+
172166
Issues are also marked in the source code using throw-statements.
173167

174168
The DOM implementation is minimal so as to support the XSLT processing, and not intended to be complete.
175169

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.
178171

179172
[There are a few nonstandard XPath functions](https://github.com/search?q=repo%3ADesignLiquido%2Fxslt-processor%20ext-&type=code).
180173

0 commit comments

Comments
 (0)