⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 moz0907ex.txt

📁 mozilla developer book examples.
💻 TXT
字号:
<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 1: Row contains both a color and location. -->
    <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"/>
        <triple subject="?listitem"
                predicate="http://xfly.mozdev.org/fly-rdf#color"
                object="?color"/>
        <triple subject="?listitem"
                predicate="fly-location#location"
                object="?location"/>
      </conditions>
      <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>
    <!-- RULE 2: Row contains a color and no location. -->
    <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"/>
        <triple subject="?listitem"
                predicate="http://xfly.mozdev.org/fly-rdf#color"
                object="?color"/>
      </conditions>
      <action>
        <treechildren>
          <treeitem uri="?listitem">
            <treerow>
              <treecell ref="LabelCol" label="?label"/>
              <treecell ref="LoCol" label="-"/>
              <treecell ref="ColCol" label="?color"/>
            </treerow>
          </treeitem>
        </treechildren>
      </action>
    </rule>
    <!-- RULE 3: Row contains neither a color or location. -->
    <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>
      <action>
        <treechildren>
          <treeitem uri="?listitem">
            <treerow>
              <treecell ref="LabelCol" label="?label"/>
              <treecell ref="LoCol" label=" "/>
              <treecell ref="ColCol" label=" "/>
            </treerow>
          </treeitem>
        </treechildren>
      </action>
    </rule>
  </template>
</tree>

⌨️ 快捷键说明

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