moz0906ex.txt

来自「mozilla developer book examples.」· 文本 代码 · 共 48 行

TXT
48
字号
<tree datasources="10-4.rdf" flex="1" ref="urn:root"
      containment="http://xfly.mozdev.org/fly-rdf#list">
  <treecols>
    <treecol id="LabelCol" flex="1"
             sort="rdf:http://xfly.mozdev.org/fly-rdf#label"
             class="sortDirectionIndicator" primary="true" label="Name"/>
    <treecol id="LoCol" flex="1"
             sort="rdf:http://xfly.mozdev.org/fly-rdf#location"
             label="Location"/>
    <treecol id="ColCol" flex="1" 
             sort="rdf:http://xfly.mozdev.org/fly-rdf#color"
             label="Color"/>
  </treecols>
  <template>
    <rule>
      <conditions>
        <content uri="?uri"/>
        <triple subject="?uri"
                predicate="http://xfly.mozdev.org/fly-rdf#list"
                object="?list"/>
        <member container="?list" child="?listitem"/>
        <triple subject="?listitem"
                predicate="http://xfly.mozdev.org/fly-rdf#label"
                object="?label"/>
      </conditions>
      <bindings>
        <binding subject="?listitem"
                 predicate="http://xfly.mozdev.org/fly-rdf#color"
                 object="?color"/>
        <binding subject="?listitem"
                 predicate=" http://xfly.mozdev.org/fly-rdf#location"
                 object="?location"/>
      </bindings>
      <action>
        <treechildren>
          <treeitem uri="?listitem">
            <treerow>
              <treecell ref="LabelCol"  label="?label"/>
              <treecell ref="LoCol" label="?location"/>
              <treecell ref="ColCol" label="?color"/>
            </treerow>
          </treeitem>
        </treechildren>
      </action>
    </rule>
  </template>
</tree>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?