Hi,
This is a question from a relatively new user of xxe.
I'm trying to do an xxe that one can entry in an interlinear text (the
language text, the gloss text and the free translation). I have it all
working except the part were one would press F12 (I would eventually have
the key be a SPACE | TAB keys though) where it would generates another
langData and gloss.
I have:
<cfg:binding>
<cfg:keyPressed code="F12"/>
<cfg:command name="newWords"/>
</cfg:binding>
<cfg:command name="newWords">
<cfg:macro>
<cfg:sequence>
<cfg:command name="alert" parameter="before insert try 1"/>
<cfg:pass>
<cfg:match context="$implicitElement" pattern="Int:langData |
Int:gloss"></cfg:match>
</cfg:pass>
<cfg:command name="alert" parameter="before insert try 2"/>
<cfg:command name="insert" parameter="after[implicitElement]
#template(Int:words,interlinearization_1_g_free)"/>
</cfg:sequence>
</cfg:macro>
</cfg:command>
<cfg:elementTemplate name="interlinearization_1_g_free">
<Int:words>
<Int:word>
<Int:langData lang="l"/>
</Int:word>
<Int:word>
<Int:gloss lang="l"/>
</Int:word>
</Int:words>
</cfg:elementTemplate>
When I run the xxe and fill in the first langData and press F12 I get the
first alert message but not the second one. Could anyone tell me what I did
wrong or can you point me in the right direction? Any help would be
appreciated.
Scott