W3C home > Mailing lists > Public > www-forms@w3.org > November 2006

Styling based on instance data

From: Klotz, Leigh <Leigh.Klotz@xerox.com>
Date: Thu, 30 Nov 2006 15:37:00 -0800
Message-ID: <E254B0A7E0268949ABFE5EA97B7D0CF402856F6E@usa7061ms01.na.xerox.net>
To: "www-forms" <www-forms@w3.org>

Itwouldbeniceif you could use CSS to style the background of repeat
items yellow if they are "selected" in the data using some magical CSS
XPath selector:

<style type="text/css">
e/@selected))] { background-color: yellow; }

<repeat class="lines" nodeset="lines/line">
  <input ref="@selected">
    <label class="columnHeader">X</label>
  <output ref="date">
    <label class="columnHeader">Date</label>
  <output ref="name">
    <label class="columnHeader">Name</label>
Received on Thursday, 30 November 2006 23:37:31 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:36:19 UTC