I am pretty sure this test:
<specval attname="label" attloc="subpara2" attval="#ANY">
will be found TRUE if the label attribute is present whether or not it
contains content. Is this attribute present but set ="? Can you try running
your output having deleted the attribute? Do you get the expected/desired
TOC output if you fill the attribute?
If this is the case, one path to happiness will be figuring out how to
detect whether the label attribute has content vs. is defined.
On Wed, Feb 24, 2010 at 1:25 PM, Taylor, David S. <
david.s.taylor@nrc-cnrc.gc.ca> wrote:
> Sindy,
>
>
>
> I've had a look at the e-i-cs you provided.
>
> In the e-i-c for <subpara2> it appears you are using an attribute named
> 'label' to create the TOC entry. Is the content of this attribute the same
> text as appears in <title> or is it something else?
>
> Unless the text for the TOC differs from the text entered in <title>, an
> attribute shouldn't be necessary. If they are different, putting this
> attribute on <title> would be a better idea.
>
> On the <title> element, the savetext would then be either of the following:
>
>
> <savetext textid=""toc-entry"" conrule=""<toc-fmt">#CONTENT</toc-fmt>"> for
> the <title> as entered
>
>
>
> OR
>
>
>
> <savetext textid=""toc-entry"" conrule=""<toc-fmt">#CONTENT(label)</toc-fmt>">
> for the attribute text.
>
>
>
>
>
> Cheers,
>
>
>
> David
>
>
>
>
>
> *From:* Taylor, David S. [
>
> <savetext textid=""toc-app"" conrule=""toc-entry"" placement=""after"<br"/>> append="1">
>
>
>
> On the title element, put a savetext to create the TOC entry:
>
>
>
> <savetext textid=""toc-entry"" conrule=""<toc-fmt">Title Text</toc-fmt>">
>
>
>
> where <toc-fmt> is a pseudo-element that specifies the...