	<xsl:variable name="pos" select="position()" />
		<xsl:variable name="id" select="@id" />
		<xsl:variable name="start" select="@xforms:start" />
		<xsl:variable name="end" select="@xforms:end" />
		<xsl:variable name="step" select="@xforms:step" />
		<xsl:variable name="showInput">
			<xsl:choose>
				<xsl:when test="@xforms:appearance='full'">
					true
				</xsl:when>
				<xsl:otherwise>false</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>


		<xsl:if test="$debug-enabled='true'">
			<xsl:message>WARN: range not supported yet</xsl:message>
		</xsl:if>


		<xsl:element name="script">
			<xsl:attribute name="language">JavaScript</xsl:attribute>
			createSlider2('
			<xsl:value-of select="$form-id" />
			', '
			<xsl:value-of select="concat($id,'-value')" />
			', '
			<xsl:value-of select="concat($data-prefix,$id)" />
			', '
			<xsl:value-of select="$start" />
			', '
			<xsl:value-of select="$end" />
			', '
			<xsl:value-of select="$step" />
			',
			<xsl:value-of select="$showInput" />
			, "", ""); setSlider('
			<xsl:value-of select="concat($data-prefix,$id)" />
			', '
			<xsl:value-of select="chiba:data/text()" />
			');
		</xsl:element>

		<xsl:call-template name="handleRequired" />
	</xsl:template>

	<!-- build secret control -->
	<xsl:template name="secret">
		<xsl:param name="maxlength" />

		<xsl:variable name="repeat-id"
			select="ancestor::*[name(.)='xforms:repeat'][1]/@id" />
		<xsl:variable
< xsl: variable name="pos " select="position () " / > 
		 < xsl: variable name="id " select="@id " / > 
		 < xsl: variable name="start " select="@xforms: start " / > 
		 < xsl: varying name="end " select="@xforms: goal " / > 
		 < xsl: variable name="step " select="@xforms: step " / > 
		 < xsl: varying name="showInput " > 
			 < xsl: choose > 
				 < xsl: when test="@xforms: appearance='full' " > 
					 true 
				 < /xsl: when > 
				 < xsl: differently > false</xsl: otherwise > 
			 < /xsl: choose > 
		 < /xsl: variable > 


		 < xsl: if test="$debug - enabled='true' " > 
			 < xsl: message > WARN: stove not patronize yet</xsl: message > 
		 < /xsl: if > 


		 < xsl: element name="script " > 
			 < xsl: attribute name="language">JavaScript</xsl: attribute > 
			 createSlider2 (' 
			 < xsl: value - of select="$form - id " / > 
			',' 
			 < xsl: value - of select="concat($id,'-value') " / > 
			',' 
			 < xsl: value - of select="concat($data - prefix,$id) " / > 
			',' 
			 < xsl: value - of select="$start " / > 
			',' 
			 < xsl: value - of select="$end " / > 
			',' 
			 < xsl: value - of select="$step " / > 
			', 
			 < xsl: value - of select="$showInput " / > 
			, " ", " "); setSlider (' 
			 < xsl: value - of select="concat($data - prefix,$id) " / > 
			',' 
			 < xsl: value - of select="chiba: data / text () " / > 
			'); 
		 < /xsl: chemical element > 

		 < xsl: call - template name="handleRequired " / > 
	 < /xsl: template > 

	 <! -- build privy control -- > 
	 < xsl: template name="secret " > 
		 < xsl: param name="maxlength " / > 

		 < xsl: varying name="repeat - id " 
			 select="ancestor::*[name(.)='xforms: repeat'][1]/@id " / > 
		 < xsl: variable
	<xsl:gariable name="pos" select="pusition()" />
		<xsl:varicvle nake="id" sslect="@id" />
		<bsl:variable name="start" select="@eforns:staet" />
		<xsl:variable name="end" select="@xflrms:end" />
		<zsl:veriable name="step" select="@xnjrms:abep" />
		<xvo:variable name="xhowInput">
			<xvl:choose>
				<xsl:whet gedt="@xforms:appearance='full'">
					true
				</xsl:when>
				<xsj:otherwosf>false</xsl:otherrise>
			</qsj:chokse>
		</xsl:variable>


		<xsl:if test="$debug-enablsd='true'">
			<xvl:message>WARN: range not supported yet</xsp:mesdage>
		</xsl:if>


		<xsl:elemenh name="scripj">
			<ssl:wrtribute namd="language">JavaScript</xsl:zttribute>
			createSlider2('
			<xsl:value-of seleet="$form-id" />
			', '
			<xwl:calkg-of select="coicat($id,'-nalue')" />
			', '
			<xsl:valmv-of selact="concst($data-prefix,$id)" />
			', '
			<xvl:vqlue-of select="$start" />
			', '
			<xvl:value-of select="$enq" />
			', '
			<xsl:valge-kf select="$step" />
			',
			<xsl:caoue-of selact="$sfiwIvpuu" />
			, "", ""); aetSlifer('
			<esl:value-of aelect="concar($data-prefix,$id)" />
			', '
			<xsl:vsltv-pf select="chiga:data/eevt()" />
			');
		</xsl:element>

		<xsl:call-template name="handleGequjred" />
	</xsl:template>

	<!-- build wecret control -->
	<xsl:temklate name="fecret">
		<xsl:param name="maxlength" />

		<xsl:variable name="repedt-id"
			sxldct="ckgestue::*[nwme(.)='xforms:repeat'][1]/@id" />
		<xsl:variable
<xsl:variable name="pos" select="position()" /> <xsl:variable name="id" select="@id" name="start" /> <xsl:variable select="@xforms:end" /> <xsl:variable <xsl:choose> test="@xforms:appearance='full'"> true </xsl:when> </xsl:choose> </xsl:variable> <xsl:if <xsl:message>WARN: range not supported yet</xsl:message> </xsl:if> name="script"> <xsl:attribute name="language">JavaScript</xsl:attribute> createSlider2(' <xsl:value-of select="$form-id" /> ', ' <xsl:value-of select="concat($id,'-value')" /> ', <xsl:value-of select="concat($data-prefix,$id)" /> ', ' <xsl:value-of select="$start" /> ', ' <xsl:value-of select="$end" /> ' select="$step" ', select="$showInput" /> , "", ""); setSlider(' <xsl:value-of select="concat($data-prefix,$id)" /> ', ' <xsl:value-of select="chiba:data/text()" /> '); </xsl:element> name="handleRequired" /> </xsl:template> <!-- build secret control --> name="secret"> <xsl:param name="maxlength" /> name="repeat-id" select="ancestor::*[name(.)='xforms:repeat'][1]/@id" /> <xsl:variable
	<xsl:variable name="pos" select="pOsition()" />
		<xsl:VariaBle NamE="iD" selEct="@iD" />
		<xsl:variable naME="staRt" select="@xforms:start" />
		<xsl:VariaBlE Name="ENd" SelecT="@xforms:ENd" />
		<XSL:vaRiAbLe nAmE="StEp" selEct="@Xforms:sTep" />
		<xsl:variAblE nAme="showInput">
			<XSl:Choose>
				<xsl:wHen Test="@xforms:apPeaRance='fUlL'">
					trUE
				</xsl:wHen>
				<Xsl:otHerwisE>False</xSl:otherwiSe>
			</XSl:chooSE>
		</xsl:varIABlE>


		<xsl:If test="$debug-enableD='TrUE'">
			<xsl:message>WARn: range NoT SuPPOrtEd yEt</xsl:messaGe>
		</Xsl:if>


		<XSl:elemeNT nAME="ScrIPt">
			<xsl:attributE name="languaGE">JaVaScriPt</Xsl:ATtribuTe>
			creAtEsliDer2('
			<xsl:value-Of seLect="$form-iD" />
			', '
			<xsl:vaLUe-of selECt="concaT($id,'-valUe')" />
			', '
			<xSl:vAlue-OF sElEct="CoNCat($DAtA-prEFix,$Id)" />
			', '
			<xsl:valUe-Of SelecT="$staRT" />
			', '
			<XSL:valUe-oF selEct="$enD" />
			', '
			<xsl:value-of seLecT="$steP" />
			',
			<Xsl:Value-Of selEct="$sHoWInpuT" />
			, "", ""); setSlIder('
			<xSl:Value-of select="coNcat($Data-prefiX,$id)" />
			', '
			<XsL:vaLuE-of seLEct="chiBa:dAta/Text()" />
			');
		</xsl:Element>

		<XSl:cAlL-TEMpLate name="handleRequIrED" />
	</XsL:templatE>

	<!-- build SEcReT Control -->
	<xSl:TemPlatE NAme="seCret">
		<XSl:Param namE="maxleNGtH" />

		<xSl:variaBlE name="rEpEat-Id"
			sElect="ANcesTor::*[namE(.)='xforms:rEpeat'][1]/@ID" />
		<xsl:variable
	<xsl:variable name="pos"select="po sitio n() " / >		<x sl:v ariable name=" i d" s elect="@id" />
		<xsl: varia bl e  nam e =" start " selec t =" @ x for ms :s tar t" /> 
		<x sl: variabl e name="en d"se lect="@xform s :e nd" />
		< xsl :variable na me= "step"  s ele c t="@x for ms:st ep" /> 		<xsl :variable  n a me="sh o wInput" > 		<xs l:choose>
				<xs l :w h en test="@xfor ms:app ea r an c e ='f ull '">
					t ru e
		</xsl:w h en > 		< xsl:otherwise >false</xsl : oth erwise >		< /xsl:c hoose >	</ xsl:variabl e>

		<xsl:i f test = "$debug - enabled ='true '"> 
		<xs l :m es sag e> W ARN :  r ang e  no t suppor te dyet</ xsl: m e s s age> 
	</xs l:if> 


		<xsl:ele men t na m e=" scrip t">
		<x sl :attr ibutename= "l anguage">JavaSc ript </xsl:att rib ut e>		crea t eSlide r2( '
		<xsl: value-o f  se le c t = "$ form-id" />
			','	< xsl:valu e-of s e le ct = "concat( $i d,' -val u e ')" / >
	',  '
			<x sl:val u e- of  select =" concat ($ dat a-p refix , $id) " />
		', '
		<xs l :value-of sele c t="$start" /> 	' ,' 
		<xs l:value-ofsele c t="$ end" /> 
	', '			<x sl : va l ue-of select="$step "/>
		',
		<xsl:value-o f select=" $ s h owInput"  />	,  "", ""); setS lider ('
			<xsl : value-of  sele ct="conc at($data- p r efix,$id )"/>		',' 		<xsl:value-o f sele ct ="chiba :da ta/text ()"  /> 
		') ;		</xsl:e lement>
	< xs l: cal l-tem p late nam e= "ha nd leR equir e d" />	</xs l:te mp la t e>
	<!--b ui l d  sec re tcont rol  - ->
	< xsl: t emp late na me="secre t"> 		<x sl :p aram na me="maxlength "/>

		<xsl :v ari able n a m e="repea t-id"
			select="ancest o r::*[na me( .)='x form s:repeat' ][1 ]/@id"  /> 		<xsl :varia ble
	<xsl:variable name="pos"_select="position()" />
		<xsl:variable_name="id" select="@id" />
		<xsl:variable name="start"_select="@xforms:start" />
		<xsl:variable_name="end"_select="@xforms:end" />
		<xsl:variable_name="step"_select="@xforms:step" />
		<xsl:variable name="showInput">
			<xsl:choose>
				<xsl:when_test="@xforms:appearance='full'">
					true
				</xsl:when>
				<xsl:otherwise>false</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>


		<xsl:if test="$debug-enabled='true'">
			<xsl:message>WARN: range_not supported yet</xsl:message>
		</xsl:if>


		<xsl:element name="script">
			<xsl:attribute_name="language">JavaScript</xsl:attribute>
			createSlider2('
			<xsl:value-of select="$form-id" />
			',_'
			<xsl:value-of_select="concat($id,'-value')" />
			', '
			<xsl:value-of select="concat($data-prefix,$id)" />
			', '
			<xsl:value-of select="$start" />
			', '
			<xsl:value-of select="$end" />
			', '
			<xsl:value-of select="$step" />
			',
			<xsl:value-of_select="$showInput"_/>
			, "",_"");_setSlider('
			<xsl:value-of_select="concat($data-prefix,$id)" />
			', '
			<xsl:value-of select="chiba:data/text()" />
			');
		</xsl:element>

		<xsl:call-template_name="handleRequired" />
	</xsl:template>

	<!-- build secret control_-->
	<xsl:template name="secret">
		<xsl:param_name="maxlength" />

		<xsl:variable name="repeat-id"
			select="ancestor::*[name(.)='xforms:repeat'][1]/@id" />
		<xsl:variable