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

charsubset use

ebheadrick
1-Newbie

charsubset use

I am relearning FOSI.... so sorry if this is a basic question. I am trying to clean up a FOSI that I have inherited.

I think I should be able to create:

<charsubset charsubsetid="xxx">

<att>

5 REPLIES 5

I guess I hit the wrong key way too many times...

<charsubset charsubsetid="xxx">

<att> <fillval ....=">

<charsubset> <reset ...="> ...

<att> <specval ...=">

</charsubset>

What I am trying to do is condense a group of attributes that appear on several tags into one place instead of multiple places in the FOSI. I know there must be a way to do this, but I don't think I am remembering the correct way.

Thanks for any help.

Ellen

Well of course this doesn't work <att> isn't in the data model for charsubset! (it took me a while to find the DTD)

I guess an entity would be one way to go. I need to get those cobwebs out of my FOSI memory.

Sorry to bug you.

On Tue, Dec 2, 2008 at 4:05 PM, Ellen Headrick
<ellen.headrick@jeppesen.com>wrote:

> Well of course this doesn't work <att> isn't in the data model for
> charsubset! (it took me a while to find the DTD)
>
> I guess an entity would be one way to go. I need to get those cobwebs out
> of my FOSI memory.
>
Hi Ellen,
We do use entities defined in our FOSI to reduce code used over and over
again. Here's one example:

<specval attname="format-type.txt" attloc="#FOSI" attval="a4">
<charsubset>
<textbrk startpg="recto" pageid="a4bodypage" newpgmdl="global" startln="1"&lt;br"/>endln="1">
</charsubset>
</att>
<att>
<specval attname="format-type.txt" attloc="#FOSI" attval="#NONE">
<charsubset>
<textbrk startpg="recto" pageid="a4bodypage" newpgmdl="global" startln="1"&lt;br"/>endln="1">
</charsubset>
</att>
<att>
<specval attname="format-type.txt" attloc="#FOSI" attval="us">
<charsubset>
<textbrk startpg="recto" pageid="usbodypage" newpgmdl="global" startln="1"&lt;br"/>endln="1">
</charsubset>
</att>'>

This code starts a new A4 page UNLESS an element <us_letter> is present at
the top of the document (that code not shown here ... it's just a simple
e-i-c ... also not shown is that format-type.txt is initialized to "a4").

&bodypage; is included in every e-i-c that starts a new page.

--
Paul Nagai

Ellen,

Define your style sets as the first things in your <styldesc> section of
your FOSI. Give each one an charsubsetid as such as "sanserif8.csub"
below (I copied this from a military FOSI):

<charsubset charsubsetid="sanserif8.csub">

<quadding inherit="0" quad="left" lastquad="relative">
<presp minimum="3pt" nominal="10pt" maximum="12pt" priority="med">
<postsp minimum="3pt" nominal="10pt" maximum="18pt" condit="keep"&lt;br"/>priority="med">
</charsubset>

Then use the style sets in your fosi e-i-c's by referring to the style
set created:

<e-i-c gi="authnot" context="idinfo" occur="all">
<charlist inherit="0" charsubsetref="sanserif8.csub">
<suppress sup="1">
</charlist>
</e-i-c>

or use it with additional formatting as shown below (explicit formatting
will override that in the charsubsetref):

<usetext source="cogact.tdv[BO]">
<subchars charsubsetref="sanserif8.csub">
<quadding inherit="0" quad="center">
<textbrk startln="1" endln="1">
</subchars>
</usetext>
<usetext source="copyright.tdv[BO]">
<subchars charsubsetref="sanserif8.csub">
<quadding inherit="0" quad="center">
<textbrk startln="1" endln="1">
</subchars>
</usetext>
<usetext source="authnot.tdv[BO]">
<subchars charsubsetref="sanserif8.csub">
<quadding inherit="0" quad="center">
<textbrk startln="1" endln="1">
</subchars>
</usetext>

Does this begin to tickle your memory?

-Andy
\ / Andy Esslinger LM Aero Tech Order Data
_____-/\-_____ (817) 279-0442 Box 748, Mail Zone 4285
\_\/_/ (817) 777 3047 Ft. Worth, TX 76101-0748


Yes I think I will go with the entity route seems the best solution for what I want to do.

Thanks,
Ellen

Announcements