Andreas Kemkes wrote:
> I would like to use variants ala DITA (e.g.,
> audience="general manager").  At the same time, I
> would like to provide style sheets that show the
> document with all variants as well as just a specific
> one.
> 
> My current thinking is that it would be nice to just
> provide one style sheet for all specific variants by
> prompting the user for the variant value(s), let's say
> "manager", and use that value in the style sheet to
> filter the content to be displayed.
> 
> Is this even possible within the architecture of
> XMLMind?

Yes. You need to write a macro command which prompts the user and then
invokes a process command, passing it what the user has specified.

* http://www.xmlmind.com/xmleditor/_distrib/doc/commands/ch02.html
* http://www.xmlmind.com/xmleditor/_distrib/doc/commands/prompt.html
* http://www.xmlmind.com/xmleditor/_distrib/doc/commands/process.html


> If yes, is there an example to look at?

Any ``Convert'' macro-command. For example, look at
XXE_install_dir/addon/config/docbook/xslMenu.incl



> Or, are there other and better ways to accomplish the
> same?

No. This seems fine.

Reply via email to