Unit Test: book.021

Norman Walsh

Preface

This test demonstrates something a little bit confusing. Although we can toggle article numeration, it has no apparent effect. That’s because there’s also a localization component to numeration and in the (“en”) localization, numbered articles don’t have a label. This is either a bug or a design choice, I guess. But you can fix it changing the self::db:article template in the “title-numbered” part of the localization to:

  |<template match="self::db:article">%l%.%c</template>

First Article

This article is numbered, so are its sections.

1First section

1.1Second section

Second Article

This article is not numbered, neither are its sections.

First section

Second section

Third Article

This article is numbered, its sections are not.

First section

Second section

Fourth Article

This article is not numbered, but its sections are.

1First section

1.1Second section