writing rules for descendants in EDD
Cindy Maisannes
Cindy.Maisannes at cfainstitute.org
Wed Jul 23 13:20:26 PDT 2008
Hi Roger,
Thanks for your response. The XML files that I am pulling into FrameMaker have a structure like this:
<sec sec-type="QandA">
<p><bold>Question:</bold> text of question</p>
<p><bold>Response:</bold> text of response</p>
</sec>
However, sometimes the text of a question or a response lasts into a second or third paragraph, such as this:
<sec sec-type="QandA">
<p><bold>Question:</bold> text of question</p>
<p> continued text of question </p>
<p><bold>Answer:</bold> text of answer</p>
<p> continued text of answer </p>
</sec>
and I would like to be able to say that all paragraphs inside a <sec sec-type="QandA"> that do not have a <bold> descendant are indented 1.5pc, for example. Other paragraphs with a <bold> descendant inside a <sec 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 <bold> 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
More information about the framers
mailing list