UniqueID uniqueness within a book


the structure guide states 1 can create element attribute of type uniqueid , allow user enter value uniqueid attribute, opposed letting frame on fly. guide states within book, value of uniqueid has unique.

i creating rather generic file used in several books. in each book, want cross-reference within generic file target particular element in 1 of files in book; let file filea. so, within filea have element uniqueid attribute set theattribute. there cross-reference in generic file targets element.

now, in file fileb in book, have similar element uniqueid attribute has value theattribute.

so, if update book containing fileb , generic file, cross-reference in generic file still targets element in filea, though filea not part of second book , not open. furthermore, if put filea , fileb , generic file in same book , update it, cross-reference still targets element in filea, though book has 2 files each element containing same value of uniqueid; is, in case, uniqueid not unique.

so, going on? unable structure guide seems imply can do. there else have do? have tried setting id reference attribute in cross-reference not read-only , setting value manually, frame makes me go through cross-reference dialog box set value.

obviously, frame recording file name along value of uniqueid, seems contrary structure guide states.

i can around using conditional text avoid it.

thanks,
van

framemaker indeed stores cross-reference source file external cross-references. (in framescript, can query xreffile property.) if have 2 cross-references point different files, same attribute value, framemaker doesn't have problem resolving cross-references correctly. don't know how work in xml world, if book gets saved single xml file, duplicate values may cause problems.

one solution use framescript (or fdk) generate unique ids uniqueid attributes in book ahead of time. can have master "ids.xml" file stored in same folder script, ids unique, across books. whenever script generates new unique id, check master "ids.xml" file make sure unique. new ids added "ids.xml" file generated never reused.

rick quatro
rick @ frameexpert dot com


More discussions in FrameMaker Structured


adobe

Comments