finding element definitions in Styler that are absent in the document type
In Styler, is there any easy way to find all of the element definitions for elements that are not in the DTD for that document type? I'm overhauling a DTD, and don't want to forget to remove or rename all of the deprecated element definitions in the stylesheet.
I happened to mention your request to the lead developer for Styler and he came up with a really neat trick.
First, create a new empty stylesheet for an example document in your new DTD. Second, use the Add New Elements... Dialog (under Elements in 5.3) to add all of the declared elements from the DTD as unstyled elements in the new stylesheet. Last, add your existing stylesheet as a module to this new stylesheet.
Assuming that all goes correctly, you should now see 1 or 2 entries for each element.
If 2 entries, then this element was there in the old stylesheet and is still there in the new DTD. If 1 entry and it is has a module name, then it is from the old stylesheet but there is no match in the new DTD. If 1 entry and it is unstyled with no module name, then it is defined by the new DTD but not there in the stylesheet. John Dreystadt Software Development Director Arbortext - PTC 734-352-2835 -