Skip to content

Commit f81f84c

Browse files
Update README.md
1 parent 65bc145 commit f81f84c

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,19 +65,24 @@ You can pass an `options` object to `Xslt` class:
6565

6666
```js
6767
const options = {
68-
escape: false
68+
escape: false,
69+
properties: [{ name: 'myparam', value: '123' }]
6970
};
7071
const xslt = new Xslt(options);
7172
```
7273

73-
- `escape` (`boolean`, default `true`): replaces symbols like `<`, `>`, `&` and `"` by the corresponding [XML entities](https://www.tutorialspoint.com/xml/xml_character_entities.htm).
74+
- `escape` (`boolean`, default `true`): replaces symbols like `<`, `>`, `&` and `"` by the corresponding [XML entities](https://www.tutorialspoint.com/xml/xml_character_entities.htm).
75+
- `parameters` (`array`, default `[]`): external parameters that you want to use.
76+
- `name`: the parameter name;
77+
- `namespaceUri` (optional): the namespace;
78+
- `value`: the value.
7479

7580
### Direct use in browsers
7681

7782
You can simply add a tag like this:
7883

7984
```html
80-
<script type="application/javascript" src="https://www.unpkg.com/[email protected].2/umd/xslt-processor.js"></script>
85+
<script type="application/javascript" src="https://www.unpkg.com/[email protected].4/umd/xslt-processor.js"></script>
8186
```
8287

8388
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).

0 commit comments

Comments
 (0)