26
m a r k e r t e x t i s
space informs FrameMaker that a line break within a text segment should be treated as
a space. This is the default.
Examples
•
Line breaks may need to be treated differently within different elements. For example, a
line break within an example element may need to be preserved on import, while a line
break within a par element may be a word break:
element "example" reader line break is forced return;
element "par" reader line break is space;
marker text is
Use the marker text is rule to indicate whether the text of a marker element should
become an attribute value or the content of the corresponding markup element. Note that
the markup element must not be declared as empty if you want the marker text to be
translated as content.
Synopsis and contexts
element "gi" {. . .
is fm marker element ["fmtag"];
marker text is attr_or_content;
. . .}
Arguments
gi
fmtag
attr_or_content One of the keywords: attribute or content.
Details
•
By default, FrameMaker translates a marker element in FrameMaker to a markup empty
element. It writes the marker text as the value of the markup element's text attribute.
•
Instead of the default, you can have FrameMaker translate a marker element to a markup
element whose content model is #PCDATA. The marker text becomes the element's
content.
Examples
•
To state that the markup element mkr corresponds to the FrameMaker element Marker
and to confirm the default behavior, you can use this rule:
element "mkr" {
}
Read/Write Rules Reference
A generic identifier.
A FrameMaker element tag.
is fm marker element "Marker";
marker text is attribute;
444