cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

The PTC Community email address has changed to community-mailer@ptc.com. Learn more.

finding element definitions in Styler that are absent in the document type

jsulak
1-Newbie

finding element definitions in Styler that are absent in the document type

Hello Adepters,



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.



Thanks,



-James



James Sulak | Electronic Publishing Developer

Jones McClure Publishing

3131 Eastside, Suite 300, Houston, Texas 77098

Phone: 713.335.8264 | Fax: 713.335.8201

jsulak@jonesmcclure.com <">mailto:jsulak@jonesmcclure.com>



2 REPLIES 2

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
-


jsulak
1-Newbie
(To:jsulak)

Good idea. Thanks, John. I'll give that a try.

-James

James Sulak | Electronic Publishing Developer
Jones McClure Publishing
3131 Eastside, Suite 300, Houston, Texas 77098
Phone: 713.335.8264 | Fax:713.335.8201
jsulak@jonesmcclure.com