Manuel,
You can include your .propertie file like so in the header of your
main file (the one with <!DOCTYPE ...) :
<!ENTITY % prop_file SYSTEM ".propertie.xml"> (be sure to make the
SYSTEM path correct)
%prop_file;
This will then allow you to call for any entity defined in
the .propertie file.
http://www.sagehill.net/docbookxsl/ModularEntities.html
Dave
On Mar 22, 2008, at 11:28 AM, Manuel Wallnoefer wrote:
Hi Dave !
Thx for your quick reply.
Yes i think this could help, but there is one problem.
My customer name is saved in a .propertie file externally.
In my documentation for example i have a file
- index.xml
- chapter1.xml
- chapter2.xml ... and so on
When i now want to use &customer_name in chapter1.xml i must define
the
<!ENTITY customer_name "Loves My Product"> in the header of my
chapter1.xml , am I right ?
If it is so, there is my problem. The .properties file where the
customer name is stored is generated right before i convert my docbook
files.
And so, the line <!ENTITY customer_name "customer name from .propertie
file"> has to be generated in a certain way.
Do you know what i mean ?
And so my question is how to do such things in docbook ?
Thanks for your help !
~manuel
Dave Cushman wrote:
Manuel,
It sounds like you are trying to include entities. For instance, you
would define the entity <!ENTITY customer_name "Loves My Product">,
then call for it in your document with &customer_name;. When you
convert, anywhere there is a call for &customer_name; the text "Loves
My Product" will appear. Does this help?
Dave
On Mar 22, 2008, at 9:19 AM, Manuel Wallnoefer wrote:
Hi all !
First of all i want to say that i'mnew to dockook. It's cool
stuff, now
i'm working on my master theses and there i have to generate my
documentation with docbook.
My problem now is, that in my docu , there must be some
"placeholder" in
the text, which are filled with a certain property at compile time.
These variable fields are something like the name of the customer,
or
the logo of the customer and so on ...
I have a .propertie file wher all my variables are stored. Now i
have to
bring them "into" my docbook docu.
A lot of variable things i solved with profiling attributes. But
such a
thing like placeholders i couldn't find up to now.
Whats the best way to do this ?
Thanks for help !
~manuel
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
open.org
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]