General XMetaL Discussion
tonys April 1, 2010 at 11:15 pm
Order of elements in find/replace dialog drop-downsApril 1, 2010 at 11:15 pmParticipants 0Replies 1Last Activity 12 years, 10 months ago
What determines the order in which elements appear in the drop-down lists in the Find/Replace dialog?
The elements appear in alphabetical order for a document using the DocBook DTD, but for another document that uses a proprietary schema the order is not terribly useful (see attached). I think this order is basically the order in which elements appear in the schema.
Is this a basic difference between DTDs and schemas, and is there a way to change it?
Tony S.Derek Read April 1, 2010 at 11:47 pm
Reply to: Order of elements in find/replace dialog drop-downsApril 1, 2010 at 11:47 pm
DTD is definitely sorted. The behavior for W3C Schema seems to be unsorted, and likely as they are declared.
There would be no way to alter this behavior given the current software functionality. If you would like to add some feature to control this (beyond simply always having the list sorted) I would suggest discussing the exact needs with XMetaL Support.
I do see right away that attempting to find an element for DocBook (Schema) in particular would be quite difficult due to the enormous number of elements allowed in that Schema and it makes sense to just always sort this list alphabetically (for all Schemas). I will file that as a request.
- You must be logged in to reply to this topic.