On Thursday, January 15, 2004, at 03:36  AM, Hussein Shafie wrote:

> Alex Milowski wrote:
>> What I'd really like to be able to do is have one configuration with 
>> for different
>> but related schemas.  Why I create or open a particular schema, I'd 
>> like the right
>> CSS stylesheet to be chosen.  I don't see a way to do this with one 
>> configuration
>> file.  Is this possible?
>
> No, there is no way to do that (well, may be with a format plug-in 
> even if here the format is XML -- because the format plug-in can 
> dynamically specify which style sheet to use).
>
> XXE is currently designed to allow to do this:
>
> * Create several configuration files, each configuration file just 
> containing 3 elements:
>
> ** <include location="my_common_config_for_all_related_schemas.incl" />
> ** <detect ...>
> ** <css ...>
>
> But this is probably not sufficient for your needs. From what I've 
> understood you are in the process of creating hundred schemas.
>

It really isn't that extreme.  I have a family of schemas that encode a 
few different
document types using the same general building blocks.  I want to be 
able to
detect the different types and apply the right CSS stylesheet.  
Everything else in
the configuration is the same.

Obviously, I can create different configurations but that really isn't 
optimal.  That
would cause all of the templates to be listed under separate headings 
when a use
creates a new document.

Alex Milowski                FAX: (707) 598-7649                        
  alex at milowski.com

"The excellence of grammar as a guide is proportional to the paucity of 
the
inflexions, i.e. to the degree of analysis effected by the language
considered."

Bertrand Russell in a footnote of Principles of Mathematics



Reply via email to