Adam Strzelecki wrote:
> I'm doing some keyboard binding customization that is suppose to work 
> with both docbook and docbook5, however I got some problem how to pass 
> what type of document I'm struggling here as there no macro-variable nor 
> protocol pointing that out.
> 
> I'd love to have %T macro-variable for my customize.xxe that will point 
> to docbook or docbook5, or even to xhtml if necesarry.
> 
>     <binding>
>         <keyPressed code="P" modifiers="mod alt" />
>         <command name="openPS" parameter='pdf %T "/book toc /article 
> toc"'/>
>     </binding>

Less convenient that %T but probably workable, in XXE v4, please use the
value of the 
{http://www.xmlmind.com/xmleditor/namespace/property}configurationName 
document property.

In a macro, it can be obtained like this:

<command name="testIt">
   <macro>
     <sequence>
       <get 
expression="property('{http://www.xmlmind.com/xmleditor/namespace/property}configurationName')"
 
/>
       <command name="alert" parameter="%_"/>
     </sequence>
   </macro>
</command>

<binding>
   <keyPressed code="F3" />
   <command name="testIt" />
</binding>



> I'd love to have possibility to have sthing like xxe-type: protocol that 
> will replace:
> 
> <xsl:import href="xxe-config:docbook/xsl/fo/docbook.xsl"/>
> 
> with:
> 
> <xsl:import href="xxe-type:xsl/fo/docbook.xsl"/>
> 
> As it is not possible to do any kind of conditional imports in XSL.
> 
> Is it hard thing to implement? Would it be feasible to do it in 4.0 
> release ?

Sorry but I don't see how this could implemented.


> Note that it could greatly simplify also bundled docbook & docbook5 
> scripts as then can be actually shared for both configurations.


Reply via email to