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

Styler: can you format based on processing instructions?

naglists
1-Newbie

Styler: can you format based on processing instructions?

I have been in class all day and my brain is fried. This may have been
discussed already (even recently ... even by me ... it's a good class and my
brain is full, what can I say!?), and I apologize if I've spaced.

Is it possible to use Styler 5.2 to format based on processing instructions?

Specifically, pub touchup PIs? I want to duplicate the following FOSI e-i-c:
<e-i-c gi="touchup" gitype="pi">
<charlist inherit="1"></charlist>
<att logic="and">
<specval attname="SuppressSup" attval="no">
<specval attname="HighltScoring" attval="inherit">
<charsubset>
<chgmark barthick="2pt" join="1" type="content">
<highlt inherit="1" fontclr="black"></chgmark>
</charsubset>
</att>
<att>
<specval attname="HighltScoring" attval="off">
<charsubset>
<highlt inherit="1" fontclr="black"></charsubset>
</att>
<att>
<specval attname="attr1" attval="1">
<specval attname="editor-only" attloc="system-var" attval="#ANY">
<charsubset>
<highlt fontclr="violet"></charsubset>
</att>
</e-i-c>

(I don't *have* to have the Editor/PDF difference in font colors and,
frankly, I don't need the other attribute tests either ... I just need to be
able to emit changebars when I find the pub touchup PI.)

--
Paul Nagai
2 REPLIES 2

I should say I'm aware of Styler help on the "normal" change bar method
using elements. I want to avoid that route since I have supporting ACL I'm
re-using from existing applications that finds change tracking, creates, pub
touchup PIs, and later removes the PIs and accepts changes.


>
> Is it possible to use Styler 5.2 to format based on processing
> instructions?
>

Yes. Add a non-DTD element to the Styler Element list. Edit FOSI source. Set
gitype="pi". Done. (Well, you need the chgmark element and attributes to
define where and how to place the change bar, but that's "easy" for
recovering FOSI developers.)

<chgmark barthick="2pt" join="1" type="content">
>
> --
> Paul Nagai
>
Announcements