writing rules for descendants in EDD
Cindy, Roger is correct that FM context rules cannot query descendants (otherwise, every change you make to a document's element structure could potentially trigger reformatting the entire document, and editing performance would be unacceptably slow). You may be able to get the desired formatting by: 1) Setting the indentation for p within a QandA sec to 1.5pc (regardless of whether the p contains a bold) 2) Defining bold at the start of a p within a QandA set to be a paragraph with indentation of 0 and making this paragraph a run-in head. Alternatively, you could change the structure (either in the original XML or using XSLT to change it only within FrameMaker) to reflect the logical structure that motivates the formatting, something like: text of question continued text of question text of answer continued text of answer Note that I have not bothered to include the labels "Question:" and "Answer:" in this modified XML since they can be generated as prefixes on the first p in a Question or Answer. If these labels may vary, of course, they should be retained in the modified document. It would be straightforward to derive this structure from the original in XSLT. Since XSLT applies to a static document, the performance considerations that motivated the design of FrameMaker's context specifications are not relevant, and XSLT can test descendants as well as ancestors of an element. --Lynne At 01:20 PM 7/23/2008, Cindy Maisannes wrote: >Hi Roger, > >Thanks for your response. The XML files that I am pulling into FrameMaker >have a structure like this: > > >Question: text of question >Response: text of response > > >However, sometimes the text of a question or a response lasts into a >second or third paragraph, such as this: > > >Question: text of question > continued text of question >Answer: text of answer > continued text of answer > > >and I would like to be able to say that all paragraphs inside a sec-type="QandA"> that do not have a descendant are indented 1.5pc, >for example. Other paragraphs with a descendant inside a sec-type="QandA"> should not be indented. I can't figure out how to do this. > >Thanks again, >Cindy > > >-Original Message- >From: Shuttleworth, Roger [mailto:Roger_Shuttleworth at tvworks.com] >Sent: Wednesday, July 23, 2008 4:00 PM >To: Cindy Maisannes >Subject: RE: writing rules for descendants in EDD > >Hi Cindy > >I don't believe you can do this. The syntax handles ancestors and siblings >but not descendants. Offhand, I can't think of a way to accomplish this >without using different elements for those that contain a element. > >But perhaps it would help if you give an example of your desired output. >I'm having a hard time imagining why you would want to do this. > >Regards, > >Roger Shuttleworth >London, Canada > >___ > > >You are currently subscribed to Framers as lprice at txstruct.com. > >Send list messages to framers at lists.frameusers.com. > >To unsubscribe send a blank email to >framers-unsubscribe at lists.frameusers.com >or visit >http://lists.frameusers.com/mailman/options/framers/lprice%40txstruct.com > >Send administrative questions to listadmin at frameusers.com. Visit >http://www.frameusers.com/ for more resources and info. Lynne A. Price Text Structure Consulting, Inc. Specializing in structured FrameMaker consulting, application development, and training lprice at txstruct.comhttp://www.txstruct.com voice/fax: (510) 583-1505 cell phone: (510) 421-2284
writing rules for descendants in EDD
Hi Roger, Thanks for your response. The XML files that I am pulling into FrameMaker have a structure like this: Question: text of question Response: text of response However, sometimes the text of a question or a response lasts into a second or third paragraph, such as this: Question: text of question continued text of question Answer: text of answer continued text of answer and I would like to be able to say that all paragraphs inside a that do not have a descendant are indented 1.5pc, for example. Other paragraphs with a descendant inside a should not be indented. I can't figure out how to do this. Thanks again, Cindy -Original Message- From: Shuttleworth, Roger [mailto:roger_shuttlewo...@tvworks.com] Sent: Wednesday, July 23, 2008 4:00 PM To: Cindy Maisannes Subject: RE: writing rules for descendants in EDD Hi Cindy I don't believe you can do this. The syntax handles ancestors and siblings but not descendants. Offhand, I can't think of a way to accomplish this without using different elements for those that contain a element. But perhaps it would help if you give an example of your desired output. I'm having a hard time imagining why you would want to do this. Regards, Roger Shuttleworth London, Canada
writing rules for descendants in EDD
Hello, I am using structured FrameMaker 7.2 and would like to write a rule into my EDD that all paragraphs that do not contain a element as a descendant are formatted in a certain paragraph format. I'm a relative newbie to FrameMaker so forgive me a potentially stupid question, but is it possible to do this? I can't figure out what the notation in the EDD would be. Thanks, Cindy
RE: writing rules for descendants in EDD
Hi Roger, Thanks for your response. The XML files that I am pulling into FrameMaker have a structure like this: Question: text of question Response: text of response However, sometimes the text of a question or a response lasts into a second or third paragraph, such as this: Question: text of question continued text of question Answer: text of answer continued text of answer and I would like to be able to say that all paragraphs inside a that do not have a descendant are indented 1.5pc, for example. Other paragraphs with a descendant inside a should not be indented. I can't figure out how to do this. Thanks again, Cindy -Original Message- From: Shuttleworth, Roger [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2008 4:00 PM To: Cindy Maisannes Subject: RE: writing rules for descendants in EDD Hi Cindy I don't believe you can do this. The syntax handles ancestors and siblings but not descendants. Offhand, I can't think of a way to accomplish this without using different elements for those that contain a element. But perhaps it would help if you give an example of your desired output. I'm having a hard time imagining why you would want to do this. Regards, Roger Shuttleworth London, Canada ___ You are currently subscribed to Framers as [EMAIL PROTECTED] Send list messages to [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] or visit http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com Send administrative questions to [EMAIL PROTECTED] Visit http://www.frameusers.com/ for more resources and info.
writing rules for descendants in EDD
Hello, I am using structured FrameMaker 7.2 and would like to write a rule into my EDD that all paragraphs that do not contain a element as a descendant are formatted in a certain paragraph format. I'm a relative newbie to FrameMaker so forgive me a potentially stupid question, but is it possible to do this? I can't figure out what the notation in the EDD would be. Thanks, Cindy ___ You are currently subscribed to Framers as [EMAIL PROTECTED] Send list messages to [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] or visit http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com Send administrative questions to [EMAIL PROTECTED] Visit http://www.frameusers.com/ for more resources and info.