Skip to main content
1-Visitor
August 21, 2012
Question

Hiding gentext based on tag/context

  • August 21, 2012
  • 2 replies
  • 761 views

Hello everyone,


We have a situation where a "00" is outputting in the edit view in indices. First, this wasn't the case in 5.3, but we're seeing it in 6.0. If anyone has a clue on that, I would appreciate it.


If not, we'd like to suppress this gentext in when in the indices. The gentext is coming from an ACL function and not from the FOSI stylesheet. However, when globally setting gentext=off it suppresses, but so does all the gentext in the doc.


Is there a way to suppress gentext in the edit window based on context or current tag? I've tried several things in ACL, but no go thus far. Looking for other ideas.


Thanks,


Jeff

    2 replies

    1-Visitor
    August 21, 2012
    I think that is caused when you use a time independent variable (tiv) to hold the page number. There is no way for the editor to resolve it in the edit view. When the document is composed AE makes as many passes as is necessary to resolve tivs, but uses zeros as place holders in the edit view.

    Actually, I have misunderstood what you are talking about because I am using 5.3m040 and this is the behavior I see. The edit view is FOSI driven regardless of what kind of stylesheet you use for composed output. You can turn off gentext via a preference setting.

    -Andy

    \ / Andy Esslinger LM Aero - Tech Order Data
    _____-/\-_____ (817) 279-0442 1 Lockheed Blvd, MZ 4285
    \_\/_/ (817) 777-3047 Fort Worth, TX 76108-3916

    1-Visitor
    August 21, 2012
    Sounds like the simplest thing would be to just suppress that gentext in
    the editor view. If you're using Styler, you can just select "Arbortext
    Editor" in the "Outputs to edit" box, then remove the gentext. Directly in
    FOSI, you'll want an "att" with a line like:

    <specval attname="EDITOR-ONLY" attloc="system-var" attval="#ANY"/">

    If you really need to do it in ACL (though for performance purposes, it'd
    be better not to call ACL at all, if you can avoid it), you'd just need to
    use the oid_* functions to walk up the element hierarchy to determine
    context.

    -Brandon 🙂


    On Tue, Aug 21, 2012 at 1:54 PM, Jeff Stevenson <
    jstevenson@gpslsolutions.com> wrote:

    > Hello everyone,
    >
    > We have a situation where a "00" is outputting in the edit view in
    > indices. First, this wasn't the case in 5.3, but we're seeing it in 6.0.
    > If anyone has a clue on that, I would appreciate it.
    >
    > If not, we'd like to suppress this gentext in when in the indices. The
    > gentext is coming from an ACL function and not from the FOSI stylesheet.
    > However, when globally setting gentext=off it suppresses, but so does all
    > the gentext in the doc.
    >
    > Is there a way to suppress gentext in the edit window based on context or
    > current tag? I've tried several things in ACL, but no go thus far. Looking
    > for other ideas.
    >
    > Thanks,
    >
    > Jeff
    >