On 9/7/07, Ketelsen, JR <jr.ketelsen@flatironssolutions.com> wrote:
>
> Paul;
>
> Thanks for your advice.
>
> I actually tried the division ref approach before I posted.
>
> I must be missing something. Section is a division, but inserting the
> division reference has no effect on the printed output. The division ref
> simply does not appear in the header. Regardless of how I set the values
> (first on page, last, etc.) title is styled as title. TOC works as
> expected.
>
I know that you can disrupt the underlying code of a division element by
editing FOSI source. Have you done that for section or section1? Or, more
likely, the title element? Editing FOSI source for title severs the Styler
interface connection with that code. Changes made to title (or any of its
conditions or contexts *after* editing FOSI source will *not* be made to the
actual code although the Styler user interface may display the change.
I don't know if that's English or not. Hopefully it's clear enough.
One quick way to see if the code is present is to edit the .style file with
a text editor and search for the following:
xrefidtag="section"
OR
xrefidtag="section1"
You should see a block of about five savetexts with textids of:
Label_Number.xref
Number.xref
Text.xref
etc.
If you can't find these AND you have edited FOSI source for title, the cross
reference formats they represent (those pulled in the Division reference
dialog) won't work since under the covers, these variables are being called
(but, obviously, not set). If you haven't edited FOSI source for title, that
code may not be present in your .style file and is, instead, assumed by
Styler's core code. (I haven't quite figured this bit out yet ... some
things are only expressed in the .style file if you "go off-road.")
UNRELATED GUESS:
Do you have section/section1 set as a division in your .dcf? I don't see
anything anywhere in Styler help indicating this is required for the
functionality you're trying to develop, but maybe it is indeed required.
JUST FOR FUN:
Here is an attribute test containing the xref savetexts for chapter from my
stylersheet. This is *not* a standard bit of code. I, unfortunately, have
severed the relationship between the title element's styler ui and the
underlying code, but it illustrates where/how you can "fix" this if you,
too, have "broken" it:
<att>
<charsubset>
<savetext textid="cnt__chapter.txt" conrule="cnt__chapter:gps_doc.cnt[AR]"/">
<savetext textid="num__chapter.txt" conrule="cnt__chapter.txt"/">
<savetext textid="label__chapter.txt" conrule="!Chapter<br"/>!,num__chapter.txt,!!"/>
<savetext textid="beforetext" conrule="!<_sfe:BeforeOrAfterText<br />xmlns:_sfe="<br /><a style="COLOR: blue; TEXT-DECORATION: underline" target="_BLANK" href="http://www.arbortext.com/namespace/Styler/StylerFormattingElements">http://www.arbortext.com/namespace/Styler/StylerFormattingElements"</a><br />xmlns:_ufe="<a style="COLOR: blue; TEXT-DECORATION: underline" target="_BLANK" href="http://www.arbortext.com/namespace/Styler/UserFormattingElements">!,@0pt,!<_font">http://www.arbortext.com/namespace/Styler/UserFormattingElements">!,@0pt,!<_font</a><br />xmlns:_gte="<a style="COLOR: blue; TEXT-DECORATION: underline" target="_BLANK" href="http://www.arbortext.com/namespace/Styler/GeneratedTextElements">!,label__chapter.txt,!</_font>!,\">http://www.arbortext.com/namespace/Styler/GeneratedTextElements">!,label__chapter.txt,!</_font>!,\</a><br />\,!</_sfe:BeforeOrAfterText>!" placemnt="before"/">
<savetext textid="repeat_title.txt" conrule="\\"/">
<savetext textid="repeat_title_bottom.txt" conrule="\\"/">
<savetext textid="Label_Number.xref" conrule="label__chapter.txt"<br"/>xrefidtag="chapter"/>
<savetext textid="Label_Number_Text.xref" conrule="label__chapter.txt,!<br /><_sfe:CrossReferenceTitle xmlns:_sfe="<br /><a style="COLOR: blue; TEXT-DECORATION: underline" target="_BLANK" href="http://www.arbortext.com/namespace/Styler/StylerFormattingElements">!,#CONTENT,!</_sfe:CrossReferenceTitle>!" "=">http://www.arbortext.com/namespace/Styler/StylerFormattingElements">!,#CONTENT,!!'
xrefidtag="chapter"/>
<savetext textid="Number.xref" conrule="num__chapter.txt"<br"/>xrefidtag="chapter"/>
<savetext textid="Page.xref" conrule="foliostr[BO]" xrefidtag="chapter"/">
<savetext textid="Text.xref" conrule="!<_sfe:CrossReferenceTitle<br />xmlns:_sfe="<br /><a style="COLOR: blue; TEXT-DECORATION: underline" target="_BLANK" href="http://www.arbortext.com/namespace/Styler/StylerFormattingElements">!,#CONTENT,!</_sfe:CrossReferenceTitle>!" "=">http://www.arbortext.com/namespace/Styler/StylerFormattingElements">!,#CONTENT,!!'
xrefidtag="chapter"/></charsubset>
</att>
That is in:
<e-i-c gi="title" context="chapter" occur="all">
To get there, select title in the elements list.
Then select Elements/EditElementSource/FOSI.
--
Paul Nagai