T.R | Title | User | Personal Name | Date | Lines |
---|
332.1 | Try this... | CLOSET::GRANT | I've saved $2467.50 since I quit smoking. | Tue May 08 1990 11:51 | 18 |
| Hi,
When I've needed to have multiple conditions I've put a
<SET_CONDITION> tag within the <CONDITION>/<ENDCONDITION> tags. For
example, let's say I want hardcopy and online versions of a book.
Sometimes I want the online version to have numbered heads and
sometimes I don't. Within the .SDML file I'd have the following:
<CONDITION>(ONLINE_UNNUMB)
<SET_CONDITION>(ONLINE)
<UNNUMBERED_HEADS>
<END_CONDITION>
Then, when I want unnumbered heads, I use /CONDITION=ONLINE_UNNUMB on
the command line. Otherwise, for online I'd use /CONDITION=ONLINE.
Hope this helps...
Wayne
|
332.2 | 332.1 won't work for me | ZORBA::BURACK | Not Fade Away | Thu May 10 1990 11:21 | 47 |
|
Hi,
332.1 doesn't solve my problem, because you are still only setting one
condition each time you run the book with the /CONDITION= qualifer.
I need to have 2 conditions at the same time.
I have: <condition>(vdsm)
<define_symbol>(VAX\VAX DSM)
<endcondition>
and
<condition>(d11)
<define_symbol>(VAX\DSM-11)
<endcondition>
So, on the document command line I use /CONDITION=VDSM when I want
VAX DSM and /CONDITION=D11 when I want DSM-11. You can't do two
conditions with /CONDITION in any way or form!
But, I need to exclude some text on the copyright page for online.
To get the copyright page right for online... I did the following:
In the copyright.sdml file I used <set_condition>(hardcopy) and
<condition>(hardcopy)
.
.
.
<endcondition>
around any text that was just for hardcopy. The pain is that to get this to
run for online, you have to <comment>(<set_condition>(hardcopy)) to get
online.reference to then ignore <condition>(hardcopy). Then, for hardcopy,
remove the comment tag to get the copyright page correct.
I don't see any other way to do it for now.
Actually, I think the problem is in the doctypes and what gets
included on the copyright page automatically and what is actually
in the file.
Ruth-Ellen
|
332.3 | How 'bout this? | RAGMOP::GRANT | I've saved $2470.50 since I quit smoking. | Thu May 10 1990 14:25 | 33 |
| How about having 4 conditions:
1. \CONDTION=VDSM_ONLINE
2. \CONDTION=VDSM_HARDCOPY
3. \CONDTION=D11_ONLINE
4. \CONDTION=D11_ONLINE
Then, in the .SDML file:
<condition>(VDSM_ONLINE)
<set_condition>(ONLINE)
<define_symbol>(VAX\VAX DSM)
<endcondition>
<condition>(VDSM_HARDCOPY)
<set_condition>(HARDCOPY)
<define_symbol>(VAX\VAX DSM)
<endcondition>
<condition>(VDSM_ONLINE)
<set_condition>(ONLINE)
<define_symbol>(VAX\DSM-11)
<endcondition>
<condition>(VDSM_HARDCOPY)
<set_condition>(HARDCOPY)
<define_symbol>(VAX\DSM-11)
<endcondition>
This should eliminate the need to edit your .SDML file when changing
the destination.
Good luck,
Wayne
|
332.4 | the way to set multiple conditions from the command line | MARKUP::DEVRIES | By their notes ye shall know them | Fri May 11 1990 12:53 | 4 |
| You can set multiple conditions externally by putting them all in an
SDML file and using /INCLUDE=...
Mark
|
332.5 | Using /INCLUDE | MTWAIN::GOLDMAN | | Wed May 16 1990 12:12 | 12 |
| We used a variation of the solution proposed in .4 and it worked.
We conditionalized the individual SDML files for four conditions:
VMS, ULTRIX, HARDCOPY, and ONLINE. We created SDML files for
HARDCOPY and ONLINE and kept them in the same directory as the
book we were building. For example the SDML file for HARDCOPY
was <SET_CONDITION>(HARDCOPY).
To build the book, the command line included /CONDITION=VMS (or
ULTRIX) and /INCLUDE=HARDCOPY (or ONLINE).
Eliot
|