File type group concepts
A file type group may be assigned via an extension of the existing file type configuration in the project type or AIS property. The value of the file type configuration in the project type or AIS property is either a file type configuration or a file type group.
You can only apply a file type group to a folder in the AIS. You cannot assign a file type group to an individual asset via the AIS property.
File type and file type configuration resolution
When filtering, WorldServer tracks the MIME type based on the source asset, but obtains the value of the file type configuration in the project type or AIS property from the target asset. This section describes how WorldServer determines which file type and file type configuration to use for an asset.
S to a target asset T, both with MIME type M, the following process will be used to find the correct file type and file type configuration:
- The MIME type configuration for
Mis consulted to obtain a base file typeFand file type configurationC. If no further configuration is found elsewhere, these will be used. - The file type configuration in the project type or AIS property for
Tis examined.- If the project type or AIS property has no file type configuration value assigned,
FandCare used. - If the project type or AIS property value is a file type configuration that is valid for
F,Fis used with the file type configuration specified by the property. - If the project type or AIS property value is a file type group, the file type group is searched for an entry that contains MIME type
M. If one is found, the file type and file type configuration in that entry are used. If not,FandCare used.
- If the project type or AIS property has no file type configuration value assigned,
Use of "Not Translatable"
A file type group also allows a MIME type to be designated as having a file type of "Not Translatable". If the file type resolution process finds that a MIME type is set to "Not Translatable", it treats assets of that MIME type as not translatable.
This behavior is the same as if the MIME type configuration listed the given MIME type as “Not Translatable”.
Configuring multiple file types for a single MIME type
With file type groups, you can use a different file type for two files with the same MIME type. For example, say you have several files with the MIME type text/properties, and one of these files requires a custom file type, whereas the others can be processed with the Java Resources File Type. You could create a file type group for the file requiring the custom file type and configure the project type or AIS property for that file's folder to use this file type group.
The other properties file would have to be in a different folder and could default to the Java Resources File Type, based on their text/properties MIME type.
Assigning multiple file type configurations to a single AIS property value
| MIME Type | File Type | File Type Config |
|---|---|---|
| application/dita+xml | OASIS DITA XML File Type | Default |
| application/xhtml+xml | XHTML 1.1 File Type | Default |
| text/xml | Any XML File Type | My XML Config |
Then, when you select the folder in which the files to be segmented are located, you can select the appropriate file type group from the file type configuration list in the Change Properties dialog box.
The effect of deleting custom MIME types, file types, or file type configurations on file type groups
- The list of file type groups in the system is examined to see if the MIME type is referenced.
- If at least one file type group references the MIME type, a warning is issued listing all file type group references.
- The list of file type groups in the system is examined to see if the file type is referenced.
- If at least one file type group references the file type, a warning is issued listing all file type group references.
- The list of file type groups in the system will be examined to see if the file type configuration is referenced.
- If at least one file type group references the file type configuration, a warning will be added to the delete dialog that lists all file type group references.
The effect of deleting a file type group
If you delete a file type group that is used by one or more project types or AIS property assignments, the assignments remain, but the values of the assignments become empty. This changes the affected region of AIS to the default file type and file type configuration values defined by the MIME type configuration.