Creating Filters - Adobe FRAMEMAKER 10 User Manual

Hide thumbs Also See for FRAMEMAKER 10:
Table of Contents

Advertisement

<MText `=88793'>
<MCurrPage
>
>
>
...
>

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
,
uesCatalog
DefAttrValues
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
state of the filter which is stored in the
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
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
example:
<DefAttrValuesCatalog
<DefAttrValues
<AttributeTag `A'>
<AttributeValue `val1'>
<AttributeValue `val2'>
> # end of DefAttrValues
<DefAttrValues
<AttributeTag `B'>
<AttributeValue `val3'>
# This marker shows the end of hidden text. It must
# match the marker that begins with a minus sign (-).
0>
# end of Marker
# end of Para
# end of TextFlow
,
, and
AttrCondExprCatalog
AttrCondExprTag
tag. The state of the filter indicates whether the filter is active
AttrCondState
statement as illustrated in the following example where two filters
DefAttrValuesCatalog
statements.
AttrCondExpr
, the expression tag
AttrCondExprStr
statement as illustrated in the following
ADOBE FRAMEMAKER 10
43
MIF Reference
DefAttrVal-
, and the

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents