Thanks everyone I'll give this a try. Steve your right I'm trying to
control the para inside of the step element. this certainly is the
roundabout way to deterine something so easy.
Has anyone worked with the XPath extension to the FOSI language that
Arbortext has implemented? I came across some info I think in the
annotated spec but it didn't have any useful example of how and why I
would use it. Seems like my XSLT bent might fit that better. If you have
used this extension, what have you seen in the way of a performance hit?
..dan
> Dan,
> I agree with most of what Paul sent. However, I don't believe he 'got'
> your requirement fully, and I have a suggestion just as good programming
> form...
>
> The following is his version:
> Flip the textvar's value on steps:
> in e-i-c gi="step" occur="first" set isfirst_instep.txt = "yes"
> placemnt="before"
> in e-i-c gi="step" occur="notfirst" set isfirst_instep.txt = "no"
> placemnt="before"
>
> It's last line is not necessary unless you have some other reason to have
> a "step" "notfirst", and would be incorrect even in that case. You don't
> need a "first/notfirst" for this. Looks to me like your example wants to
> determine whether <para> is first in <step>, not whether <para> is in
> first <step>. If so, you need this in EVERY "step" gi:
> set isfirst_instep.txt = "yes" placemnt="before"
> In the "para" and "challenge" gi's, do the attribute tests indicated, but
> do the attval "no" test first. Current experience is that the changing of
> the value in isfirst_instep.txt in the "yes" test won't be seen by the
> "no" test, but some future update of Editor could include the 'correction'
> of that inconsistent behavior. That is, it could become possible to
> actually test the value of a text variable that was set at some 'earlier'
> point in the same gi. For that reason, it seems prudent to me to do the
> tests in the other order.
>
> Regards to You Both,
> Steve Thompson
> TAD Technical
> Boeing-IDS Technical Publications
> +1(316)977-0515
> MC K83-08
> The truth is the truth even if nobody believes it, and a lie is a lie even
> if everyone believes it.
>
> NOTICE: This communication may contain proprietary or other confidential
> information. If you are not the intended recipient, or believe that you
> have received this communication in error, please do not print, copy,
> retransmit, disseminate, or otherwise use the information. Also, please
> indicate to the sender that you have received this e-mail in error, and
> delete the copy you received. Any and all views expressed are the current
> understanding of the sender and should not be interpreted as an expression
> of official Boeing Company policy or position.
>
> Les renseignements contenus dans ce message peuvent être confidentiels. Si
> vous n'êtes pas le destinataire visé ou une personne autorisée à lui
> remettre ce courriel, vous êtes par la présente avisé qu'il est
> strictement interdit d'utiliser, de copier ou de distribuer ce courriel,
> de dévoiler la teneur de ce message ou de prendre quelque mesure fondée
> sur l'information contenue. Vous êtes donc prié d'aviser immédiatement
> l'expéditeur de cette erreur et de détruire ce message sans garder de
> copie.
>
>