Hi problem with <xsl:if > in <xforms:repeat>

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Hi problem with <xsl:if > in <xforms:repeat>

Laxmi Narayana-3
Hi All,
 I need to display entire row with  one color when condition matches like this <xsl:if test="interactionsubtype='Outbound' />
But this condition is not checked by xforms why?
can i use <xsl:if> inside xforms:repeat or not ?
 
I used  like below
 <font color="Orange"><xforms:output ref="interactionsubtype[text()='Outbound']"/></font>
  <font color="Green"><xforms:output ref="interactionsubtype[text()='Inbound']"/></font>
it checks only that column.

 

how to achive this one in xforms?

 
<xforms:repeat nodeset="instance('main-instance')/records/record" id="repeattransaction">
 <td><xforms:output ref="worktype"/></td>
 <td><xforms:output ref="transtype"/></td>
 <td>
  <font color="Orange"><xforms:output ref="interactionsubtype[text()='Outbound']"/></font>
  <font color="Green"><xforms:output ref="interactionsubtype[text()='Inbound']"/></font>
 </td>
 <td><xforms:output ref="info"/></td>
 
</xforms:repeat >
 
 
Please help me this is high priority task in my project.
 
 
Thanks in advance,
Laxmi Narayana.


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Hi problem with <xsl:if > in <xforms:repeat>

fl.schmitt(ops-users)
Laxmi,

> how to achive this one in xforms?

take a look at the avt-zebra sandbox example:

http://www.orbeon.com/ops/xforms-sandbox/sample/avt-zebra

it shows how to apply different CSS rules depending on the position(), i
think one can change it to any other condition desired.

HTH
florian




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws