Building blocks in TOC for structured documents
I am trying to get a TOC to generate based off of a number of elements in a structured FrameMaker document pulling from an XML file. Currently, I don't have a book with separate chapters, rather the chapters are an element I have created in the EDD. When I build my TOC, I have not had any luck with other building blocks other than the standard <$elemtextonly> and <$pagenum>. I would like to pull an attribute from the Chapter element that includes the chapter number into the TOC, but I can't find any way to write the building block that would make this work. I have tried <$attribute[TaxSort]> where TaxSort is the chapter number, and I think I have tried various alterations of the above, but it just prints the text rather than pulling the chapter number.
Is there a comprehensive list somewhere of which building blocks can be used in which contexts? I have run into this issue in other situations where I try a building block that works in one place but it doesn't translate. Am I just causing myself a headache by not converting the XML file into a book with true chapters in the first place?
