forked from kcl-ddh/kiln
-
Notifications
You must be signed in to change notification settings - Fork 38
Creating a new edition structure template
simonastoyanova edited this page Sep 25, 2017
·
9 revisions
There are 5 steps you need to make in order to create your own edition structure:
- Create a template in webapps/ROOT/assets/templates/ by making a copy of an existing one that you find to be the closest to what you want to achieve. Rename it following the pattern for epidoc templates - epidoc-*.xml and in it change all references from old name to new name.
- In webapps/ROOT/kiln/stylesheets/epidoc copy one of the htm-tpl-struct-*.xsl and change the name to include your new template name and within that file change all instances of old name to new name.
- In the same folder open start-edition.xsl and in it copy the xsl:include to point to your new stylesheet name.
- Still in the same file duplicate one of the tests changing its name to our new edition structure name and adding a call template to it - e.g.
<xsl:call-template name="*-structure">
and copy all of its params as well. - In config.xmap in webapps/ROOT/sitemaps/ change the
<epidoc-edn-structure>
's content to your new template name.
You can now edit your new stylesheet to make any changes you want to have in there.