<article desc="root article"> The Article. <title title="the top level title" /> <include id="template article" /> </article>and for the template:
<template desc="template article"> The template. <title title="template title" /> </template>You will have the same result as:
<article desc="root article"> The Article. <title title="the top level title" /> The template. <title title="template title" /> </article>If you set the value
false
to the keepLevels
or keepNumbering
attribute in the include element, the generator will make sure that titles in the template are under those in the calling article[1]
<article desc="root article"> The Article. <title title="the top level title" /> <include id="template article" keepLevels="false"/> </article>You will have the same result as:
<article desc="root article"> The Article. <title title="the top level title" /> The template. <title level="2" title="template title" /> </article>
<template desc="my template"> This is a very simple template. <title title="template title" /> </template>Usage example:
<article desc="an article"> This is a very simple article. <include id="my template" /> <see id="anotherArticle" desc="the other linked article" text="example of a SeeAlso element" /> <cat id="myCategory" /> </article>
include
, and one include
has the keepLevels
or keepNumbering
attribute set toe false
, the children include
elements will also be processed as if their values for this attribute is false
.<article desc="root article"> The Article. <title title="the top level title" /> <include id="template article" keepLevels="false"/> </article>
docJGenerator Copyright (c) 2016-2023 Herve Girod. All rights reserved.