indexing and savetext problems
I am trying to create an alphanumerical (alpha before numeric - but I'll ask about that later!) index of part numbers and figure/index numbers. The structure of the parts data uses nested elements that look something like this:
DTD structure index results
<pl0> <figno><figindex><partno>... <figno> saved, but <figindex> and <partno> are lost
<pl1><figindex><partno>... </pl1> everything saves OK
<pl1><figindex><partno>... <figindex> and <partno> are lost
<pl2> <figindex><partno>...</pl2> everything saves OK
<pl1><figindex><partno>... </pl1> everything saves OK
</pl0>
The num-index.app savetext is at each <pl0>, <pl1>, etc. element.
<savetext textid="num-index.app" conrule="<ixpt">,partno.txt,</ixpt>,<ixsub1>,figindex.txt,</ixsub1>,<ixpgstr>,pagenum,</ixpgstr>" placemnt="after" append="1">
The strings are declared as:
<stringdecl textid="partno.txt" literal="" hotlink="1"><stringdecl textid="figindex.txt" literal="" hotlink="1">
I use a savetext to capture the content of each <partno> and <figindex> in each level, but end up losing the content of that element where the next level moves down, I'm guessing, since the nesting element hasn't closed. Thus my gathered index is always incomplete since I'm never getting the top level assembly partno/figindex and I'm missing the partno/figindex when the next indenture level changes from <pl1> to <pl2> or <pl2> to <pl3>, etc.
How do I configure my savetexts to save the contents of each nested level's part and index info to my index? or is there some other way I should be looking at this?
Thanks, KM

