Content
This element should appear inside a conditions element. A rule's conditions should contain one and only one content element. The content element should also have a uri attribute. It is used to bind a variable to a content node during matching. When using a tree with the 'flags' attribute set to 'dont-build-content', use a treeitem element instead.
この要素は conditions 要素内に置く必要がある。ルールの conditions 要素はきっかり一つの content 要素を持つ必要がある。 content 要素は uri 属性を持つ必要もある。これは条件合致判定の際に変数と内容ノードを結びつけるために利用される。 flags 属性を 'dont-build-content' に設定している tree 要素を利用する場合は、 treeitem 要素を代わりに使うこと。
属性:
XUL Element から継承:
プロパティとメソッド:
tag
This may be set to a tag name. If set, the conditions will only match if the template builder is parsing content for an element directly inside this tag. For example, by using a value of 'treechildren', the condition will only match when placing elements directly inside a treechildren tag. Thus, nested elements will not match because they are directly inside a treeitem. This attribute is useful to provide different rules for outer and inner elements.
これにはタグ名を設定する。設定すると、このタグ内に直に置かれた要素について、テンプレートビルダが内容を解析している場合にのみ、条件は一致する。例えば、'treechildren' の値を使うと、 treechildren タグ内に直に置いた要素にのみ、条件は一致する。こうすると、ネストした要素は treeitem 内に直に置かれるため、一致しない。この属性は、外側と内側の要素に異なるルールを適用するのに使える。
uri
Used to specify the variable name for the content. When a rule is evaluated, it scans through each resource in the RDF datasource looking for a match. Each resource is placed in the variable specified in the uri attribute in turn. Then, the other rules are evaluated for a match. This attribute should always be present.
内容に変数名を付けるのに使う。ルールが評価されるとき、一致を探して RDF データソースの各リソースをスキャンする。各リソースは uri 属性で指定した変数に順に置き換えられる。それから別のルールが一致について評価される。常にこの属性を持っている必要がある。
XUL Element から継承:
Element から継承: