
ADOBE FRAMEMAKER 10
MIF Reference
43
# This marker shows the end of hidden text. It must
# match the marker that begins with a minus sign (-).
<MText `=88793'>
<MCurrPage 0>
>
# end of Marker
>
>
# end of Para
...
>
# end of TextFlow
Creating filters
Structured FrameMaker allows specific components in a structured document to be processed differently to generate
different output formats. Consider a case where you want some text in a document to be included in the Print output,
but not in the HTML Help output. You can create a filter based on the values of the attributes of elements, and process
only those elements in the document that match the filter, and include such elements in the Print output.
In a MIF file, you create a filter required for generating the output of a structured document using the
DefAttrVal-
uesCatalog
,
DefAttrValues
,
AttrCondExprCatalog
, and
AttrCondExpr
statements.
All MIF 8 documents contain a catalog of predefined filters. The catalog is empty if a filter is not defined in a struc-
tured document. A filter comprises a tag called
AttrCondExprTag
, the expression tag
AttrCondExprStr
, and the
state of the filter which is stored in the
AttrCondState
tag. The state of the filter indicates whether the filter is active
in the document. Although the catalog can have several filters, only one filter must be active at any time.
To create filters, use the
AttrCondExprCatalog
statement as illustrated in the following example where two filters
are created:
<AttrCondExprCatalog
<AttrCondExpr
<AttrCondExprTag `NewExpr1'>
<AttrCondExprStr `(A="val1" OR A="val11") AND (B="val2" OR B="val22")'>
<AttrCondState `Inactive'>
> # end of AttrCondExpr
<AttrCondExpr
<AttrCondExprTag `NewExpr2'>
<AttrCondExprStr `(A="val4" OR A="val44") OR (B="val3" OR B="val33")'>
<AttrCondState `Active'>
> # end of AttrCondExpr
> # end of AttrCondExprCatalog
The following statements create an empty filter catalog:
<AttrCondExprCatalog
> # end of AttrCondExprCatalog
All MIF 8 documents contain attribute-value pairs.
To create a catalog of attributes with values, use the
DefAttrValuesCatalog
statement as illustrated in the following
example:
<DefAttrValuesCatalog
<DefAttrValues
<AttributeTag `A'>
<AttributeValue `val1'>
<AttributeValue `val2'>
> # end of DefAttrValues
<DefAttrValues
<AttributeTag `B'>
<AttributeValue `val3'>
Содержание FRAMEMAKER 10
Страница 1: ...MIF Reference ADOBE FRAMEMAKER 10...