Oxygen XML Author Eclipse plugin includes support for defining your own profiling attributes, or
modifying existing ones, for each particular document type (framework). You can then apply the
profiling attributes to content in Author mode to see how the profiling
will affect the output.
Create or Editing Profiling Attributes
To create or edit profiling attributes for a specific document type, follow these steps:
- If you are creating a new attribute, make sure the attribute is already
defined in the document DTD or schema before continuing with the procedure.
- Open the
Preferences dialog box and go to .
-
To add new attributes and values, click the
New button at the bottom of the
Profiling Attributes table. To customize existing attributes
and their values, select an attribute and click the
Edit button.
Step Result: In either case, this opens a Profiling
Attribute configuration dialog box where you can define attributes that
exist in your schema.
Figure 1. Profiling Attribute Dialog Box
The following options are available in this dialog box:
- Document type
- Select the document type (framework).
Tip: You can use the
* or ? wildcards in this combo box. For
example, DITA* would match any document type that starts with
"DITA". You can also specify multiple document types by using commas to
separate them.
- Attribute name
- The name of the profiling attribute.
- Display name
- This optional field is used for descriptive rendering in profiling dialog
boxes.
- Attribute Values Table
-
This table displays information about the values for the profiling attribute. You
can configure them by using the buttons at the bottom of the table (
New,
Edit,
Delete).
The columns are as follows:
- Single value
- Select this option if you want the attribute to only accept a single value.
- Multiple values separated by
- Select this option if you want the attribute to accept multiple values, and you
can choose the type of delimiter to use. You can choose between space,
comma, and semicolon, or you can enter a custom delimiter in the
text field. A custom delimiter must be supported by the specified document type. For
example, the DITA document type only accepts spaces as delimiters for attribute
values.
- After defining or configuring the attributes and their values
according to your needs, click OK to confirm your selections and
close the Profiling Attributes configuration dialog box.
- Click Apply to save the changes.
Adding Profiling Attribute Values Directly in a Document
You can add values directly to the existing profiling attributes in a document using the
In-Place Attributes Editor in
Author mode, the
Attributes view, or in the source code in
Text mode. However, this just adds them to the document and does
not change the conditional text configuration. If you invoke the
Edit Profiling
Attributes action (from the contextual menu in
Author
mode) on the new value, the
Profiling Values Conflict dialog box will
appear and it includes an
Add these values to the configuration
action that will automatically add the new value to the particular profiling attribute. It
also includes an
Edit the configuration action that opens the
Attributes
and Condition Sets preferences page where you can edit the profiling
configuration.
Note: If the
Allow contributing extra profiling attribute values
option is not selected in the
Attributes and Condition
Sets preferences page, the
Profiling Values Conflict
dialog box will never appear, so this automatically adding value not be possible.
Figure 2. Profiling Values Conflict Dialog Box