Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X
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
Suzanne,
Thanks for steering me in the right direction once again. I've got this working now and am getting all the part nos. and index numbers out of the IPL pages. Now I have to figure out how to get it sorted in the right order. I need to have all the alpha entries first and then the numeric ones, but Epic seems to do the opposite as the default. I am reading through your chapter on indexing and it sounds like I need to create a custom collation file to do this. Or is there some other way to change the sort order?
Thanks again, Kim