Categories > OpenTBS with ODT >

Multi page document with one template odt

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: damien
Date: 2014-07-29
Time: 11:45

Multi page document with one template odt

Hello everyone,

I have a problem. Actually I would like to generate a multi-page odt document based on a template.
I've tried the subblocks but it fails...
The basic odt template is as follow:

[asb;block=begin;sub1=matches]
[asb_sub1.#] [asb_sub1.town;] [asb_sub1.score;]
[asb;block=end]

When I generate my document with that code only, no problem. Everything goes well.

The problem stands when I want to integrate the code to my real template.

In my real template, I put "[asb;block=begin;sub1=matches]" to the beginning of the document, I put "[asb_sub1.#] [asb_sub1.town;] [asb_sub1.score;]" in the middle.
In the end of the document "[asb;block=end] ".

I was really happy, I really thought it was gonna work but... unfortunately not. There's an error when opening my generated document.

Could somebody give me some help?

In fact, what I would like to do is to put my entire document between the [block=...] [block=...] but I don't know how.

Could somebody give me some advice please?

A big thank in advance.

PS: Sorry for my bad english, I'm a frenchguy :-)!

By: Skrol29
Date: 2014-07-30
Time: 22:14

Re: Multi page document with one template odt

Bonjour Damien,

Using "block=begin" and "block=end" may split the inner XML entities.
It is better to use the relative syntax.

You should try with "block=tbs:page".
By: Thy
Date: 2015-10-28
Time: 11:34

Re: Multi page document with one template odt

Bonjour Damien

As-tu pu avoir une solution à ton problème ? J'aurai le même besoin.
J'utilise un fichier *ott comme fichier de template

merci par avance