以文本方式查看主题

-  中文XML论坛 - 专业的XML技术讨论区  (http://bbs.xml.org.cn/index.asp)
--  『 XML源码及示例(仅原创和转载) 』  (http://bbs.xml.org.cn/list.asp?boardid=32)
----  请教各位高手帮我看看这段代码  (http://bbs.xml.org.cn/dispbbs.asp?boardid=32&rootid=&id=30899)


--  作者:loos
--  发布时间:4/20/2006 5:39:00 AM

--  请教各位高手帮我看看这段代码
新手上路,不明白这段代码为什么不能显示运行,各位大侠帮我看看,不要见笑阿。
<?xml version="1.0" encoding="UTF-8"?>
- <!--  $Rev: 939 $ $Date: 2006-04-11 10:49:22 +0200 (Tue, 11 Apr 2006) $ $Author: giurca $
  -->
- <!--  This example file is based on the Version 0.1 of R2ML
  -->
- <r2ml:RuleBase xmlns:r2ml="http://oxygen.de/R2ML/0.1/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://oxygen.informatik.tu-cottbus.de/R2ML/0.1/ http://oxygen.de/R2ML/0.1/R2ML.xsd">
- <r2ml:DerivationRuleSet>
- <!-- Prolog  derivation rule 1

  -->
- <r2ml:DerivationRule r2ml:id="DR001">
- <r2ml:Documentation>
  <r2ml:RuleText r2ml:textFormat="plain">If X is the parent of Y and X is brother of Z then Z is the uncle of Y</r2ml:RuleText>
- <r2ml:SourceCode r2ml:language="Prolog">
- <![CDATA[  uncle(Z,Y):-parent(X,Y),brother(X,Z) .
  ]]>
  </r2ml:SourceCode>
  <dc:subject>Uncle definition</dc:subject>
  <dc:creator>A G</dc:creator>
  <dc:contributor>G W</dc:contributor>
  <dc:contributor>S L</dc:contributor>
  <dc:title>Uncle Rule</dc:title>
  <dc:description>REWERSE I1 Rules Markup Language</dc:description>
  <dc:date>2006-04-06</dc:date>
  </r2ml:Documentation>
- <r2ml:conditions>
- <r2ml:GenericAtom r2ml:predicateID="parent">
- <r2ml:arguments>
  <r2ml:Variable r2ml:name="X" />
  <r2ml:Variable r2ml:name="Y" />
  </r2ml:arguments>
  </r2ml:GenericAtom>
- <r2ml:GenericAtom r2ml:predicateID="brother">
- <r2ml:arguments>
  <r2ml:Variable r2ml:name="X" />
  <r2ml:Variable r2ml:name="Z" />
  </r2ml:arguments>
  </r2ml:GenericAtom>
  </r2ml:conditions>
- <r2ml:conclusion>
- <r2ml:GenericAtom r2ml:predicateID="uncle">
- <r2ml:arguments>
  <r2ml:Variable r2ml:name="Z" />
  <r2ml:Variable r2ml:name="Y" />
  </r2ml:arguments>
  </r2ml:GenericAtom>
  </r2ml:conclusion>
  </r2ml:DerivationRule>
- <!--


--  作者:loos
--  发布时间:4/21/2006 5:52:00 AM

--  
niemand da
W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
46.875ms