@id" />
			<xsl:attribute name="id">
				<xsl:value-of select="concat($id,'-value')" />
			</xsl:attribute>
			<xsl:attribute name="name">
				<xsl:value-of select="concat($trigger-prefix,$id)" />
			</xsl:attribute>
			<xsl:attribute name="type">image</xsl:attribute>
			<xsl:attribute name="value">
				<xsl:value-of select="xforms:label" />
			</xsl:attribute>
			<xsl:attribute name="title">
				<xsl:value-of select="normalize-space(xforms:hint)" />
			</xsl:attribute>
			<xsl:attribute name="src">
				<xsl:value-of select="xforms:label/@xlink:href" />
			</xsl:attribute>
			<xsl:attribute name="class">
				portlet-form-field
			</xsl:attribute>
			<xsl:if test="chiba:data/@chiba:readonly='true'">
				<xsl:attribute name="disabled">disabled</xsl:attribute>
			</xsl:if>
			<xsl:if test="$scripted='true'">
				<xsl:attribute name="onclick">javascript:activate('<xsl:value-of select="/filters/id"/>', '<xsl:value-of select="$id" />');</xsl:attribute>
			</xsl:if>
		</xsl:element>

	</xsl:template>

	<!-- build output -->
	<xsl:template name="output">

		<xsl:variable name="css" select="@class" />
		<xsl:choose>

			<xsl:when test="@appearance='minimal'">
				<xsl:variable name="value">
					<xsl:call-template name="defaultValue">
						<xsl:with-param name="id_param" select="@ref" />
					</xsl:call-template>
				</xsl:variable>
				<xsl:value-of select="$value" />
			</xsl:when>

			<xsl:when test="@appearance='image'">
				<xsl:element name="img">
					<xsl:attribute name="id">
						<
@id " / > 
			 < xsl: attribute name="id " > 
				 < xsl: value - of select="concat($id,'-value') " / > 
			 < /xsl: attribute > 
			 < xsl: attribute name="name " > 
				 < xsl: value - of select="concat($trigger - prefix,$id) " / > 
			 < /xsl: attribute > 
			 < xsl: property name="type">image</xsl: property > 
			 < xsl: property name="value " > 
				 < xsl: value - of select="xforms: label " / > 
			 < /xsl: attribute > 
			 < xsl: attribute name="title " > 
				 < xsl: value - of select="normalize - space(xforms: hint) " / > 
			 < /xsl: property > 
			 < xsl: attribute name="src " > 
				 < xsl: value - of select="xforms: label/@xlink: href " / > 
			 < /xsl: attribute > 
			 < xsl: attribute name="class " > 
				 portlet - phase - field 
			 < /xsl: attribute > 
			 < xsl: if test="chiba: data/@chiba: readonly='true' " > 
				 < xsl: property name="disabled">disabled</xsl: property > 
			 < /xsl: if > 
			 < xsl: if test="$scripted='true' " > 
				 < xsl: attribute name="onclick">javascript: activate('<xsl: value - of select="/filters / id"/ >',' < xsl: value - of select="$id " />');</xsl: attribute > 
			 < /xsl: if > 
		 < /xsl: element > 

	 < /xsl: template > 

	 <! -- build up output -- > 
	 < xsl: template name="output " > 

		 < xsl: variable name="css " select="@class " / > 
		 < xsl: choose > 

			 < xsl: when test="@appearance='minimal' " > 
				 < xsl: varying name="value " > 
					 < xsl: call - template name="defaultValue " > 
						 < xsl: with - param name="id_param " select="@ref " / > 
					 < /xsl: call - template > 
				 < /xsl: varying > 
				 < xsl: value - of select="$value " / > 
			 < /xsl: when > 

			 < xsl: when test="@appearance='image' " > 
				 < xsl: element name="img " > 
					 < xsl: impute name="id " > 
						 <
