Textnode

Normally when substituting RDF resources in template rules, you place the RDF property name inside an attribute value preceded with 'rdf:'. In the case of the textnode element, the entire node is replaced with text corresponding to the result of the value attribute.

This is useful if you want to use the html element or other elements that have text content inside them instead of in attributes. This element does nothing outside of a template.

通常、テンプレート規則における RDF リソースの置き換えでは、属性値において、先頭に 'rdf:' が付いた RDF プロパティ名を与える。 textnode 要素の場合は、ノード全体が value 属性の評価結果に対応するテキストに置き換えられる。

属性としてではなく子としてテキスト内容を持つ html の要素やその他の要素を使用したい場合に、この要素は役立つ [訳注 : html にはリンクが貼られていたが、html という要素はない。リンク削除。]。この要素は template 要素の外では何も行わない。

属性:

value

属性:

value

Type: URL of an RDF predicate

The text value to display. This value should be an RDF property.

型 : URL of an RDF predicate

表示するテキスト値。この値は RDF プロパティでなければならない。

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

プロパティとメソッド:

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