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
Fixes in xsl:choose and xsl:copy-of + better docs (#90)
* Checking a corresponding `outputNode` in `xsltChoose` instead of using the `output` directly.
* - Resolving predence with `copy-of`;
- Improving `options.cData` documentation;
- Escaping text under `CDATA` as especified by XSLT CDATA spec.
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -74,6 +74,7 @@ const options = {
74
74
constxslt=newXslt(options);
75
75
```
76
76
77
+
-`cData` (`boolean`, default `true`): resolves CDATA elements in the output. Content under CDATA is resolved as text. This overrides `escape` for CDATA content.
77
78
-`escape` (`boolean`, default `true`): replaces symbols like `<`, `>`, `&` and `"` by the corresponding [XML entities](https://www.tutorialspoint.com/xml/xml_character_entities.htm).
78
79
-`selfClosingTags` (`boolean`, default `true`): Self-closes tags that don't have inner elements, if `true`. For instance, `<test></test>` becomes `<test />`.
79
80
-`outputMethod` (`string`, default `xml`): Specifies the default output method. if `<xsl:output>` is declared in your XSLT file, this will be overridden.
0 commit comments