Skip to content

Commit 260f0d5

Browse files
committed
Add support for <?xsl-output default="path"?>
1 parent 16518bf commit 260f0d5

File tree

16 files changed

+7999
-9109
lines changed

16 files changed

+7999
-9109
lines changed

docs/help/xslt.md

+26-11
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
## XSLT Transformation
22

3-
The `XSL Output` tab on the main window provides a rendering of the XSLT
4-
output from the specified XSLT stylesheet. XSLT stylesheets can be referenced
5-
in the XML document using this syntax, as shown in the `hamlet.xml` sample.
3+
The `XSL Output` tab on the main window provides a rendering of the
4+
XSLT output from the specified XSLT stylesheet. XSLT stylesheets can
5+
be referenced in the XML document using this syntax, as shown in the
6+
`hamlet.xml` sample.
67

78
```xml
89
<?xml-stylesheet type="text/xsl" href="willy.xsl"?>
@@ -13,14 +14,28 @@ in the XML document using this syntax, as shown in the `hamlet.xml` sample.
1314
You can also enter your own XSLT file name on this tab by changing the
1415
contents of the XSLT Location field at the top of the XSLT output tab.
1516

16-
By default the HTML output is written to your system `%TEMP%` folder
17-
but you can change that in the Output: text box.
17+
By default the HTML output is written to the same folder that contains
18+
your XML file, but if that folder is not writable it writes to that
19+
folder it will use your system `%TEMP%` folder.
1820

19-
If you modify the XML or XSLT file you can press the `Transform` button
20-
to perform another XSLT transformation and the changes will be rendered.
21+
You can customize the default output file name by adding the following
22+
additional processing instruction to your XML document:
2123

22-
This tab supports 2 different web browser engines. The original WinForms
23-
web browser and the new Chromium based WebView2. The new WebView2 control
24-
is much faster on large XSLT outputs.
24+
```xml
25+
<?xsl-output default="hamlet"?>
26+
```
27+
28+
Then depending on the `<?xsl-output method="..."` the appropriate file
29+
extension will be added. You can also override this by directly
30+
editing the Output: text box. If you modify the XML or XSLT file you
31+
can press the `Transform` button to perform another XSLT
32+
transformation and the changes will be rendered.
33+
34+
This tab supports 2 different web browser engines. The original
35+
WinForms web browser and the new Chromium based WebView2. The new
36+
WebView2 control is much faster on large XSLT outputs.
2537

26-
XML Notepad does not automatically install this new WebView2 component. Please see [Microsoft Edge WebView2](https://docs.microsoft.com/en-us/DeployOffice/webview2-install) for information on how to install this optional component.
38+
XML Notepad does not automatically install this new WebView2
39+
component. Please see [Microsoft Edge
40+
WebView2](https://docs.microsoft.com/en-us/DeployOffice/webview2-install)
41+
for information on how to install this optional component.

0 commit comments

Comments
 (0)