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.

More information about content

この要素は conditions 要素内に置く必要がある。ルールの conditions 要素はきっかり一つの content 要素を持つ必要がある。 content 要素は uri 属性を持つ必要もある。これは条件合致判定の際に変数と内容ノードを結びつけるために利用される。 flags 属性を 'dont-build-content' に設定している tree 要素を利用する場合は、 treeitem 要素を代わりに使うこと。

content の追加情報

プロパティとメソッド:

tag uri

属性:

XUL Element から継承:

align allowevents allownegativeassertions class coalesceduplicatearcs
collapsed container containment context contextmenu
datasources debug dir empty equalsize
flags flex height hidden id
insertafter insertbefore left maxheight maxwidth
menu minheight minwidth mousethrough observes
ordinal orient pack persist popup
position ref removeelement sortDirection sortResource
sortResource2 statustext style template tooltip
tooltiptext top uri wait-cursor width

プロパティとメソッド:

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 から継承:

align allowEvents blur boxObject boxObject.element
boxObject.getLookAndFeelMetric boxObject.height boxObject.screenX boxObject.screenY boxObject.width
boxObject.x boxObject.y builder className click
collapsed contextMenu controllers database datasources
dir doCommand flex focus getElementsByAttribute
height hidden id left maxHeight
maxWidth menu minHeight minWidth observes
ordinal orient pack persist ref
resource statusText style tooltip tooltipText
top width

Element から継承:

addEventListener
appendChild
attributes
childNodes
cloneNode
dispatchEvent
firstChild
getAttribute
getAttributeNS
getAttributeNode
getAttributeNodeNS
getElementsByTagName
getElementsByTagNameNS
hasAttribute
hasAttributeNS
hasAttributes
hasChildNodes
insertBefore
isSupported
lastChild
localName
namespaceURI
nextSibling
nodeName
nodeType
nodeValue
normalize
ownerDocument
parentNode
prefix
previousSibling
removeAttribute
removeAttributeNS
removeAttributeNode
removeChild
removeEventListener
replaceChild
setAttribute
setAttributeNS
setAttributeNode
setAttributeNodeNS
tagName

Copyright (C) 1999 - 2004 XulPlanet.com