Hi Marsha... I hate to say this, but I don't think there's any way to get multiple attributes to end up as the content of one marker using r/w rules. Normally there's a one-to-one mapping of attribute value to marker text. I think your only options are to use an FDK import/export client or an XSLT import/export script (if you're using FM 7.2). If you're trying to round-trip from this data model to Frame, and back, you'll need something that assembles the three values into a colon-delimited list on import, and something that takes it back apart on export.
However, if this is just a one-way conversion into Frame, you'll just need to pre-process this XML so that all three attribute values are concatenated into a single attribute (with the colons thrown in as separators). This can be done with XSLT or other text processing code (like Perl) .. just add all of the values to the LevelOne attribute, and your r/w rules should do the trick. If you do need an FDK import/export client, contact me off-list and I can give you a quote for the work. This is similar to the work that was needed to develop the import/export client to process DITA's indexterm elements. Regards, ...scott Scott Prentice Leximation, Inc. www.leximation.com +1.415.485.1892 Lofthouse Marsha-PT1816 wrote: > I'm in the process of converting some XML documents created with an > application that is not FrameMaker using a DTD that does not match ours. > I'm close, thanks to the generous help of people on this list. > > Today's issue is index markers. The source XML looks like this: > <IndexTerm LevelOne="location management screen" LevelTwo="edit location > attributes" /> > where Index Term is the element and LevelOne and LevelTwo are > attributes. There can also be a LevelThree. > > My read/write rules relating to IndexTerm are: > element "IndexTerm" > { > is fm marker element "IndexTerm"; > attribute "LevelOne" is fm property marker text; > attribute "LevelTwo" is fm property marker text; > attribute "LevelThree" is fm property marker text; > } > > However, only the LevelOne text is coming into the FM index marker. > > So the questions are: > 1. How do I get the values of LevelTwo and LevelThree attributes to also > translate into the FM index marker? > 2. How do I place the appropriate punctuation in the index marker? > (e.g., The index marker for the example above should be "location > management screen:edit location attributes". Notice the colon between > the LevelOne and LevelTwo attribute values.) > > Thanks in advance to anyone who has time to look at this at this busy > time of the year. > > M > > Marsha Lofthouse > Motorola, Inc., Public Safety Applications > North America Government & Commercial Markets Division > Boulder Design Center > Marsha.Lofthouse at motorola.com > 303.527.4178 > > > >