head element, specifying a list of specific articles to add at the beginning of this chapterdefaultExclude attribute at the top-level element allows to specify that articles which are in no chapter will not be present in the document.
excludePackage element. The element has the following attribute:category element. The element has the following attribute:<chapter name="chapter1"> <category name="category1 category2" /> </chapter>
excludeCategory element. The element has the following attributes:<chapter name="chapter1"> <category name="category1" /> <excludedCategory name="category2" /> </chapter>In this case, if an article belongs to "category1" and "category2", it will be included in the list of articles for the chapter.
<chapter name="chapter1"> <category name="category1" /> <excludedCategory name="category2" strict="true" /> </chapter>In this case, if an article belongs to "category1" and "category2", it will not be included in the list of articles for the chapter.
<article name="article name" />or for an article which belongs to a package:
<article name="article name" package="the package name" />For excluded articles:
<excludedArticle name="article name" />or for an excluded article which belongs to a package:
<excludedArticle name="article name" package="the package name" />
<documentContent> <chapter name="chapter1"> <category name="category1" /> <article name="article 5" /> </chapter> <documentContent>In this case, if we have several articles of the category
category1, they will appear after the article article_5.
keepOrder attribute for the root documentContent element allows to keep the order of articles which are specifically specified for each chapter. For example:<documentContent keepOrder="true"> <chapter name="first chapter"> <article name="article d" /> <article name="article b" /> <category name="general" /> </chapter> <chapter name="second chapter"> <category name="general2" /> </chapter> </documentContent>In that case "article d" will be the first article in the first chapter, and "article b" the second article in the chapter.
keepOrder attribute is not set to true. For example here the "article 3" and "article 6" aeticlew will follow each other:<documentContent> <chapter name="chapter1"> <category name="category1" /> <articlesList> <article name="article 3" /> <article name="article 6" /> </articlesList> </chapter> </documentContent>Note that this is not necessary to use
articlesList elements if the keepOrder attribute is set to true, because in that case the order of articles which are specifically specified for each chapter will be kept.
<documentContent> <chapter name="chapter1"> <package name="pack" /> <category name="category1" /> <excludedCategory name="category2" /> <article name="article 5" /> <excludedArticle name="article 2" /> </chapter> <documentContent>Then to add an article to this chapter:
category1, or it must be the article article_5category2packarticle_2<documentContent> <category name="category3" /> <category name="category1" /> <category name="category4" /> <category name="category2" /> <chapter name="chapter1"> <category name="category1" /> <category name="category2" /> <article name="article 5" /> </chapter> <chapter name="chapter2"> <category name="category3" /> </chapter> <documentContent>
<documentContent> <category name="category3" /> <category name="category1" /> <category name="category4" /> <category name="category2" /> <chapter name="chapter1"> <category name="category1" /> <chapter name="chapter3"> <category name="category2" /> <articlesList> <article name="article 3" /> <article name="article 6" /> </articlesList> </chapter> </chapter> <chapter name="chapter2"> <category name="category3" /> </chapter> </documentContent>
<documentContent> <category name="category3" /> <category name="category1" /> <category name="category4" /> <category name="category2" /> <chapter name="chapter1"> <category name="category1" /> <chapter name="chapter3"> <category name="category2" /> <head> <article name="article 3" /> <article name="article 6" /> </head> </chapter> </chapter> <chapter name="chapter2"> <category name="category3" /> </chapter> </documentContent>
<documentContent defaultExclude="true"> <category name="category3" /> <category name="category1" /> <category name="category4" /> <category name="category2" /> <chapter name="chapter1"> <category name="category1" /> <excludeCategory name="category2" /> <article name="article 5" /> <article name="article 5" /> <excludeArticle name="article 6" /> </chapter> <chapter name="chapter2"> <category name="category3" /> </chapter> <documentContent>
docJGenerator Copyright (c) 2016-2023 Herve Girod. All rights reserved.