A propos d'Arbortext Styler > Creating a Basic Stylesheet > Migrating Stylesheets from a Previous Release
  
Migrating Stylesheets from a Previous Release
It is good practice to check whether your existing feuille de style.style files need updating when you install a new release of Arbortext Styler. Stylesheets from previous releases might not be compatible with the current release of the product. When you open a feuille de style from a previous release in the current release of the product, Arbortext Styler might prompt you to update the feuille de style. In this case, follow the prompts and your feuille de style will be updated automatically. Note that you must save the feuille de style for the updates to be permanent.
Following are two ways to update existing feuille de styles:
To update a feuille de style in Arbortext Styler:
1. In Arbortext Styler, select File > Open.
The Open Stylesheet dialog box opens.
2. Select a feuille de style developed in a previous release in the Available Stylesheets list.
3. Select OK to close the dialog box and open the feuille de style in Arbortext Styler.
If the feuille de style needs updating, Arbortext Styler prompts you to perform the update. If you do not perform the update, the feuille de style will not be usable in the current product release.
This is an image of the Arbortext Styler warning advising you that your style file is out of date, and verifying that you wish to update it
4. Follow the prompts to update the feuille de style.
Make sure you save the feuille de style to make the updates permanent. Note that after you save the updated .style file, it cannot be used by previous releases of PTC Arbortext software. The automatic updating process does save a backup of the original stylesheet, however, that you can access if necessary.
5. Perform this operation for all feuille de styles you are migrating to the upgraded release. Be sure to check all custom directories your site uses for feuille de style.style files.
To update a feuille de style in Arbortext Editor:
1. In Arbortext Editor, select Format > Select Stylesheets.
The Select Stylesheets dialog box opens.
2. Highlight the current Editor/Default stylesheet and select the Modify button.
The Modify Editor/Default Stylesheet Selection dialog box opens.
3. Select a feuille de style developed in a previous release in the Available Stylesheets for Editor/Default list, or add a new one via the Add button.
4. Select the Select button to close the dialog box and set the feuille de style as the Editor/Default stylesheet.
If the feuille de style needs updating, Arbortext Editor prompts you to perform the update. If you do not perform the update, the feuille de style will not be usable in the current product release.
This is an image of the Arbortext Styler warning advising you that your style file is out of date, and verifying that you wish to update it
5. Follow the prompts to update the feuille de style.
6. Select the Close button to close the Select Stylesheets dialog box.
7. Make sure you save the feuille de style to make the updates permanent. After you save the updated .style file, it cannot be used by previous releases of PTC Arbortext software. The automatic updating process saves a backup of the original stylesheet, that you can access if necessary.
8. Perform this operation for all feuille de styles you are migrating to the upgraded release. Be sure to check all custom directories your site uses for feuille de style.style files.
If your stylesheet contains edited source for elements that was created in an earlier release of Arbortext Styler, or you suspect that it may, it is useful to review the stylesheet with this in mind when you wish to update it. You may need to recreate existing source code edits to take into account any new features introduced in the release.
Refer to Editing Stylesheet Source Overview for details about editing the source of an element context.