Re: [Xsltforms-support] A new way for configuration and extensibility
Brought to you by:
alain-couthures
From: Tambet M. <tam...@gm...> - 2010-01-12 08:11:09
|
Javier Díaz wrote: > > Apart from this, I have a little doubt that i don't know if is related > xforms or xsltforms implementation. > > I have an xform with this model: > > <xf:model id="orden"> > <!--<xf:model id="orden" > schema="/opt/GEREMIAS/GRM/SPCI_T/XSD/ATLASv2/ICX-interno2.xsd">--> > <xf:instance> > ... xml data ... > </xf:instance> > * <xf:instance id="datos"> > <datos_seleccion> > <vct><elm>admin1</elm><elm>admin1 (cca1)</elm></vct> > <vct><elm>admin2</elm><elm>admin2 (cca2)</elm></vct> > </datos_seleccion> > </xf:instance>* > > "datos" is an auxiliar instance used with the following itemset of a > select to fill the first instance: > > <xf:select1 ref="/SELECCION/DATO_ELEGIDO" > appearance="compact"> > <xf:label>Datos</xf:label> > * <xf:itemset model="orden" > nodeset="instance('datos')/vct">* > * <xf:label ref="elm[2]"></xf:label><xf:value > ref="elm[1]"></xf:value> > </xf:itemset>* > </xf:select1> > > It works ok but surprisingly only if I skip the root node! Is this > correct? Shouldn't be better *instance('datos')/datos_seleccion/vct* ? This is by specification. See the example besides instance() function: http://www.w3.org/TR/xforms11/#fn-instance. Puzzled me too first time. Tambet |