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

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

FOSI enumerating at wrong level

JeffStevenson
12-Amethyst

FOSI enumerating at wrong level

Hello everyone,


I'm trying to code around what I believe is a bug in Arbortext 6.0 when numbering list items. In short, Arbortext is continue the numbering from a sublist onto the next item in the parent list.


I'm trying to develop a workaround by adding a new counter for the sublist. However, my counter is enumerating at the wrong level.


Consider the following markup....


<amend>


<provbody>


<prov>


<subprov><label>1</label></subprov>


<subprov><label>2</label></subprov>


....</amend>


I want the subprov/label to increment. However, what I am seeing happen is the enumeration is occuring at the <amend> level instead. So...


<amend>


...<subprov><label>1</label>


<subprov><label>1</label>


</amend>


<amend>


...<subprov><label>2</label>


<subprov><label>2</label>


</amend>



My Xpath to set the counter is working correctly as this is not obstructing the list higher up in the XML. But I cannot see how to get FOSI to enumerate within the <amend>.



Here is my FOSI that is setting the counter.


<att>


<specval attname="gentext-only" attloc="system-var" attval="#ANY"/">



</att>


Thanks for any assistance!


2 REPLIES 2

Hi Jeff,

Your code does not appear to be using FOSI enumeration. The problem would seem to be with the ACL and/or XPath.

Here is the native FOSI coding for your markup:

<counter initial="0" enumid="labelct">


<e-i-c gi="label" context="subprov">
<charlist inherit="1">
<enumerat increm="1" enumid="labelct">
<usetext source="labelct" placemnt="before"></usetext>
</charlist>
</e-i-c>

<e-i-c gi="amend">
<charlist inherit="1">
<reset resetlist="labelct">
</charlist>
</e-i-c>

HTH.

Good luck!

Suzanne Napoleon
www.FOSIexpert.com
"WYSIWYG is last-century technology!"

Jeff,

[I was just about to send this and noticed Suzanne had sent out essentially the same solution. So let me just pile on.]


If your problem is simply about list numbering, then we pre-Styler FOSI jockeys would do that by using FOSI code like the following.

<counter initial="0" style="arabic" enumid="labelct">

<e-i-c gi="prov">
<charlist>
<reset resetlist="labelct">
</charlist>
</e-i-c>


<e-i-c gi="label" context="subprov">
<charlist>
<enumerat increm="1" enumid="labelct">
<usetext source="labelct">
</usetext>
</charlist>
</e-i-c>


[Or maybe instead of resetting labelct in the e-i-c for "prov" you'd want to do it in the one for "amend"?]

--Jack
LSI, Inc
Jacksonville, FL

Announcements

Top Tags