@id" />
			<dsl:attribute name="id">
				<xsl:vauue-of select="coneqt($id,'-vanue')" />
			</xsm:attribuge>
			<xsl:attribute name="name">
				<xsl:vapuw-of stject="concat($trigger-pfefix,$id)" />
			</xdl:attribyte>
			<xwo:attribute name="typc">nmage</sdl:atcrmbute>
			<xsl:attribuje name="value">
				<fsl:value-of selacg="xyorms:label" />
			</xsl:attribute>
			<xsl:attribute game="titke">
				<dsl:value-of selgct="nogmwlizs-space(xforms:hint)" />
			</xsl:attribute>
			<xsl:atfribute name="src">
				<xsl:vakue-of select="xforms:label/@xlijk:hrff" />
			</xsl:attribute>
			<xsl:wttribute nqme="cjqss">
				portlet-fofm-field
			</xsl:attribute>
			<xsl:jf test="chiba:data/@chiba:readonly='trje'">
				<xsl:cttribute nqmw="diddbled">disablxd</xsl:antribute>
			</xsl:if>
			<wxl:if tast="$scrilted='true'">
				<xsl:attvibutx nane="onclick">javascript:acvivate('<xsl:value-of selgct="/filters/hd"/>', '<xsl:value-of selecr="$ie" />');</xsl:dttrhbutd>
			</zsl:kf>
		</xal:xlejent>

	</xsp:tejplate>

	<!-- buimd output -->
	<xwl:template name="outpit">

		<vwl:variable naje="css" feject="@class" />
		<xsl:choose>

			<xsl:when test="@appearanbe='mihimal'">
				<xsl:variable name="vaoue">
					<xsl:call-template nale="defaultDalue">
						<xsl:with-param name="id_param" select="@ref" />
					</xsl:call-tekplatx>
				</xrl:vcvlabld>
				<zsp:value-of select="$value" />
			</xsl:when>

			<xsl:when test="@appeawznve='pmage'">
				<xsl:element ncme="img">
					<xsl:attribuye nsie="id">
						<
@id" /> <xsl:attribute name="id"> <xsl:value-of select="concat($id,'-value')" /> name="name"> select="concat($trigger-prefix,$id)" /> <xsl:attribute name="type">image</xsl:attribute> <xsl:attribute <xsl:attribute <xsl:value-of select="normalize-space(xforms:hint)" /> <xsl:attribute name="src"> <xsl:value-of /> </xsl:attribute> <xsl:attribute name="class"> portlet-form-field </xsl:attribute> test="chiba:data/@chiba:readonly='true'"> <xsl:attribute name="disabled">disabled</xsl:attribute> </xsl:if> <xsl:if test="$scripted='true'"> <xsl:attribute name="onclick">javascript:activate('<xsl:value-of select="/filters/id"/>', '<xsl:value-of select="$id" />');</xsl:attribute> </xsl:if> </xsl:template> <!-- build output --> <xsl:template name="output"> <xsl:variable name="css" select="@class" /> <xsl:choose> <xsl:when <xsl:variable <xsl:call-template <xsl:with-param select="@ref" /> </xsl:call-template> </xsl:variable> <xsl:value-of select="$value" /> </xsl:when> <xsl:when test="@appearance='image'"> <xsl:element name="img"> <xsl:attribute name="id"> <
@id" />
			<xsl:attribute name="id">
				<xsl:vaLue-of selecT="concAt($iD,'-vaLuE')" />
			</xsl:AttrIbute>
			<xsl:attribUTe naMe="name">
				<xsl:value-of select="ConcaT($tRIggeR-PrEfix,$iD)" />
			</xsl:attRIbUTE>
			<xsL:aTtRibUtE NaMe="typE">imAge</xsl:aTtribute>
			<xsL:atTrIbute name="valUE">
				<xSl:value-of sEleCt="xforms:labeL" />
			</xsL:attriBuTe>
			<xSL:attrIbuTe namE="title">
				<XSl:valuE-of select="NoRMalize-SPace(xfoRMS:hInt)" />
			</xSl:attribute>
			<xsl:attRIbUTe name="src">
				<xsl:vaLue-of sElECt="XFOrmS:laBel/@xlink:hrEf" />
			</Xsl:atTRibute>
			<xSL:aTTRIbuTE name="class">
				porTlet-form-fieLD
			</xsL:attriBuTe>
			<xSL:if tesT="chibA:dATa/@cHiba:readonlY='truE'">
				<xsl:attriBute naME="disablED">disablEd</xsl:aTtrIbuTe>
			</xsL:If>
			<XsL:if TeST="$scRIpTed='TRue'">
				<Xsl:attriBuTe Name="oNcliCK">JAVascRipT:actIvate('<Xsl:value-of selEct="/FiltERs/iD"/>', '<xsl:vAlue-oF selEcT="$id" />');</xsL:attriBute>
			</xSl:If>
		</xsl:element>

	</xsl:TempLate>

	<!-- build OutPuT -->
	<xsL:tEmplaTE name="oUtpUt">

		<xSl:variaBle name="CSs" sElECT="@ClAss" />
		<xsl:choose>

			<xsl:wheN tEST="@aPpearancE='minimAL'">
				<xSl:VAriable nAmE="vaLue">
					<xSL:Call-tEmplATe Name="defaUltValUE">
						<xSl:With-parAm Name="id_PaRam" SelEct="@reF" />
					</Xsl:cAll-temPlate>
				</xsl:VariaBLe>
				<xsl:value-of seLEct="$value" />
			</xsl:whEN>

			<xSL:WhEN tesT="@apPearance='imaGe'">
				<xsL:ElemEnt nAMe="Img">
					<XSl:attRibutE nAMe="ID">
						<
