cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

FOSI Generated TOC Problem

seanscott
1-Newbie

FOSI Generated TOC Problem


Hi Adepter's,



I have one circumstance where an incorrect
page number is appearing in our FOSI generated TOC. Let's say that I have
the following mark-up and this mark-up composes to be on the same printed
page:




<part>

<subtopic>,,,,</subtopic>

<section>

<subtopic></subtopic>

</section>

</part>



And our folio (page number) consists
of following:


(part no.)-(section no.)-(page no.)



The situation is this, both subtopic's
appear on the same FOSI generated page of 1-1-1 (Part 1, Section 1, Page
1). However, the FOSI generated page number in the TOC for the first subtopic
(located directly before section in the SGML file) is 1-1 (Part 1, Page
1) which is incorrect as it should be 1-1-1. The FOSI generated TOC page
number for the second subtopic is 1-1-1, which is correct.




At the time the TOC savetext is performed
for the first subtopic, the section count is at 0 so I though if I used
the string variable modifier BO for the section count variable in the savetext,
this problem would be solved. But alas, no cigar. I'm sure that there is
some simple solution to this problem but on the other hand, I could be
dreaming. Any help would be appreciated.




Thanks,

Sean



This is an e-mail from General Dynamics Land Systems. It is for the intended recipient only and may contain confidential and privileged information. No one else may read, print, store, copy, forward or act in reliance on it or its attachments. If you are not the intended recipient, please return this message to the sender and delete the message and any attachments from your computer. Your cooperation is appreciated.
5 REPLIES 5

For
your folio count, do you have a single savetext, such as folio.txt, for which
the conrule is your [part count]-[section count]-[page counter]? Or do you
just put [part count]-[section count]-[page count] on each page? if you do
the latter, try saving all three counters together as one text variable, and
then using that in your TOC, maybe with a [BO} modifier if that works
better. If this doesn't describe what's happening, I think maybe we might
need a little more FOSI code posted.



face=Tahoma size=2


Thanks Ed.



I got it work but I'm not sure why.
We actually have a couple savetexts being used and both their conrules
are creating the folio strings from seperate counters. One savetext is
located within the folio resources of the page spec whose savetext is later
used as a usetext to output the page number at the bottom of every page.
The other savetext is part of the applicable e-i-cs and is responsible
for populating the FOSI generated TOC. The following savetext is part of
the subtopic e-i-c and is not including the section number in the folio
for the subtopic that is before the section. It is however saving the correct
folio with section count for the subtopic that appears directly after the
section. Both subtopics appear on the same page 1-1-1.




<savetext textid="toc.txt"&lt;br"/>conrule="<toc-level2a.fmt>,<toc-english.fmt>,entitle.txt,2pt,tocfill,partct.txt,sectct.txt[BO],en-pagect.txt[BO],</toc-english.fmt>,</toc-level2a.fmt>"

placemnt="after" append="1">





Now, when I replace the "parct.txt,sectct.txt[BO],en-pagect.txt[BO]"
of the above savetext with "enpg.txt[BO]" which is the variable
that is saved in the folio resources of the page spec, I get the correct
page number of 1-1-1 in the TOC for the first subtopic.




The following is the savetext in the
folio resources for enpg.txt[BO]




<savetext textid="enpg.txt"&lt;br"/>conrule="partct.txt[BO],sectct.txt[BO],en-page.ct">



Sean






















<table width="100%">
<tr valign="top">
<td width="40%">"Benton, Ed L"
<->

09/20/2005 07:21 AM
<table border=">
<tr valign="top">
<td bgcolor="white">
Please respond to

<adepters@arbortext.com>
</table>


<td width="59%">
<table width="100%">
<tr valign="top">
<td>
To

<td>adepters@arbortext.com
<tr valign="top">
<td>
cc

<td>
<tr valign="top">
<td>
Subject

<td>RE: FOSI Generated TOC Problem</table>


<table>
<tr valign="top">
<td>
<td></table>

</table>







For your folio count, do you have a single savetext,
such as folio.txt, for which the conrule is your [part count]-[section
count]-[page counter]? Or do you just put [part count]-[section
count]-[page count] on each page? if you do the latter, try
saving all three counters together as one text variable, and then
using that in your TOC, maybe with a [BO} modifier if that works better.
If this doesn't describe what's happening, I think maybe we might need
a little more FOSI code posted.



Sean,

]

In your first <savetext> you might
want to try this change




original:

<toc-english.fmt>,entitle.txt,2pt,tocfill,partct.txt,sectct.txt[BO],en-pagect.txt[BO],</toc-english.fmt>



changed



<toc-english.fmt>,entitle.txt[BO],2pt,tocfill[BO],partct.txt[BO],sectct.txt[BO],en-pagect.txt[BO],</toc-english.fmt>



I'd try the partct.txt change first and see what happens.




Lynn


Hi Lynn,



I gave this a shot but it didn't work.
It's working now anyway so I'm happy.




Thanks,

Sean










<table width="100%">
<tr valign="top">
<td width="40%">Lynn Hales <lhales@csc.com>

09/21/2005 07:14 AM
<table border=">
<tr valign="top">
<td bgcolor="white">
Please respond to

<adepters@arbortext.com>
</table>


<td width="59%">
<table width="100%">
<tr valign="top">
<td>
To

<td><adepters@arbortext.com>
<tr valign="top">
<td>
cc

<td>
<tr valign="top">
<td>
Subject

<td>RE: FOSI Generated TOC Problem</table>


<table>
<tr valign="top">
<td>
<td></table>

</table>







Sean,

]

In your first <savetext> you might want to try this
change




original:

<toc-english.fmt>,entitle.txt,2pt,tocfill,partct.txt,sectct.txt[BO],en-pagect.txt[BO],</toc-english.fmt>




changed



<toc-english.fmt>,entitle.txt[BO],2pt,tocfill[BO],partct.txt[BO],sectct.txt[BO],en-pagect.txt[BO],</toc-english.fmt>



I'd try the partct.txt change first and see what happens.




Lynn

---------------------------------------------

This is a PRIVATE message. If you are not the intended
recipient, please delete without copying and kindly advise us by e-mail
of the mistake in delivery. NOTE: Regardless of content, this e-mail shall
not operate to bind CSC to any order or other contract unless pursuant
to explicit written agreement or government initiative expressly permitting
the use of e-mail for such purpose.


---------------------------------------------








<table width="100%">
<tr valign="top">
<td width="1%">
<td width="23%">scottsg

@gdls.com



09/20/2005 11:14 AM

Please respond to adepters
<td width="74%">

To: <adepters@arbortext.com>


cc:


Subject:
RE: FOSI Generated TOC Problem
</table>







Thanks Ed.



I got it work but I'm not sure why. We actually have a
couple savetexts being used and both their conrules are creating the folio
strings from seperate counters. One savetext is located within the folio
resources of the page spec whose savetext is later used as a usetext to
output the page number at the bottom of every page. The other savetext
is part of the applicable e-i-cs and is responsible for populating the
FOSI generated TOC. The following savetext is part of the subtopic e-i-c
and is not including the section number in the folio for the subtopic that
is before the section. It is however saving the correct folio with section
count for the subtopic that appears directly after the section. Both subtopics
appear on the same page 1-1-1.




<savetext textid="toc.txt" conrule="&lt;toc-level2a.fmt">,<toc-english.fmt>,entitle.txt,2pt,tocfill,partct.txt,sectct.txt[BO],en-pagect.txt[BO],</toc-english.fmt>,</toc-level2a.fmt>"


placemnt="after" append="1">






Now, when I replace the "parct.txt,sectct.txt[BO],en-pagect.txt[BO]"
of the above savetext with "enpg.txt[BO]" which is the variable
that is saved in the folio resources of the page spec, I get the correct
page number of 1-1-1 in the TOC for the first subtopic.





The following is the savetext in the folio resources for
enpg.txt[BO]




<savetext textid="enpg.txt" conrule="partct.txt[BO],sectct.txt[BO],en-page.ct">



Sean




















<table width="100%">
<tr valign="top">
<td width="53%">"Benton, Ed L" <->




09/20/2005 07:21 AM


<table border="4" width="100%">
<tr valign="top">
<td width="100%">
Please respond to

<adepters@arbortext.com>
</table>






<td width="46%">
<table width="100%">
<tr valign="top">
<td width="18%">
To

<td width="81%">adepters@arbortext.com
<tr valign="top">
<td>
cc

<td>
<tr valign="top">
<td>
Subject

<td>RE: FOSI Generated TOC Problem</table>




<table width="100%">
<tr valign="top">
<td width="49%">
<td width="50%"></table>



</table>









For your folio count, do you have a single savetext,
such as folio.txt, for which the conrule is your [part count]-[section
count]-[page counter]? Or do you just put [part count]-[section
count]-[page count] on each page? if you do the latter, try
saving all three counters together as one text variable, and then
using that in your TOC, maybe with a [BO} modifier if that works better.
If this doesn't describe what's happening, I think maybe we might
need a little more FOSI code posted.



That's the important thing. FOSI
works in mysterious ways. 🙂




Lynn

"To err is human, to really foul
things up requires a computer."
Announcements