-
Notifications
You must be signed in to change notification settings - Fork 0
Docs MVC XSL OwnTemplates
Sometimes it is helpful to create your own XSL templates for recurring XSL structures you don't want to write again over and over. Including your own XSL templates requires two steps:
- Create a file xsl-imports.ini in the config directory of the project. The file should look like this:
[lib] another="another_package.star?another.xsl" [resources] local="master.xsl"
In the lib section you can add XSL stylesheets from any star file located in the lib directory. The key of the entry is not important, any name will fit as long as it is unique for the lib section. The value has to note the star file to include the stylesheet from as well as the path to the stylesheet inside the star file.
The resources section is for stylesheet files located in src/main/resources. The key of the entry is not important, any name will fit as long as it is unique for the resource section. The value has to note the stylesheet file to include.
- The second step is to create the stylesheet file.
The stylesheets will be importet into the default master.xsl and are therefore present when the stylesheet is generated which is applied to the result XML document.