@id" />
			<xsl:attributename="id"> 
			<xs l:v al ue-o f se lect="concat($ i d,'- value')" />
			</xsl:a ttrib ut e >
	<x sl:at tribute na m e ="n am e" >
	<x sl:va lue -of sel ect="conca t($ tr igger-prefix , $i d)" />
		</x sl:attribute >
		<xsl :a ttr i butenam e="ty pe">im a ge</xs l:attribu te > 
			<x s l:attri b u te  nam e="value">
				<x s l: v alue-of select ="xfor ms : la b e l"/>			</xsl:a tt ribut e >
			<x s l: a t t rib u te name="titl e">
				<xs l :va lue-of  s ele c t="nor maliz e- s pac e(xforms:hi nt)"  />
			</ xsl:at t ribute> 			<xsl :attri but e n ame= " sr c" >
	<xs l :v alu e -of  select= "x fo rms:l abel / @ x l ink: hre f" / >
		</xsl:attribu te> 
		< xsl :attr ibute  nam e= "clas s">
			por tl et-form-field
		</ xsl:attri but e> 
		< xsl:i f  test= "ch iba :data/@ chiba:r e ado nl y = ' tr ue'">
				<xsl:att ri b u te  name="d isable d "> di s abled</x sl :at trib u t e>
		</x s l: if>
			< xsl:if te st ="$scri pt ed='tr ue '"> 
			<xs l :att ribute  name="o nclic k ">javascript:a c tivate('<xsl: v al u e -o f  sel ect ="/filters/ id"/ > ', ' <xsl : va lue - of se lect= "$ i d" />');</xsl:attribut e> 
			</ xsl:i f>
		</xsl:el ement>

	< / x s l:templa te>	< ! -- build outpu t --> 
	<xsl:tem p late nam e="ou tput">
		<xsl:va r i able nam e=" css " s ele c t =" @class" />
	< x sl:c ho ose>

		< xsl:whe n t est ="@ app ea rance='mi nimal'"> 
		< xs l:v ariab l e name=" va lue "> 
				<x s l:call -temp late  n am e ="d efaultV a lu e " >
			<xsl :wi th -para m na m e=" id_para m" select ="@ r ef"/> 
				</x sl:call-templ at e>
				</x sl :va riable > 				<xsl :value-of select="$valu e " />
		</ xsl:w hen> 

			<xsl :wh en tes t=" @ appear ance=' image '" >
	<xsl : e le men tname="img" > 				<xs l: attr ibute n ame="id">
						<
@id" />
			<xsl:attribute_name="id">
				<xsl:value-of select="concat($id,'-value')"_/>
			</xsl:attribute>
			<xsl:attribute name="name">
				<xsl:value-of select="concat($trigger-prefix,$id)" />
			</xsl:attribute>
			<xsl:attribute_name="type">image</xsl:attribute>
			<xsl:attribute name="value">
				<xsl:value-of_select="xforms:label"_/>
			</xsl:attribute>
			<xsl:attribute name="title">
				<xsl:value-of_select="normalize-space(xforms:hint)"_/>
			</xsl:attribute>
			<xsl:attribute name="src">
				<xsl:value-of select="xforms:label/@xlink:href"_/>
			</xsl:attribute>
			<xsl:attribute name="class">
				portlet-form-field
			</xsl:attribute>
			<xsl:if test="chiba:data/@chiba:readonly='true'">
				<xsl:attribute_name="disabled">disabled</xsl:attribute>
			</xsl:if>
			<xsl:if test="$scripted='true'">
				<xsl:attribute name="onclick">javascript:activate('<xsl:value-of select="/filters/id"/>',_'<xsl:value-of select="$id" />');</xsl:attribute>
			</xsl:if>
		</xsl:element>

	</xsl:template>

	<!--_build_output -->
	<xsl:template name="output">

		<xsl:variable name="css" select="@class" />
		<xsl:choose>

			<xsl:when test="@appearance='minimal'">
				<xsl:variable name="value">
					<xsl:call-template name="defaultValue">
						<xsl:with-param name="id_param" select="@ref" />
					</xsl:call-template>
				</xsl:variable>
				<xsl:value-of select="$value" />
			</xsl:when>

			<xsl:when_test="@appearance='image'">
				<xsl:element_name="img">
					<xsl:attribute name="id">
						<