Hello,

I have recently updated to last version of xsltforms and it fails with
the attached xform. With r528 it works. I think it is related with
schemas of the form.

The error that appears is:

XSLTForms Exception
--------------------------

Error initializing :

([object
Object],"xsltforms-mainform-pattern-0")@http://localhost/xsltforms/xsltforms.js:4621
XsltForms_avt([object
Object],"xsltforms-mainform-pattern-0","value",[object
Object])@http://localhost/xsltforms/xsltforms.js:4953
xsltforms_initImpl()@http://localhost/xsltforms.data/schema_error.xml:140
xsltforms_init()@http://localhost/xsltforms.data/schema_error.xml:2
onload([object Event])@http://localhost/xsltforms.data/schema_error.xml:1


TypeError

this.element is null

Best Regards,
Javier















************************************************************************************************************************************************
*La información contenida en este mensaje de correo electrónico es confidencial 
y puede revestir el carácter de reservada.   *
*Está dirigida exclusivamente a la persona destinataria.                        
                                                                           *
*El acceso o cualquier uso por parte de cualquier otra persona de este mensaje 
no están autorizados y pueden ser ilegales.*
*Si no es Ud. la persona destinataria, le rogamos que proceda a borrarlo.       
                                                                   *
*The information in this e-mail is confidential and may be legally privileged.  
                                                                      *
*It is intended solely for the addressee.                                       
                                                                                
    *
*Access or any use by any other person to this Internet e-mail is not 
authorised and may be unlawful.                                 *
*If you are not the intended recipient, please delete this e-mail.              
                                                                           *
************************************************************************************************************************************************
 
