Ulrich_Laegeler at arburg.com wrote:
> Hello,
> 
> i have a schema whith an any element
> 
> <xs:element name="Content">
>     <xs:complexType>
>         <xs:sequence>
>             <xs:any namespace="##other" maxOccurs="unbounded"/>
>         </xs:sequence>
>     </xs:complexType>
> </xs:element>
> 
> If i now insert other elements via the xmlmind command
> 
> <command name="insert" parameter="into {http://www.arburg.com/other}Test"/>
> 
> it works fine.
> 
> But if i insert the same via a templete it doesn't work
> 
> <command name="insert" parameter="into #template
> ({http://www.arburg.com/other}Test,Test)"/>
> 
> <cfg:elementTemplate xmlns="http://www.arburg.com/other"; name="Test"
> selectable="override">
>     <Test/>
> </cfg:elementTemplate>
> 
> Any idea's?
> 

Not sure. However I doubt that we have a bug related to element
templates because this feature is extensively used in all the stock
configurations.

--> With selectable="override", #template(XXX,YYY) is *not* needed (and
may be it is harmful):

<command name="insert"
parameter="into {http://www.arburg.com/other}Test"/>

will insert your element template.

--> Without selectable="override", #template(XXX,YYY) is indeed needed
and what follows should work fine.

<command name="insert"
parameter="into #template({http://www.arburg.com/other}Test,Test)"/>


Reply via email to