[Date Prev][Date Next]
[Thread Prev][Thread Next]
[Date Index]
[Thread Index]
[New search]
To: "Lynne A. Price" <lprice@xxxxxxxxxxxx>, Richard Higgins <r.i.higgins@xxxxxxxxxxxx>, Free Framers <framers@xxxxxxxxx>
Subject: Re: FM5.5.6+SGML(W): Inflexible graphic element.
From: Dan Emory <danemory@xxxxxxxxxxxx>
Date: Thu, 22 Apr 1999 14:29:06 -0700 (MST)
Sender: owner-framers@xxxxxxxxx
Richard Higgins originially wrote: >>The default FM translation from SGML for a graphic element seems to >>allow only for the creation of an empty element, with certain >>"attributes" and no children. >> >>My DTD allows for caption text either as an attribute of the graphic >>element, or as a child element of the graphic element. Am I toiling in >>vain (other than for the good of my soul) trying to work out a way to >>get either of these to translate into the FM document, or does anyone >>know a way to haul them in? > > At 11:26 AM 4/22/99 -0700, Lynne A. Price wrote, in response to Richard Higgins' inguiry: >Richard, > To support such a DTD requires a very simple custom translator, built >with the FDK. -+-+-+-+-+-+-+-+-+ Lynne: On import to FM+SGML your FDK-developed custom translator must: 1. Wrap the Graphic element in an EDD-defined "Wrapper" element whose structure rule is: Graphic, Caption 2. Detach the Caption element from the Graphic element, and insert it as the second child of the EDD-defined Wrapper element. The import result of these two steps would have be the same as if there were no custom translator, and the original SGML markup was: <Wrapper><Graphic (Attributes of Graphic Element)> <Caption>Caption Text</Caption></Wrapper> On export to SGML your FDK-developed custom translator must: 1. Unwrap the EDD-defined Wrapper element 2. Write out the Graphic element as a non-empty element (no minimization). 3. Attach the Caption element as a child of the Graphic element The export result of these three steps would be the following SGML markup: <Graphic (Attributes of Graphic Element)><Caption>Caption Text </Caption></Graphic> Do you still regard this as "a very simple custom translator"? ==================== | Nullius in Verba | ==================== Dan Emory, Dan Emory & Associates FrameMaker/FrameMaker+SGML Document Design & Database Publishing Voice/Fax: 949-722-8971 E-Mail: danemory@primenet.com 10044 Adams Ave. #208, Huntington Beach, CA 92646 ---Subscribe to the "Free Framers" list by sending a message to majordomo@omsys.com with "subscribe framers" (no quotes) in the body. ** To unsubscribe, send a message to majordomo@omsys.com ** ** with "unsubscribe framers" (no quotes) in the body. **