<?xml version="1.0" encoding="iso-8859-15"?>
<?xml-stylesheet href="/xsltforms/xsltforms.xsl" type="text/xsl"?><html xmlns="http://www.w3.org/1999/xhtml"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:ajx="http://www.ajaxforms.net/2006/ajx"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:txs="http://www.agencexml.com/txs"; xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"; xmlns:dcterms="http://purl.org/dc/terms/"; xmlns:encriptador="java://es.tid.geremias.nucleo.encriptacion.GRMGestorEncriptador">
  <head>
    <title>Formulario POLITICA INTERCONEXION</title>
    <xf:model xmlns:xf="http://www.w3.org/2002/xforms"; id="orden">
	
	    <xf:instance id="ordenXML"><ACT_INTERCONEXION_IP xmlns="" xmlns:ev="http://www.w3.org/2001/xml-events"; xmlns:gp="http://tid.es/geremias/presentacion"; xmlns:local="http://tid.es/geremias/schema";>
			    <ID_CIRCUITO>
				<COD_CIRCUITO/>
			    </ID_CIRCUITO>
			    <TRAZADO>
				<POLITICA_INTERCONEXION>
				    <ID_POLITICA_ICX/>
				    <COD_TW_OPERADOR/>
				    <MEDIDA_TRAFICO/>
				    <INTERCONEXION>
					<ID_INTERCONEXION/>
					<pPAI_IP>
					    <ID_PPAI_IP/>
					    <PRIORIDAD/>
					</pPAI_IP>
					<ROUTING>
					    <Tipo_Routing/>
					    <AS_BGP/>
					    <BFD/>
					</ROUTING>
					<EQUIPOS>
					    <TIPO/>
					    <Dir_IP/>
					    <Sondeable/>
					</EQUIPOS>
				    </INTERCONEXION>
				</POLITICA_INTERCONEXION>
			    </TRAZADO>
			</ACT_INTERCONEXION_IP></xf:instance>
	    <xf:instance id="plantilla"><ACT_INTERCONEXION_IP xmlns="http://tid.es/geremias/plugin"; xmlns:ev="http://www.w3.org/2001/xml-events"; xmlns:gp="http://tid.es/geremias/presentacion"; xmlns:local="http://tid.es/geremias/schema";>
                            <ID_CIRCUITO>
                                <COD_CIRCUITO/>
                            </ID_CIRCUITO>
                            <TRAZADO>
                                <POLITICA_INTERCONEXION>
                                    <ID_POLITICA_ICX/>
                                    <COD_TW_OPERADOR/>
                                    <MEDIDA_TRAFICO/>
                                    <INTERCONEXION>
                                        <ID_INTERCONEXION/>
                                        <pPAI_IP>
                                            <ID_PPAI_IP/>
                                            <PRIORIDAD/>
                                        </pPAI_IP>
                                        <ROUTING>
                                            <Tipo_Routing/>
					    					<AS_BGP/>
                                            <BFD/>
                                        </ROUTING>
                                        <EQUIPOS>
                                            <TIPO/>
                                            <Dir_IP/>
                                            <Sondeable/>
                                        </EQUIPOS>
                                    </INTERCONEXION>
                                </POLITICA_INTERCONEXION>
                            </TRAZADO>
                        </ACT_INTERCONEXION_IP></xf:instance>


        
		
	    <xsd:schema attributeFormDefault="unqualified" elementFormDefault="unqualified" targetNamespace="http://tid.es/geremias/schema";>
		      
	<xsd:simpleType name="IP_TYPE">
	  <xsd:restriction base="xsd:string">
	    <xsd:pattern value="(|(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9])\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[0-9]))"/>
	  </xsd:restriction>
	</xsd:simpleType>

        <xsd:simpleType name="MASK_TYPE">
          <xsd:restriction base="xsd:string">
            <xsd:pattern value="(|(((128|192|224|24(0|8)|25(2|4|5))\.0|255\.(128|192|224|24(0|8)|25(2|4|5)))\.0\.0|255\.255\.((128|192|224|24(0|8)|25(2|4|5))\.0|255\.(128|192|224|24(0|8)|25(2|4|5)))))"/>
          </xsd:restriction>
        </xsd:simpleType>

        <xsd:simpleType name="COD_CIRCUITO_TYPE">
         <xsd:restriction base="xsd:string">
           <xsd:pattern value="^$|^\d{8}$|^\d{11}$"/>
           
         </xsd:restriction>
        </xsd:simpleType>

        <xsd:simpleType name="PUERTO_ADMIN_TYPE">
         <xsd:restriction base="xsd:string">
           <xsd:pattern value="^$|^\d{9}$"/>
         </xsd:restriction>
        </xsd:simpleType>

        <xsd:simpleType name="PUERTO_FISICO_TYPE">
		 <xsd:restriction base="xsd:string">
		   <xsd:pattern value="^$|^\d{9}$"/>
		 </xsd:restriction>
        </xsd:simpleType>

       <xsd:simpleType name="VLAN_TYPE">
         <xsd:restriction base="xsd:integer">
           <xsd:minInclusive value="1"/>
           <xsd:maxInclusive value="4096"/>
         </xsd:restriction>
       </xsd:simpleType>

	<xsd:simpleType name="ID_COMERCIAL_SERVICIO">
	   <xsd:restriction base="xsd:string">
	   	<xsd:length value="14"/>
	   </xsd:restriction>
	</xsd:simpleType>

        <xsd:simpleType name="INT_TYPE">
		 <xsd:restriction base="xsd:string">
		   <xsd:pattern value="^$|^\d*$"/>
		 </xsd:restriction>
        </xsd:simpleType>


		</xsd:schema>



	    
        
        

            
	   <xf:instance id="estado"><ESTADO xmlns="" xmlns:ev="http://www.w3.org/2001/xml-events"; xmlns:gp="http://tid.es/geremias/presentacion"; xmlns:local="http://tid.es/geremias/schema";>
              <ACCION>ALTA</ACCION>
              <CRITERIO>NUEVA</CRITERIO>
		      <PRIMITIVA>FOTO_FINAL</PRIMITIVA>
              <TIPOESTADO>OPERATIVO</TIPOESTADO>
              <URL>ICX/COMUNES/lanzaPrimitiva.xml&amp;GEREMIAS_RESPUESTA=whitehtml&amp;XML=XFORM&amp;GRM_TARGET=SPCI</URL>
              <URL_ENTERA/>
              <BORRADO>0</BORRADO>
		      <SELECCION>
	              <OPERADOR/>
				  <ITX>
			            <PPAI/>
                     	<EQUIPO/>
				  </ITX>
		      </SELECCION>
             </ESTADO></xf:instance>
	   
        <xf:instance id="operadores"><data xmlns="" xmlns:ev="http://www.w3.org/2001/xml-events"; xmlns:gp="http://tid.es/geremias/presentacion"; xmlns:local="http://tid.es/geremias/schema";>
           </data></xf:instance>

        <xf:instance id="ppaiOp"><data xmlns="" xmlns:ev="http://www.w3.org/2001/xml-events"; xmlns:gp="http://tid.es/geremias/presentacion"; xmlns:local="http://tid.es/geremias/schema";>
           </data></xf:instance>

        <xf:instance id="plantillaBusq"><SELECCION xmlns="" xmlns:ev="http://www.w3.org/2001/xml-events"; xmlns:gp="http://tid.es/geremias/presentacion"; xmlns:local="http://tid.es/geremias/schema";>
				<ITX>
			            <PPAI/>
                     	<EQUIPO/>
				</ITX>
	    	</SELECCION></xf:instance>

        
        
              
                               
           

        <xf:instance id="trigger-aux"><data xmlns="" xmlns:ev="http://www.w3.org/2001/xml-events"; xmlns:gp="http://tid.es/geremias/presentacion"; xmlns:local="http://tid.es/geremias/schema";>
              <activar_add>SI</activar_add>
              <activar_del>SI</activar_del>
           </data></xf:instance>


        <xf:bind constraint="true()" nodeset="/ACT_INTERCONEXION_IP/ID_CIRCUITO/COD_CIRCUITO" readonly="false()" relevant="true()" required="true()" type="local:COD_CIRCUITO_TYPE"/>
        <xf:bind constraint="" nodeset="/ACT_INTERCONEXION_IP/TRAZADO/POLITICA_INTERCONEXION/ID_POLITICA_ICX" readonly="false()" relevant="true()" required="true()" type="xsd:string"/>

        <xf:bind constraint="true()" nodeset="/ACT_INTERCONEXION_IP/TRAZADO/POLITICA_INTERCONEXION/COD_TW_OPERADOR" readonly="false()" relevant="true()" required="true()" type="xsd:string"/>
        <xf:bind constraint="true()" nodeset="/ACT_INTERCONEXION_IP/TRAZADO/POLITICA_INTERCONEXION/MEDIDA_TRAFICO" readonly="false()" relevant="true()" required="true()" type="xsd:string"/>
        <xf:bind constraint="count(../../INTERCONEXION[ID_INTERCONEXION = current()]) &lt; 2" nodeset="/ACT_INTERCONEXION_IP/TRAZADO/POLITICA_INTERCONEXION/INTERCONEXION[*]/ID_INTERCONEXION" readonly="false()" relevant="true()" required="true()" type="xsd:string"/>
        <xf:bind constraint="true()" nodeset="/ACT_INTERCONEXION_IP/TRAZADO/POLITICA_INTERCONEXION/INTERCONEXION[*]/pPAI_IP[*]" readonly="false()" relevant="true()" required="true()" type="xsd:string"/>
        <xf:bind constraint="count(../../pPAI_IP[ID_PPAI_IP = current()]) &lt; 2" nodeset="/ACT_INTERCONEXION_IP/TRAZADO/POLITICA_INTERCONEXION/INTERCONEXION[*]/pPAI_IP[*]/ID_PPAI_IP" readonly="false()" relevant="true()" required="true()" type="xsd:string"/>
        <xf:bind calculate="" constraint="true()" nodeset="/ACT_INTERCONEXION_IP/TRAZADO/POLITICA_INTERCONEXION/INTERCONEXION[*]/pPAI_IP[*]/PRIORIDAD" readonly="false()" relevant="true()" required="true()" type="xsd:string"/>
        <xf:bind constraint="true()" nodeset="/ACT_INTERCONEXION_IP/TRAZADO/POLITICA_INTERCONEXION/INTERCONEXION[*]/ROUTING/Tipo_Routing" readonly="false()" relevant="true()" required="true()" type="xsd:string"/>
        <xf:bind constraint="true()" nodeset="/ACT_INTERCONEXION_IP/TRAZADO/POLITICA_INTERCONEXION/INTERCONEXION[*]/ROUTING/AS_BGP" readonly="false()" relevant="../Tipo_Routing = 'EBGP'" required="true()" type="xsd:integer"/>
        <xf:bind constraint="true()" nodeset="/ACT_INTERCONEXION_IP/TRAZADO/POLITICA_INTERCONEXION/INTERCONEXION[*]/ROUTING/BFD" readonly="false()" relevant="true()" required="false()" type="xsd:string"/>
        <xf:bind constraint="true()" nodeset="/ACT_INTERCONEXION_IP/TRAZADO/POLITICA_INTERCONEXION/INTERCONEXION[*]/EQUIPOS[*]/TIPO" readonly="false()" relevant="true()" required="true()" type="xsd:string"/>
        <xf:bind constraint="count(../../EQUIPOS[Dir_IP = current()]) &lt; 2" nodeset="/ACT_INTERCONEXION_IP/TRAZADO/POLITICA_INTERCONEXION/INTERCONEXION[*]/EQUIPOS[*]/Dir_IP" readonly="false()" relevant="true()" required="true()" type="local:IP_TYPE"/>
        <xf:bind constraint="true()" nodeset="/ACT_INTERCONEXION_IP/TRAZADO/POLITICA_INTERCONEXION/INTERCONEXION[*]/EQUIPOS[*]/Sondeable" readonly="false()" relevant="true()" required="true()" type="xsd:string"/>

	    <xf:bind calculate="concat(instance('estado')/URL,'&amp;accion=',instance('estado')/ACCION,'&amp;primitiva=',instance('estado')/PRIMITIVA,'&amp;tipoEstado=',instance('estado')/TIPOESTADO)" constraint="true()" nodeset="instance('estado')/URL_ENTERA" readonly="false()" relevant="instance('estado')/ACCION != 'CONSULTA'" required="true()" type="xsd:string"/>
	    <xf:bind constraint="true()" nodeset="instance('estado')/PRIMITIVA" readonly="false() or instance('estado')/ACCION = 'MODIFICACION'" relevant="instance('estado')/ACCION != 'CONSULTA'" required="true()" type="xsd:string"/>
	    <xf:bind constraint="true()" nodeset="instance('estado')/TIPOESTADO" readonly="false()" relevant="instance('estado')/ACCION != 'CONSULTA'" required="true()" type="xsd:string"/>

        <xf:bind nodeset="instance('trigger-aux')/activar_add" relevant=". = 'SI'"/>
        <xf:bind nodeset="instance('trigger-aux')/activar_del" relevant=". = 'SI'"/>

        <xf:action xmlns:ev="http://www.w3.org/2001/xml-events"; ev:event="xforms-rebuild">
         	<xf:setvalue if="not(compare(instance('estado')/ACCION,'ALTA')) and (instance('estado')/BORRADO = 0)" ref="/ACT_INTERCONEXION_IP/ID_CIRCUITO/COD_CIRCUITO"/>
         	<xf:setvalue if="not(compare(instance('estado')/ACCION,'ALTA')) and (instance('estado')/BORRADO = 0)" ref="/ACT_INTERCONEXION_IP/TRAZADO/POLITICA_INTERCONEXION/ID_POLITICA_ICX"/>
         	<xf:setvalue if="instance('estado')/BORRADO = 0" ref="instance('estado')/BORRADO">1</xf:setvalue>
        </xf:action>

        <xf:submission id="enviarDatos" method="post" replace="all">
             <xf:resource value="instance('estado')/URL_ENTERA"/>
             <xf:message xmlns:ev="http://www.w3.org/2001/xml-events"; ev:event="xforms-submit-error" level="modeless">Error al enviar, compruebe los datos introducidos</xf:message>
        </xf:submission>

	    <xf:submission id="busquedaOperador" instance="operadores" method="get" mode="synchronous" ref="instance('operadores')/vct" replace="instance" serialization="none">
                  <xf:resource value="concat('ICX/CONSULTAS/SUBMIT/consultaOperadores.xml&amp;GEREMIAS_RESPUESTA=xml&amp;GRM_TARGET=SPCI&amp;filtro=', instance('ordenXML')/TRAZADO/POLITICA_INTERCONEXION/COD_TW_OPERADOR)"/>
        </xf:submission>
	    
	    <xf:submission id="busquedaPPAI_Op" instance="ppaiOp" method="get" mode="synchronous" ref="instance('ppaiOp')/vct" replace="instance" serialization="none">
                  <xf:resource value="concat('ICX/CONSULTAS/SUBMIT/consultaPPAI_Operadores.xml&amp;GEREMIAS_RESPUESTA=xml&amp;GRM_TARGET=SPCI&amp;filtro=', instance('ordenXML')/TRAZADO/POLITICA_INTERCONEXION/INTERCONEXION[index('interconexiones')]/pPAI_IP[index('pPAI')]/ID_PPAI_IP, '&amp;operador=', instance('ordenXML')/TRAZADO/POLITICA_INTERCONEXION/COD_TW_OPERADOR) "/>
        </xf:submission>
    </xf:model>
    <xf:model xmlns:xf="http://www.w3.org/2002/xforms"; id="catalogo">
	<xf:instance><catalogo xmlns="" xmlns:ev="http://www.w3.org/2001/xml-events"; xmlns:gp="http://tid.es/geremias/presentacion"; xmlns:local="http://tid.es/geremias/schema";>
			<primitiva>
				
	<vct><elm>FOTO FINAL</elm><elm>FOTO_FINAL</elm><elm>ALTA</elm><elm>ALTA</elm></vct>
	<vct><elm>FOTO FINAL ME</elm><elm>FOTO_FINAL_ME</elm><elm>MODIFICACION</elm><elm>ALTA</elm></vct>
	<vct><elm>FOTO FINAL</elm><elm>FOTO_FINAL</elm><elm>MODIFICACION</elm><elm>ALTA</elm></vct>
	<vct><elm>BAJA TOTAL</elm><elm>BAJA_TOTAL</elm><elm>BAJA</elm><elm>ALTA</elm></vct>
	
			</primitiva>
			<eleccion>
				<vct><elm>Seleccionar...</elm><elm/></vct>
				<vct><elm>SI</elm><elm>SI</elm></vct>
				<vct><elm>NO</elm><elm>NO</elm></vct>
			</eleccion>
			<tipo_routing>
				<vct><elm>Seleccionar...</elm><elm/></vct>
				<vct><elm>ESTATICO</elm><elm>ESTATICO</elm></vct>
				<vct><elm>DINAMICO</elm><elm>EBGP</elm></vct>
			</tipo_routing>
			<tipo_equipo>
				<vct><elm>Seleccionar...</elm><elm/></vct>
				<vct><elm>LNS</elm><elm>LNS</elm></vct>
				<vct><elm>RADIUS</elm><elm>RADIUS</elm></vct>
			</tipo_equipo>
			<prioridad>
				<vct><elm>Seleccionar...</elm><elm/></vct>
				<vct><elm>PRIMARIO</elm><elm>PRIMARIO</elm></vct>
				<vct><elm>SECUNDARIO</elm><elm>SECUNDARIO</elm></vct>
			</prioridad>
			<estado>
				<vct><elm>OPERATIVO</elm><elm>INVENTARIO Y CONFIGURACIÓN</elm></vct>
				<vct><elm>INVENTARIADO</elm><elm>SÓLO INVENTARIO</elm></vct>
			</estado>
		</catalogo></xf:instance>
        </xf:model>
  </head>
  <body onload="init();">
    <div>
	    <div>
		<xf:input xmlns:xf="http://www.w3.org/2002/xforms"; incremental="true" model="orden" ref="/ACT_INTERCONEXION_IP/ID_CIRCUITO/COD_CIRCUITO">
		    <xf:label>Código circuito ATLAS</xf:label>
		    <xf:help>Código de circuito de ATLAS</xf:help>
		    <xf:alert>Campo obligatorio</xf:alert>
		</xf:input>
	    </div>
	</div>
    <xf:group xmlns:xf="http://www.w3.org/2002/xforms"; ref="/ACT_INTERCONEXION_IP/TRAZADO/POLITICA_INTERCONEXION">
            <div>
		<div>
		    <xf:input incremental="true" model="orden" ref="ID_POLITICA_ICX">		
			<xf:label>Id. POLITICA INTERCONEXION</xf:label>
			<xf:help>Administrativo del POLITICA INTERCONEXION</xf:help>
			<xf:alert>Campo obligatorio. Debe de ser único para todo Id. POLITCA</xf:alert>
		    </xf:input>
		</div>
		<div>
		    <xf:input incremental="true" model="orden" ref="COD_TW_OPERADOR">
			<xf:label>Código OPERADOR</xf:label>
			<xf:help>Operador al que está asociado el PAI-IP</xf:help>
			<xf:alert>Campo obligatorio</xf:alert>
			<xf:action xmlns:ev="http://www.w3.org/2001/xml-events"; ev:event="xforms-value-changed">
                                <xf:send if="(string-length(.) &gt; 1) and (instance('estado')/SELECCION/OPERADOR != current())" submission="busquedaOperador"/>
                                <xf:toggle case="show-autocompletionOperador" if="(string-length(.) &gt; 1) and (instance('estado')/SELECCION/OPERADOR != current())"/>
				<xf:toggle case="hide-autocompletionOperador" if="string-length(.) &lt; 2"/>
                        </xf:action>
		    </xf:input>
		</div>
                    <xf:switch>
                        <xf:case id="hide-autocompletionOperador"/>
                        <xf:case id="show-autocompletionOperador">
                            <xf:repeat appearance="select-editable" id="resultadoOp" nodeset="instance('operadores')/vct">
                               <xf:trigger appearance="minimal">
                                  <xf:label><xf:output appearance="select-editable" value="elm[1]"/></xf:label>
                                  <xf:action xmlns:ev="http://www.w3.org/2001/xml-events"; ev:event="DOMActivate">
                                       <xf:setvalue ref="instance('ordenXML')/TRAZADO/POLITICA_INTERCONEXION/COD_TW_OPERADOR" value="instance('operadores')/vct[index('resultadoOp')]/elm[1]"/>
                                       <xf:setvalue ref="instance('estado')/SELECCION/OPERADOR" value="instance('operadores')/vct[index('resultadoOp')]/elm[1]"/>
                                       <xf:toggle case="hide-autocompletionOperador"/>
                                 </xf:action>
                              </xf:trigger>
                           </xf:repeat>
                        </xf:case>
                    </xf:switch>
		<div>
		   <xf:select1 model="orden" ref="MEDIDA_TRAFICO">
			<xf:label>Medida de Tráfico</xf:label>
			<xf:itemset model="catalogo" nodeset="/catalogo/eleccion/vct">
			     <xf:label ref="elm[1]"/><xf:value ref="elm[2]"/>
			</xf:itemset>
			<xf:help>Indicador del volcado</xf:help>
			<xf:alert>Campo obligatorio</xf:alert>
		    </xf:select1>
		</div>
      </div>
      <xf:repeat appearance="full" id="interconexiones" model="orden" nodeset="INTERCONEXION" startindex="1">
		 <div>	   
		  	<xf:label>INTERCONEXION num.<xf:output value="position()"/></xf:label>
		  	<div xmlns="http://tid.es/geremias/plugin"; align="right">
                <xf:trigger appearance="minimal" ref="instance('trigger-aux')/activar_del">
                  <div xmlns="http://www.w3.org/1999/xhtml"/>
                  <xf:action xmlns:ev="http://www.w3.org/2001/xml-events"; ev:event="DOMActivate">
                    <xf:message if="count(instance('ordenXML')/TRAZADO/POLITICA_INTERCONEXION/INTERCONEXION) = 1" level="modeless">No se permite borrar la última interconexión</xf:message>			    	
                    <xf:delete if="count(instance('ordenXML')/TRAZADO/POLITICA_INTERCONEXION/INTERCONEXION) &gt; 1" nodeset="instance('estado')/SELECCION/ITX[index('interconexiones')]"/>
			    	<xf:delete if="count(instance('ordenXML')/TRAZADO/POLITICA_INTERCONEXION/INTERCONEXION) &gt; 1" nodeset="instance('ordenXML')/TRAZADO/POLITICA_INTERCONEXION/INTERCONEXION[index('interconexiones')]"/>
                  </xf:action>
                </xf:trigger>
            </div>              
		  	<br xmlns="http://tid.es/geremias/plugin"/>
		    <div>
			    <xf:input incremental="true" ref="ID_INTERCONEXION">
			       <xf:label>Id. INTERCONEXION</xf:label>
			       <xf:help>Interconexion  de la Politica</xf:help>
			       <xf:alert>Campo obligatorio</xf:alert>
			    </xf:input>
		    </div>
		    <br xmlns="http://tid.es/geremias/plugin"/>
	  	    <xf:group ref="ROUTING">
	     		<xf:label>ENRUTAMIENTO</xf:label>
			    <div>
				   <xf:select1 model="orden" ref="Tipo_Routing">
				   	<xf:label>Tipo Routing</xf:label>
                    <xf:itemset model="catalogo" nodeset="/catalogo/tipo_routing/vct">
                         <xf:label ref="elm[1]"/><xf:value ref="elm[2]"/>
                    </xf:itemset>
					<xf:action xmlns:ev="http://www.w3.org/2001/xml-events"; ev:event="xforms-value-changed">
                         <xf:setvalue if="current() = 'ESTATICO'" ref="../AS_BGP" value=""/>
          			</xf:action>
			        <xf:help>Tipo de Enrutamiento de la Interconexion</xf:help>
                    <xf:alert>Campo obligatorio</xf:alert>
                   </xf:select1>
			    </div>
			    <div>
				    <xf:input incremental="true" ref="AS_BGP">
				       <xf:label>AS_BGP</xf:label>
				       <xf:help>AS_BGP</xf:help>
				       <xf:alert>Campo no obligatorio</xf:alert>
				    </xf:input>
			    </div>
			    <div>
				   <xf:select1 model="orden" ref="BFD">
				        <xf:label>BFD</xf:label>
					<xf:itemset model="catalogo" nodeset="/catalogo/eleccion/vct">
					     <xf:label ref="elm[1]"/><xf:value ref="elm[2]"/>
					</xf:itemset>
				        <xf:help>BFD</xf:help>
					<xf:alert>Campo obligatorio</xf:alert>
				    </xf:select1>
			    </div>
		 	</xf:group>
		 	<br xmlns="http://tid.es/geremias/plugin"/>
			<xf:group>    
	  	        <xf:label>pPAI_IPs</xf:label>
	  	        <table xmlns="http://tid.es/geremias/plugin"; border="1" class="gp-group-table">
			      <thead>
			        <tr>
			          <td width="45%">
			            <xf:trigger appearance="minimal" id="tr_paiip">
			              <xf:label>Id. pPAI_IP </xf:label>
			              <xf:help>Administrativo del PAI</xf:help>
			            </xf:trigger>
			          </td>
			          <td width="45%">
			            <xf:trigger appearance="minimal" id="tr_prioridad">
			              <xf:label>Prioridad</xf:label>
			              <xf:help>Prioridad del PAI</xf:help>
			            </xf:trigger>
			          </td>
			          <td/>
			        </tr>
			      </thead>
				  <tbody>          	        
		    	    <xf:repeat appearance="full" id="pPAI" model="orden" nodeset="pPAI_IP" startindex="1">
			    	    <td>
					        <xf:input class="xforms-value-gtable-width" delay="500" id="in_idppaiip" incremental="true" model="orden" ref="ID_PPAI_IP" width="120px">
						       <xf:alert>Campo obligatorio. No se puede repetir dentro de la misma interconexión</xf:alert>
					           <xf:action xmlns:ev="http://www.w3.org/2001/xml-events"; ev:event="xforms-value-changed">
	                         		<xf:send if="(string-length(.) &gt; 1) and (instance('estado')/SELECCION/ITX[index('interconexiones')]/PPAI[index('pPAI')] != current())" submission="busquedaPPAI_Op"/>
	                         		<xf:toggle case="show-autocompletionPPAI" if="(string-length(.) &gt; 1) and (instance('estado')/SELECCION/ITX[index('interconexiones')]/PPAI[index('pPAI')] != current())"/>
									<xf:toggle case="hide-autocompletionPPAI" if="string-length(.) &lt; 2"/>
			                   </xf:action>
						       <xf:action xmlns:ev="http://www.w3.org/2001/xml-events"; ev:event="DOMFocusIn">
									<xf:send if="((string-length(.) = 0) and (string-length(instance('ordenXML')/TRAZADO/POLITICA_INTERCONEXION/COD_TW_OPERADOR) &gt; 0 )) or ((string-length(.) &gt; 1) and (instance('estado')/SELECCION/ITX[index('interconexiones')]/PPAI[index('pPAI')] != current())) " submission="busquedaPPAI_Op"/>
									<xf:toggle case="show-autocompletionPPAI" if="((string-length(.) = 0) and (string-length(instance('ordenXML')/TRAZADO/POLITICA_INTERCONEXION/COD_TW_OPERADOR) &gt; 0 )) or ((string-length(.) &gt; 1) and (instance('estado')/SELECCION/ITX[index('interconexiones')]/PPAI[index('pPAI')] != current())) "/>
									<xf:toggle case="hide-autocompletionOperador"/>
						       </xf:action>
						    </xf:input>					  
						 </td>
						 <td>	    		    
						   <xf:select1 class="xforms-value-gtable-width" model="orden" ref="PRIORIDAD" width="120px">
					           <xf:itemset model="catalogo" nodeset="/catalogo/prioridad/vct">
		                           <xf:label ref="elm[1]"/><xf:value ref="elm[2]"/>
		                       </xf:itemset>
					           <xf:alert>Campo obligatorio</xf:alert>
	                       </xf:select1>
			   			</td>
			   		    <td>			   		    	
			                <xf:trigger appearance="minimal" ref="instance('trigger-aux')/activar_del">
			                  <div xmlns="http://www.w3.org/1999/xhtml"/>
			                  <xf:action xmlns:ev="http://www.w3.org/2001/xml-events"; ev:event="DOMActivate">
			                  	<xf:message if="count(instance('ordenXML')/TRAZADO/POLITICA_INTERCONEXION/INTERCONEXION[index('interconexiones')]/pPAI_IP) = 1" level="modeless">No se permite borrar el último pPAI_IP</xf:message>           			                  
			                    <xf:delete if="count(instance('ordenXML')/TRAZADO/POLITICA_INTERCONEXION/INTERCONEXION[index('interconexiones')]/pPAI_IP) &gt; 1" nodeset="instance('estado')/SELECCION/ITX[index('interconexiones')]/PPAI[index('pPAI')]"/>
								<xf:delete if="count(instance('ordenXML')/TRAZADO/POLITICA_INTERCONEXION/INTERCONEXION[index('interconexiones')]/pPAI_IP) &gt; 1" nodeset="instance('ordenXML')/TRAZADO/POLITICA_INTERCONEXION/INTERCONEXION[index('interconexiones')]/pPAI_IP[index('pPAI')]"/>
			                  </xf:action>
			                </xf:trigger>				             
			   			</td>		   
			     	</xf:repeat>
		     	</tbody>
		     	</table>
		     	<xf:trigger ref="instance('trigger-aux')/activar_add">
					<xf:label>Añadir pPAI_IP</xf:label>
					<xf:action xmlns:ev="http://www.w3.org/2001/xml-events"; ev:event="DOMActivate">
					    <xf:message if="count(instance('ordenXML')/TRAZADO/POLITICA_INTERCONEXION/INTERCONEXION[index('interconexiones')]/pPAI_IP) = 40" level="modeless">No se permite añadir nuevos pPAI_IP. Máximo 40</xf:message>				                   
						<xf:insert at="last()" if="count(instance('ordenXML')/TRAZADO/POLITICA_INTERCONEXION/INTERCONEXION[index('interconexiones')]/pPAI_IP) &lt; 40" nodeset="instance('ordenXML')/TRAZADO/POLITICA_INTERCONEXION/INTERCONEXION[index('interconexiones')]/pPAI_IP" origin="instance('plantilla')/TRAZADO/POLITICA_INTERCONEXION/INTERCONEXION/pPAI_IP"/>
						<xf:insert at="last()" if="count(instance('ordenXML')/TRAZADO/POLITICA_INTERCONEXION/INTERCONEXION[index('interconexiones')]/pPAI_IP) &lt; 40" nodeset="instance('estado')/SELECCION/ITX[index('interconexiones')]/PPAI" origin="instance('plantillaBusq')/ITX/PPAI"/>
					</xf:action>
			    </xf:trigger>
		     </xf:group>
		     <br xmlns="http://tid.es/geremias/plugin"/>
		     <xf:group>
	  	   		<xf:label>EQUIPOS</xf:label>
	  	   		<table xmlns="http://tid.es/geremias/plugin"; border="1" class="gp-group-table">
			      <thead>
			        <tr>
			          <td width="30%">
			            <xf:trigger appearance="minimal" id="tr_adminequipopai">
			              <xf:label>Tipo de Equipo Operadora</xf:label>
			              <xf:help>Tipo de Equipo LNS/RADIUS</xf:help>
			            </xf:trigger>
			          </td>
			          <td width="35%">
			            <xf:trigger appearance="minimal" id="tr_diipequipopai">
			              <xf:label>Dirección IP</xf:label>
			              <xf:help>Dirección ip del equipo</xf:help>
			            </xf:trigger>
			          </td>
			          <td width="25%">
			            <xf:trigger appearance="minimal" id="tr_equiposondeable">
			              <xf:label>Sondeable</xf:label>
			              <xf:help>Indicador de si el equipo es sondeable</xf:help>
			            </xf:trigger>
			          </td>
			          <td/>
			        </tr>
			      </thead>
				  <tbody>  
				   	<xf:repeat appearance="full" id="equipo" model="orden" nodeset="EQUIPOS" startindex="1">
				   	<td>	                  
	                	<xf:select1 class="xforms-value-gtable-width" model="orden" ref="TIPO" width="100px">
	                       <xf:itemset model="catalogo" nodeset="/catalogo/tipo_equipo/vct">
								<xf:label ref="elm[1]"/><xf:value ref="elm[2]"/>
						   </xf:itemset>	                           
					    	<xf:alert>Campo obligatorio</xf:alert>
				    	</xf:select1>
				    </td>
				    <td> 	
                        <xf:input class="xforms-value-gtable-width" incremental="true" model="orden" ref="Dir_IP" width="120px">
                             <xf:alert>Campo obligatorio.  La IP debe ser válida.</xf:alert>
                        </xf:input>
                    </td>
                    <td>    	                
					    <xf:select1 class="xforms-value-gtable-width" model="orden" ref="Sondeable" width="90px">
							<xf:itemset class="xforms-value-gtable-width" model="catalogo" nodeset="/catalogo/eleccion/vct" width="90px">
							     <xf:label ref="elm[1]"/><xf:value ref="elm[2]"/>
							</xf:itemset>
							<xf:alert>Campo obligatorio</xf:alert>
					    </xf:select1>
				 	</td>
				 	<td>
		 		       <xf:trigger appearance="minimal" ref="instance('trigger-aux')/activar_del">
		                  <div xmlns="http://www.w3.org/1999/xhtml"/>
		                  <xf:action xmlns:ev="http://www.w3.org/2001/xml-events"; ev:event="DOMActivate">
		                    <xf:message if="count(instance('ordenXML')/TRAZADO/POLITICA_INTERCONEXION/INTERCONEXION[index('interconexiones')]/EQUIPOS) = 1" level="modeless">No se permite borrar el último equipo</xf:message>           
		                    <xf:delete if="count(instance('ordenXML')/TRAZADO/POLITICA_INTERCONEXION/INTERCONEXION[index('interconexiones')]/EQUIPOS) &gt; 1" nodeset="instance('ordenXML')/TRAZADO/POLITICA_INTERCONEXION/INTERCONEXION[index('interconexiones')]/EQUIPOS[index('equipo')]"/>
		                  </xf:action>
		                </xf:trigger>				            
				 	</td>
				 	</xf:repeat>
					</tbody>
		   		</table>
		   		<xf:trigger ref="instance('trigger-aux')/activar_add">
	                <xf:label>Añadir Equipo</xf:label>
	                <xf:action xmlns:ev="http://www.w3.org/2001/xml-events"; ev:event="DOMActivate">
	                     <xf:insert at="last()" nodeset="instance('ordenXML')/TRAZADO/POLITICA_INTERCONEXION/INTERCONEXION[index('interconexiones')]/EQUIPOS" origin="instance('plantilla')/TRAZADO/POLITICA_INTERCONEXION/INTERCONEXION/EQUIPOS"/>
	                </xf:action>
          		 </xf:trigger>
		   	</xf:group>	        
		</div>
	</xf:repeat>
	<xf:trigger ref="instance('trigger-aux')/activar_add">
	    <xf:label>Añadir INTERCONEXION</xf:label>
	    <xf:action xmlns:ev="http://www.w3.org/2001/xml-events"; ev:event="DOMActivate">
	        <xf:message if="count(instance('ordenXML')/TRAZADO/POLITICA_INTERCONEXION/INTERCONEXION) = 12" level="modeless">No se permite añadir nuevas interconexiones. Máximo 12</xf:message>
			<xf:insert at="last()" if="count(instance('ordenXML')/TRAZADO/POLITICA_INTERCONEXION/INTERCONEXION) &lt; 12" nodeset="instance('ordenXML')/TRAZADO/POLITICA_INTERCONEXION/INTERCONEXION" origin="instance('plantilla')/TRAZADO/POLITICA_INTERCONEXION/INTERCONEXION"/>
			<xf:insert at="last()" if="count(instance('ordenXML')/TRAZADO/POLITICA_INTERCONEXION/INTERCONEXION) &lt; 12" nodeset="instance('estado')/SELECCION/ITX" origin="instance('plantillaBusq')/ITX"/>
	    </xf:action>
	</xf:trigger>
      
    </xf:group>
    <xf:switch xmlns:xf="http://www.w3.org/2002/xforms";>
		<xf:case id="hide-autocompletionPPAI"/>
		<xf:case id="show-autocompletionPPAI" related-to="in_idppaiip">
		    <xf:repeat appearance="select-editable" id="resultadoPPAI" nodeset="instance('ppaiOp')/vct">
		       <xf:trigger appearance="minimal">
			  <xf:label><xf:output appearance="select-editable" value="elm[1]"/></xf:label>
			  <xf:action xmlns:ev="http://www.w3.org/2001/xml-events"; ev:event="DOMActivate">
			       <xf:setvalue ref="instance('ordenXML')/TRAZADO/POLITICA_INTERCONEXION/INTERCONEXION[index('interconexiones')]/pPAI_IP[index('pPAI')]/ID_PPAI_IP" value="instance('ppaiOp')/vct[index('resultadoPPAI')]/elm[1]"/>
			       <xf:setvalue if="string-length(instance('ordenXML')/TRAZADO/POLITICA_INTERCONEXION/COD_TW_OPERADOR) = 0" ref="instance('estado')/SELECCION/OPERADOR" value="instance('ppaiOp')/vct[index('resultadoPPAI')]/elm[2]"/>
			       <xf:setvalue if="string-length(instance('ordenXML')/TRAZADO/POLITICA_INTERCONEXION/COD_TW_OPERADOR) = 0" ref="instance('ordenXML')/TRAZADO/POLITICA_INTERCONEXION/COD_TW_OPERADOR" value="instance('ppaiOp')/vct[index('resultadoPPAI')]/elm[2]"/>
			       <xf:setvalue ref="instance('estado')/SELECCION/ITX[index('interconexiones')]/PPAI[index('pPAI')]" value="instance('ppaiOp')/vct[index('resultadoPPAI')]/elm[1]"/>
			       <xf:toggle case="hide-autocompletionPPAI"/>
			 </xf:action>
		      </xf:trigger>
		   </xf:repeat>
		</xf:case>
    </xf:switch>
    <div>
		    <div>
			<xf:select1 xmlns:xf="http://www.w3.org/2002/xforms"; ref="instance('estado')/TIPOESTADO">
			    <xf:label>Tipo Estado</xf:label>
			    <xf:itemset model="catalogo" nodeset="/catalogo/estado/vct">
				<xf:label ref="elm[2]"/><xf:value ref="elm[1]"/>
			    </xf:itemset>
			    <xf:help>Modo a ejecutar la provisión</xf:help>
			    <xf:alert>Campo obligatorio</xf:alert>
			</xf:select1>
		    </div>
		    <div>
			<xf:select1 xmlns:xf="http://www.w3.org/2002/xforms"; model="orden" ref="instance('estado')/PRIMITIVA">
			    <xf:label>Primitiva</xf:label>
			    <xf:itemset model="catalogo" nodeset="/catalogo/primitiva/vct[elm[3] = elm[4]]">
				<xf:label ref="elm[1]"/><xf:value ref="elm[2]"/>
			    </xf:itemset>
			    <xf:help>Primitiva a ejecutar</xf:help>
			    <xf:alert>Campo obligatorio</xf:alert>
			</xf:select1>
		    </div>
		   </div>
    <div>
		    <xf:submit xmlns:xf="http://www.w3.org/2002/xforms"; submission="enviarDatos">
			    <xf:label>Enviar datos</xf:label>
		    </xf:submit>
		    <xf:trigger xmlns:xf="http://www.w3.org/2002/xforms";>
			<xf:label>Deshacer cambios</xf:label>
			<xf:reset xmlns:ev="http://www.w3.org/2001/xml-events"; ev:event="DOMActivate"/>
		    </xf:trigger>
		   </div>
  </body>
</html>

<<attachment: jdiaz.vcf>>

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Xsltforms-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xsltforms-support

Reply via email to