T.R | Title | User | Personal Name | Date | Lines |
---|
763.1 | Questions. | VAXUUM::CORMAN | | Thu Aug 06 1987 15:20 | 8 |
| Jerry:
Can you specify the command line(s) that you use to process
the different versions of your book?
Also, have you included <condition> tags in the chapters, themselves?
(I think you have to, but I'm no expert on this).
-Barbara
|
763.2 | exit | CHGV04::PROCTOR | Jerry Proctor | Thu Aug 06 1987 16:44 | 90 |
| Barbara,
I am compiling a single book and I am not setting any conditions on
the command line. They are imbedded in the profile. The command line
that I use is as follows:
$ DOCUMENT/SYM=VPOS_DEFINES.SDML VPOS_PRO SOFT.REF LN03
^ ^
| |
My symbol file The profile itself
The profile that I am using looks something like this:
<PROFILE>
<ELEMENT>(VPOS00_FRONT_MATTER.SDML)
<ELEMENT>(VPOS01_INTRODUCTION.SDML)
<ELEMENT>(VPOS02_MANAGEMENT_SUMMARY.SDML)
<ELEMENT>(VPOS06_PREDELIVERY.SDML)
<SET_CONDITION>(ANAL_COND)
<ELEMENT>(VPOS07_00PART3.SDML)
<ELEMENT>(VPOS07_00PART4.SDML)
<ELEMENT>(VPOS07_INITIAL_VISIT.SDML)
<ELEMENT>(VPOS08_RETURN_VISITS.SDML)
<ELEMENT>(VPOS09_ANALYSIS_REPORT.SDML)
<SET_CONDITION>(ANAL_COND\REMOVE)
<SET_CONDITION>(OPT_COND)
<ELEMENT>(VPOS07_00PART5.SDML)
<ELEMENT>(VPOS07_INITIAL_VISIT.SDML)
<ELEMENT>(VPOS08_RETURN_VISITS.SDML)
<ELEMENT>(VPOS09_ANALYSIS_REPORT.SDML)
<SET_CONDITION>(OPT_COND\REMOVE)
<SET_CONDITION>(CAP_MGMT_COND)
<ELEMENT>(VPOS07_00PART6.SDML)
<ELEMENT>(VPOS07_INITIAL_VISIT.SDML)
<ELEMENT>(VPOS08_RETURN_VISITS.SDML)
<ELEMENT>(VPOS09_ANALYSIS_REPORT.SDML)
<SET_CONDITION>(CAP_MGMT_COND\REMOVE)
<ELEMENT>(VPOS10_00PART7.SDML)
<ELEMENT>(VPOS10_PROGRESS_REPORTS.SDML)
<ELEMENT>(VPOSA0_BACK_MATTER.SDML)
<ELEMENT>(VPOSAA_SUGGESTED_READING.SDML)
<ENDPROFILE>
------------------------------------------------------------------
In chapters 07, 08 and 08 I inbed contitionals like the following:
------------------------------------------------------------------
<CHAPTER>(Initial Visit for
<CONDITION>(ANAL_COND)<REFERENCE>(ANAL)<ENDCONDITION>
<CONDITION>(OPT_COND)<REFERENCE>(OPT)<ENDCONDITION>
<CONDITION>(CAP_MGMT_COND)<REFERENCE>(CAP_MGMT)<ENDCONDITION>
\Chapt_Initial_Visit)
<CONDITION>(ANAL_COND\OPT_COND)
<P>
If appropriate, point out to the customer that long-term tuning,
or pro-active tuning, is the preferred method of handling
performance in the VMS environment. Short-term tuning only
addresses the current state of the system. In theory, as changes
are made to the system, re-analysis should be performed.
<ENDCONDITION>
------------------------------------------------------------------
...and...
------------------------------------------------------------------
<EMPHASIS>(Estimated Effort:\BOLD)
<CP>
<CONDITION>(ANAL_COND)
3 hours
<ENDCONDITION>
<CONDITION>(OPT_COND)
4 hours
<ENDCONDITION>
<CONDITION>(CAP_MGMT_COND)
5 hours
<ENDCONDITION>
------------------------------------------------------------------
I am still trying to get it to work with no success so I am wondering
if I am trying to do something that can not be done or is is just my lack
of DOCUMENT expertise?
Thanks,
Jerry
|
763.3 | Maybe multiple conditions is the problem? | COOKIE::JOHNSTON | | Thu Aug 06 1987 17:14 | 7 |
| Multiple conditions didn't work in BL8; should have been fixed for V1.0,
but this might be your problem. Try commenting out the multiple
conditions; see if it works for single conditions.
Rose
|
763.4 | Still confused about conditionals | CHGV04::PROCTOR | Jerry Proctor | Thu Aug 06 1987 20:04 | 36 |
|
>Multiple conditions didn't work in BL8; should have been fixed for V1.0,
>but this might be your problem. Try commenting out the multiple
>conditions; see if it works for single conditions.
The multiple conditions are working fine when I compile the chapters
off individually. And I'm using the latest DOCUMENT V1.0.
The problem is still when I go to compile the entire book, the multiple
references in the profile of the same file does not work. Here is
a simplified example:
file_pro.sdml
|
V
<PROFILE>
<ELEMENT>front_matter.sdml file1.sdml
<SETCONDITION>(COND1) |
<ELEMENT>(file1.sdml) <-- v
<ENDCONDITION> |-- <CHAPTER>(
<SETCONDITION>(COND2) | <CONDITION>(COND1)VAX/VMS<ENDCONDITION>
<ELEMENT>(file1.sdml) <-- <CONDITION>(COND2)RSX-11<ENDCONDITION>
<ENDCONDITION> Overview\CHAPT_OVERVIEW)
<ELEMENT>(back_matter.sdml) <P>This chapter is an overview of
<ENDPROFILE> <CONDITION>(COND1)VAX/VMS<ENDCONDITION>
<CONDITION>(COND2)RSX-11<ENDCONDITION>.
$ DOCUMENT FILE_PRO SOFT.REF LN03
Is there any way to make this work or perform the same function?
Thanks for any help,
Jerry
|
763.5 | it isn't quite so complicated. | VAXUUM::KOHLBRENNER | | Mon Aug 10 1987 14:41 | 30 |
| Jerry,
The profile that you show has only <SET_CONDITION> tags, and
no <CONDITION>...<ENDCONDITION> tags.
So your profile is actually including the four conditionalized
files three separate times. In effect, the tag translator is
seeing 12 files. Each of these files has to be an element
of the book, that is, it has to have a <chapter>(blah\symb)
tag. Each of the twelve elements has to have a different symbol,
else DOCUMENT won't be able to tell the chapters apart. But
you have not conditionalized the symbol argument to the chapter
tag, so when you pull in the same file three times, you are
supplying the same chapter symbol three times.
Judging from the example that you supplied of how the chapters
themselves have been coded, I think you can simply remove all
the <set_condition> tags from the profile, remove the <element>
tags that reference the chapters for the second and third times,
(so each element file is referenced only once).
Then use the /CONDITION=xxx qualifier when you process the book.
(The /CONDIITON qualifier is misleading in its name. Think of it
as /SET_CONDITION, since that is what it does.)
bill
That's might OK in itself, provided the <CONDITION> ... <ENDCONDITION>
tags made the intervening
|
763.6 | tch, sloppy editing | VAXUUM::KOHLBRENNER | | Mon Aug 10 1987 14:43 | 2 |
| Please ignore the last two lines of garbage in the preceding reply.
|