新书推介:《语义网技术体系》
作者:瞿裕忠,胡伟,程龚
   XML论坛     W3CHINA.ORG讨论区     计算机科学论坛     SOAChina论坛     Blog     开放翻译计划     新浪微博  
 
  • 首页
  • 登录
  • 注册
  • 软件下载
  • 资料下载
  • 核心成员
  • 帮助
  •   Add to Google

    >> DTD, XML Schema(XMLS), RELAX NG
    [返回] 中文XML论坛 - 专业的XML技术讨论区XML.ORG.CN讨论区 - XML技术『 DTD/XML Schema 』 → 求助!这样结构的XML的schema应该怎么写?初学者,绕了半天绕不过来 查看新帖用户列表

      发表一个新主题  发表一个新投票  回复主题  (订阅本版) 您是本帖的第 2916 个阅读者浏览上一篇主题  刷新本主题   树形显示贴子 浏览下一篇主题
     * 贴子主题: 求助!这样结构的XML的schema应该怎么写?初学者,绕了半天绕不过来 举报  打印  推荐  IE收藏夹 
       本主题类别:     
     dosh 帅哥哟,离线,有人找我吗?
      
      
      等级:大一新生
      文章:0
      积分:53
      门派:XML.ORG.CN
      注册:2006/5/15

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给dosh发送一个短消息 把dosh加入好友 查看dosh的个人资料 搜索dosh在『 DTD/XML Schema 』的所有贴子 引用回复这个贴子 回复这个贴子 查看dosh的博客楼主
    发贴心情 求助!这样结构的XML的schema应该怎么写?初学者,绕了半天绕不过来

    各位高手可以列出完整的schema给小弟参考么?谢谢啊~~~

    <?xml version="1.0" ?>
    <?xml-stylesheet type="text/xsl" href="emp.xsl" ?>
    <employee_list>
    <employee>
      <name>David Lee </name>
      <position>Kitchener</position>
      <id>10001 </id>
      <phone_no>0433748995</phone_no>
      <description>Stay in the kitchen and make lunch for the customers</description>
      <shift>9:30AM-1:30PM</shift>
      <img>david.jpg</img>
    </employee>
    <employee>
      <name>Angela Howard </name>
      <position>Receptionist</position>
      <id>10002 </id>
      <phone_no>0449876204</phone_no>
      <description>Receive orders and payments</description>
      <shift>10:30AM-2:00PM</shift>
      <img>angela.jpg</img>
    </employee>
    <employee>
      <name>Tracey Hao </name>
      <position>Receptionist</position>
      <id>10003 </id>
      <phone_no>0439850163</phone_no>
      <description>Receive orders and payments</description>
      <shift>10:30AM-2:00PM</shift>
      <img>tracey.jpg</img>
    </employee>
    <employee>
      <name>Mike Jackson </name>
      <position>Deliverer</position>
      <id>10004 </id>
      <phone_no>0408184936</phone_no>
      <description>Make sure the deliverability and the lunch is delivering to correct customers</description>
      <shift>10:30AM-2:30PM</shift>
      <img>mike.jpg</img>
    </employee>
    <employee>
      <name>Andrew Gates </name>
      <position>Driver</position>
      <id>10005 </id>
      <phone_no>0402187675</phone_no>
      <description>Delivery car driver</description>
      <shift>10:30AM-3:00PM</shift>
      <img>andrew.jpg</img>
    </employee>
    </employee_list>


       收藏   分享  
    顶(0)
      




    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2006/5/16 3:56:00
     
     gemingke 帅哥哟,离线,有人找我吗?
      
      
      威望:2
      等级:计算机学士学位
      文章:321
      积分:2078
      门派:XML.ORG.CN
      注册:2005/9/21

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给gemingke发送一个短消息 把gemingke加入好友 查看gemingke的个人资料 搜索gemingke在『 DTD/XML Schema 』的所有贴子 点击这里发送电邮给gemingke 引用回复这个贴子 回复这个贴子 查看gemingke的博客2
    发贴心情 
    .........
    <xs:element name="employee_list">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="employee" type="employeeType" maxoccurs="unbounded"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>

    <xs:complexType name="employeeType">
    <xs:sequence>
    <xs:element name="name" ........./>
    .................
    <xs:element name="img" .........?>  
    </xs:sequence>
    </xs:complexType>

    ----------------------------------------------
    天下英雄谁敌手?曹刘,生子当如孙仲谋!

    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2006/5/16 11:58:00
     
     GoogleAdSense
      
      
      等级:大一新生
      文章:1
      积分:50
      门派:无门无派
      院校:未填写
      注册:2007-01-01
    给Google AdSense发送一个短消息 把Google AdSense加入好友 查看Google AdSense的个人资料 搜索Google AdSense在『 DTD/XML Schema 』的所有贴子 点击这里发送电邮给Google AdSense 访问Google AdSense的主页 引用回复这个贴子 回复这个贴子 查看Google AdSense的博客广告
    2024/5/21 9:16:00

    本主题贴数2,分页: [1]

    管理选项修改tag | 锁定 | 解锁 | 提升 | 删除 | 移动 | 固顶 | 总固顶 | 奖励 | 惩罚 | 发布公告
    W3C Contributing Supporter! W 3 C h i n a ( since 2003 ) 旗 下 站 点
    苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
    62.500ms