OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

pps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: conditional data for basic elements


numerical data, time and duration data, and text data
can have constraints for their value. These constraints
are used for data query messages.

数値データ、時刻データ、文字データは、制約条件を
付加することができます。とうめん、これはクエリに
のみ利用しますが、スケジュールの制約等の表現のために
将来利用されることもあるかもしれません。

For numerical data, <min> and <max> can be defined.
Similar to them, <earliest> and <latest> are for time
data, <shortest> and <longest> are for duration, and
<enumerate> is used to enumerate candidates of a
text data.

数値データとしては、<min>,<max>が、時刻データとしては、
<earliest>,<latest>が、時間データとしては、<shortest>,
<longest>が、そして文字データとしては、<enumerate>
が定義されています。

For example, price is "less or equal than 100 yen" is 
represented by

基本的な使い方は、対象要素タグの子として定義することで
その値の範囲(制約条件)を表します。たとえば、100円
以下を表す場合には、以下のようになります。

<price unit="yen"><max value="100"/></price>

そのXMLのおかれたコンテキストが制約条件を表す場合には、
通常の値の表現は、値の一致(制約条件)となります。

If the price is "less than 100 yen," then use an exclusive
attribute such as

もし、100円未満を表したい場合には、以下のように
exclusive属性を利用します。

<price unit="yen"><max value="100" exclusive="true"/></price>

For text data, <enumerate> tag can represent the candidates.
An example would be

文字データに対して範囲指定したい場合には、該当する
要素をすべて<enumerate>タグで列挙します。exclusive属性
をtrueとして、該当しない要素を指定することもできます。

<spec name="status">
  <char>
    <enumerate value="ready"/>
    <enumerate value="done"/>
  </char>
</spec>

-- 
Yasu Nissy (Yasuyuki NISHIOKA), Dr.Eng.
MIT, 41-211
77 Massachusetts Ave
Cambridge MA 02139
Phone 617-452-2982, Fax 617-253-2249
nishioka@mit.edu <nishioka@k.hosei.ac.jp>


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]