[Date Prev][Date Next] [Thread Prev][Thread Next]
[Date Index] [Thread Index] [New search]

Re: [FrameSGML] FM+SGML: everything valid highest level?



At 08:11 PM 3/23/02 +0000, Mark Barratt wrote:
>When dealing with arbitrary import-by-refrence file fragments I'm 
>tempted to let everything down to para and list level be valid at the 
>highest level.
>
>Is there some reason why this might be a very bad or impractical idea 
>(apart from philosophically, that is)?


Mark,
  If the goal is to edit separate FM+SGML documents that you save
to SGML and then import by reference into more complete documents,
there's no need to make all larger containers valid at the highest
level. Make sure your EDD defines an element type called SGMLFragment
and make SGMLFragment valid at the highest level. Give it a general
rule of <ANY> (or some other model that permits all the elements that
you expect at the highest level of your fragment documents).
  When you save a document with SGMLFragment as the highest-level
element as SGML, FM+SGML unwraps the SGMLFragment element. Instead of
writing a complete SGML document (beginning <!DOCTYPE ...), it exports
only an SGML Fragment beginning with a start-tag for the first child
of the SGMLFragment element. 
  There is no need to define SGMLFragment in your DTD, since the SGMLFragment
itself is not exported.
  If you are not saving your fragments to SGML, you can still use SGMLFragment
as your highest-level element. FM+SGML unwraps SGMLFragment as the highest-level
element in text insets--at least that is the design. There is a bug and SGMLFragment
is correctly unwrapped only when it contains a single child. Since you
are considering making large numbers of your containers valid at the highest level,
I assume this would be the case in your documents.
  To return to the question you actually asked, the only effect of defining a large
number of elements to be valid at the highest level is to suppress validation
errors you might otherwise see. 
	--Lynne

Lynne A. Price
Text Structure Consulting, Inc.
Specializing in FrameMaker+SGML consulting and training
lprice@txstruct.com
http://www.txstruct.com
voice/fax: (510) 583-1505
cell phone: (510) 421-2284

** To unsubscribe, send a message to majordomo@omsys.com **
** with "unsubscribe framers" (no quotes) in the body.   **