读XML in a Nutshell (10)

本篇包括Chapter 13以及之后的东西,其实没什么内容,关于xml schema那一章讲得太略了,所以这方面的总结参看XML Schema的读书总结。

1.XSL-FO(XML Formatting Object),可以把它看成类似html,pdf之类的东西,就是描述有哪些形状啊,形状的大小位置之类的语言,目前没有一个能够直接浏览XSL-FO生成结果的东西,一般都是转成pdf之后再打印什么的。

2.RDDL(Resource Directory Description Language),W3C推荐在namespace的url处放下这个东东,用来描述该namespace,RDDL是XHTML Basic(就是XHTML的一个子集)加上一个resource标签构成。resource标签下面是可以被展示给用户看的描述性语言,同时这个标签可以包含xlink:href,xlink:role(nature,就是这个resource是什么),xlink:arcrole(purpose,就是这个resource用来干嘛的)这几个属性来提供自动化工具所需要的信息。关于xlink:role跟xlink:arcrole,W3C给出了一些标准值。以下是例子:
<!DOCTYPE html PUBLIC "-//XML-DEV//DTD XHTML RDDL 1.0//EN" "http://www.rddl.org/rddl-xhtml.dtd">
<html xmlns=http://www.w3.org/1999/xhtml xmlns:xlink=http://www.w3.org/1999/xlink xmlns:rddl="http://www.rddl.org/">
<head><title>An XML Application Describing People</title></head>
<body>
<h1>An XML Application Describing People</h1>
<rddl:resource xlink:type="simple" xlink:href="urn:isbn:1565922247" xlink:role=http://dublincore.org/documents/dcmi-type-vocabulary/#text xlink:arcrole="http://www.rddl.org/purposes#normative-reference">
<p>
http://www.cafeconleche.org/namespaces/people is the namespace URL for an XML application describing people in a data-oriented fashion used as an example in <cite>XML in a Nutshell</cite>, second edition by Elliotte Rusty Harold and W. Scott Means (O'Reilly &amp; Associates, 2002).
</p>
</rddl:resource>
<h2>Related Resources</h2>
<p>
Several examples in this book address this application in one way or another. These include:
</p>
<ul>
<li>
<rddl:resource xlink:type="simple" xlink:href=http://www.cafeconleche.org/books/xian2/examples/03/3-5.dtd xlink:role=http://www.isi.edu/in-notes/iana/assignments/mediatypes/application/xml-dtd xlink:arcrole="http://www.rddl.org/purposes#validation">
<a href="http://www.cafeconleche.org/books/xian2/examples/03/3-5.dtd">Example 3-5</a>: A data oriented DTD describing people
</rddl:resource>
</li>
<li>
<rddl:resource xlink:type="simple" xlink:href="http://www.cafeconleche.org/books/xian2/examples/08/8-15.xsl"
xlink:role=http://www.w3.org/1999/XSL/Transform xlink:arcrole="http://www.isi.edu/in-notes/iana/assignments/mediatypes/
text/html">
<a href="http://www.cafeconleche.org/books/xian2/examples/08/8-15.xsl">Example 8-15</a>: An XSLT stylesheet for people documents
</rddl:resource>
</li>
</ul>
<p>
This document itself is<a href="http://www.cafeconleche.org/books/xian/examples/14/14-2.html">Example 14-2</a> from the RDDL chapter.
</p>
</body>
</html>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值