[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference vaxuum::online_bookbuilding

Title:Online Bookbuilding
Notice:This conference is write-locked: see note 1.3.
Moderator:VAXUUM::UTT
Created:Fri Aug 12 1988
Last Modified:Mon Jul 15 1991
Last Successful Update:Fri Jun 06 1997
Number of topics:440
Total number of notes:2134

332.0. "Can't have 2 /condition=" by ZORBA::BURACK (Not Fade Away) Tue May 08 1990 11:05

    Hi,
    
    I know you can't set two conditions for a book, so what do you do?
    
    I have a book that sets a condition for the product (VAX DSM). On the
    copyright page is the orderbox that we don't need for online.
    
    I have conditionalized for my other books that don't have a 
    condition for the product. So there is no problem.
    
    I may be missing some simple solution... but the old brain can't
    think!
    
    thanks,
    
    Ruth-Ellen
    
    
T.RTitleUserPersonal
Name
DateLines
332.1Try this...CLOSET::GRANTI've saved $2467.50 since I quit smoking.Tue May 08 1990 11:5118
    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.2332.1 won't work for meZORBA::BURACKNot Fade AwayThu May 10 1990 11:2147
    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.3How 'bout this?RAGMOP::GRANTI&#039;ve saved $2470.50 since I quit smoking.Thu May 10 1990 14:2533
    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.4the way to set multiple conditions from the command lineMARKUP::DEVRIESBy their notes ye shall know themFri May 11 1990 12:534
    You can set multiple conditions externally by putting them all in an
    SDML file and using /INCLUDE=...
    
    Mark
332.5Using /INCLUDEMTWAIN::GOLDMANWed May 16 1990 12:1212
    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