Hi list,

I am still stuck with the problem, that I can't use elementTemplates
properly.
All I get is a selected Element, but the strucutre defined in my
elementTemplate doesn't get inserted
after it.
I am able to insert the strucutre by hand, so there should be no
validation issue.

Here is my code:

<cfg:command name="docb.addAfter">
    <cfg:macro>
        <cfg:sequence>
        <cfg:command name="selectNode"
parameter="ancestorOrSelf[implicitElement]
{http://www.lexisnexis.at/schema/norm}absatz
{http://www.lexisnexis.at/schema/norm}zaehlung
{http://www.lexisnexis.at/schema/norm}liste
{http://www.lexisnexis.at/schema/norm}tabelle"/>
        <cfg:command name="insert" parameter="after[implicitElement]
#template(*,simple)"/>
        </cfg:sequence>
    </cfg:macro>
</cfg:command>

<cfg:elementTemplate xmlns="http://www.lexisnexis.at/schema/norm";
name="simple" selectable="override">
    <table frame="none">
        <tgroup cols="2">
        <colspec colname="col1" colnum="1" colsep="0" colwidth="0.7*"
rowsep="0"/>
        <colspec colname="col2" colnum="2" colsep="0" colwidth="4.7*"
rowsep="0"/>
        <tbody>
            <row>
                <entry/>
                <entry/>
            </row>
            <row>
                <entry/>
                <entry/>
            </row>
        </tbody>
        </tgroup>
    </table>
</cfg:elementTemplate>

I tried nearly every possible combination. I also defined my namespace
directly in the table element (which seems more correct to me), but
after reading the examples in the documentation, I decided to try it
this way.

Please help me in my desperate situation.

wbr,
Roman

_______________________________________

Roman Huditsch
IT and Electronic Publishing
LexisNexis ARD Orac 
Marxergasse 25
1030 Vienna
Austria 
ph: +43-1-534 52-1514
f: +43-1-534 52-140
e-mail roman.huditsch at lexisnexis.at
www.lexisnexis.at

Reply via email to