widget:clock-content

Purpose

Defines a markup for the clock digits, separators, AM/PM indicators, as well as the day and month names. It can contain any markup, in particular text and images.

Contained by

Contains

Attribute groups

Attributes

Attribute Description Type Default Options Use
type Specifies an element of the clock xs:string   digit, day, month, separator, ampm  required 
value Sets a value for the specified element xs:string for type set to 'digit': 0-9; for type set to 'day': Sun, Mon, ..., Sat; for type set to 'month': Jan, Feb, ..., Dec; for type set to 'ampm': AM, PM  for type set to 'digit': 0-9; for type set to 'day': 1(Sunday)-7(Saturday); for type set to 'month': 1(January)-12(December); for type set to 'separator': 1(the first separator) - n (the last separator); for type set to 'ampm': am or pm  required 

Example

<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/2002/06/xhtml2"
  xmlns:widget="http://www.volantis.com/xmlns/2006/05/widget">
  <head>
    <title>widget:clock-content</title>
  </head>
  <body>
    <widget:digital-clock id="myClockDoW">
      <widget:clock-content type="day" value="1">Sunday</widget:clock-content>
      <widget:clock-content type="day" value="2">Monday</widget:clock-content>
      <widget:clock-content type="day" value="3">Tuesday</widget:clock-content>
      <widget:clock-content type="day" value="4">Wednesday</widget:clock-content>
      <widget:clock-content type="day" value="5">Thursday</widget:clock-content>
      <widget:clock-content type="day" value="6">Friday</widget:clock-content>
      <widget:clock-content type="day" value="7">Saturday</widget:clock-content>
    </widget:digital-clock>
  </body>
</html>

Related topics