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

    >> DTD, XML Schema(XMLS), RELAX NG
    [返回] 中文XML论坛 - 专业的XML技术讨论区XML.ORG.CN讨论区 - XML技术『 DTD/XML Schema 』 → 求助!请各位朋友帮忙一下.谢啦. 查看新帖用户列表

      发表一个新主题  发表一个新投票  回复主题  (订阅本版) 您是本帖的第 4472 个阅读者浏览上一篇主题  刷新本主题   树形显示贴子 浏览下一篇主题
     * 贴子主题: 求助!请各位朋友帮忙一下.谢啦. 举报  打印  推荐  IE收藏夹 
       本主题类别:     
     benjo 帅哥哟,离线,有人找我吗?
      
      
      等级:大一新生
      文章:1
      积分:58
      门派:XML.ORG.CN
      注册:2007/9/15

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给benjo发送一个短消息 把benjo加入好友 查看benjo的个人资料 搜索benjo在『 DTD/XML Schema 』的所有贴子 引用回复这个贴子 回复这个贴子 查看benjo的博客楼主
    发贴心情 求助!请各位朋友帮忙一下.谢啦.

    改错题。
    1、下面是一个使用模板的XSL文档,请对以下XML文档进行改错(直接在原XML文档上进行修改),使之成为格式良好(well-formed)的XML文档。
    <xml version="1.0" encoding="UTF-8"?>
    <xsl:style version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
     <xsl:template match="/">
      <xsl:apply-templates select="endangered_species/animal"/>
     </xsl:template>
     <xsl:temp match="animal"><p align="center"><br/><font size="+3">
    <xsl:apply-templates select="name"/></font></p><table width="100%" border="2">
    <tbody><xsl:for each select="subspecies"><tr><td><xsl:apply-templates select="name"/></td><td> <xsl:value-of select="region"/></td><td> <xsl:value select="population/@year"/></td></tr></xsl:for-each></tbody></table>
     </xsl:template><xsl:template match="name[@language='English']"><nobr><b><xsl:value-of select="."/></b></nobr> </xsl:template><xsl:template match="population"><xsl:value-of select="."/><xsl:if test=0"> <font color="red">--&lt;Extinct!!</font></xsl:if></xsl:template>
    </xsl:stylesheet>

    2、请对以下XML文档进行改错(直接在原XML文档上进行修改),使之成为格式良好(well-formed)的XML文档。

    <?xml version="1.0">
    <!DOCTYPE help[
      <!ENTITY doubleclick "double-click">
    ]>
    <helptopic>
     In<icon>Network Neighborhood</icon>,locate and double-click the computer where the printer you want to use is located <tip targetgroup="beginners">To see which computers have shared printers attached,click the<menu>View</menu>menu,click<menu>Details</menu>,
    &look for printer names or descriptions in the Comment column of the Network Neighborhood window &doubleclick;the printer icon in the window that appears.To set up the printer,follow the instructions on the screen.</tip>
     <step><action></action></step><step><action></step></action>
     <rule form=double/>
      <tip><P>After you have set up a network printer,you can use it as if it were attached to your computer.For related topics,look up &quot;printing&quot;in the Help index.
      </p></tip>
    </helptopic>


       收藏   分享  
    顶(0)
      




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

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

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