读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>

你可能感兴趣的:(html,xml,XHTML,读书,XSL)