This shows you the differences between the selected revision and the current version of the page.
| document_format_descriptors 2008/06/29 20:51 | document_format_descriptors 2008/06/29 20:56 current | ||
|---|---|---|---|
| Line 26: | Line 26: | ||
| It follows the general philosophy of the FreeDesktop desktop files. First you have the usual XML declaration. After it, a root ''format'' element under the XMLEye document format descriptor namespace will include the following children: | It follows the general philosophy of the FreeDesktop desktop files. First you have the usual XML declaration. After it, a root ''format'' element under the XMLEye document format descriptor namespace will include the following children: | ||
| - | * one or more ''name'' elements, listing the string to be used in the file selector in the Open dialog. You can add a ''language'' attribute indicating the ISO 3166 country code (let it be C) and optionally also the ISO 639 language code (L), separated with a hyphen, like "en" or "en-US". | + | * one or more ''name'' elements, listing the string to be used in the file selector in the Open dialog. You can add a ''language'' attribute indicating the ISO 3166 country code and optionally also the ISO 639 language code, separated with a hyphen, like "en" or "en-US". |
| * an ''edit_cmd'' with the command to be used for launching the editor. ''%s'' will be substituted here for the full path to the current document's source file. | * an ''edit_cmd'' with the command to be used for launching the editor. ''%s'' will be substituted here for the full path to the current document's source file. | ||
| * optionally, an ''import_cmd'' detailing the command to be used to launch the converter. As before, ''%s'' will be replaced with the full path to the opened non-XML file. Its standard output will be used as the final input document to be browsed. | * optionally, an ''import_cmd'' detailing the command to be used to launch the converter. As before, ''%s'' will be replaced with the full path to the opened non-XML file. Its standard output will be used as the final input document to be browsed. | ||
| - | * several ''extension'' elements inside an ''extensions'' element. This is how XMLEye can determine what format a specific file is opened as, even if you use the "All files" option in the file selector. Right now, XMLEye cannot use magic cookies or look at the contents of the file itself to detect the format, but it might in the future. | + | * several ''extension'' elements inside an ''extensions'' element. This is how XMLEye can determine what format a specific file is opened as, even if you use the "All files" option in the file selector. Right now, XMLEye cannot use magic cookies or look in any way at the contents of the file itself to detect the format. |
| ====== Customizing DFDs from the user interface ====== | ====== Customizing DFDs from the user interface ====== | ||