Hi,

could we add some unique key to the commands? That way we could have a
more reliable way to know which command is which. It is useful when you
use cd:inherit and refer to a command, such as color (which can be an
environment or a standalone command) or commands with variants. It even
removes the need for the variant=".." which is not perfect (see
setupinterlinespace2 for example, it has variant 2 but there is no
setupinterlinespace2 with variant 1). 

example:

  <cd:command id="d1e311" name="setuplanguage" file="lang-ini.tex" category="lan
guage">
    <cd:sequence>
      <cd:string value="setuplanguage"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
        <cd:resolve name="language"/>
      </cd:keywords>
      <cd:assignments n="2" list="yes">
        <cd:inherit ref="d1e177" name="installlanguage" n="2"/>
      </cd:assignments>
    </cd:arguments>
  </cd:command>

  <cd:command id="d1e177" name="installlanguage" file="lang-ini.tex" category="l
anguage">
    <cd:sequence>
      <cd:string value="installlanguage"/>
    </cd:sequence>
    <cd:arguments>
      <cd:keywords n="1">
...
...


The attached file generates unique ids for the commands and puts them
into the cd:inerit elements (only those that are not set yet)

Patrick

Attachment: add_id.xsl
Description: Binary data


-- 
ConTeXt wiki and more: http://contextgarden.net
_______________________________________________
dev-context mailing list
[email protected]
http://www.ntg.nl/mailman/listinfo/dev-context

Reply via email to