tailieunhanh - Creating Applications with Mozilla-Chapter 10. RDF, RDF Tools, and the Content Model -P2

Tham khảo tài liệu 'creating applications with mozilla-chapter 10. rdf, rdf tools, and the content model -p2', công nghệ thông tin, quản trị web phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | Chapter 10. RDF RDF Tools and the Content Model -P2 This file s root resource is an urn root which is the conventional name for root nodes in Mozilla s RDF files. When rendering RDF files defining a root node for processing the document can be useful -- especially when building templates. This root node can be entered as the first item in the file xml version rdf RDF xmlns rdf http 1999 02 22-rdf-syntax-ns xmlns fly http fly-rdf xmlns location fly-location rdf Description about urn root rdf Description rdf RDF . Root sequence Next a generic tag needs to be used to specify a sequence of fly data. As in Example 10-2 fly list is used as a list of fly types. This tag is a generic name because of the way XUL templates process lists of RDF data. If a list of data has sublists as in the following examples then they must use the same tag name to recurse correctly for the data they contain. Example 10-2 represents all the information given in the first paragraph of the text example There is a jar set up with the name urn root. Inside of it there are two types of flies listed as House and Horse. Example 10-2. RDF root sequence xml version rdf RDF xmlns rdf http 1999 02 22-rdf-syntax-ns xmlns fly http fly-rdf xmlns location fly-location rdf Description about urn root fly list rdf Seq rdf li rdf Description ID House fly label House rdf li rdf li rdf Description ID Horse fly label Horse rdf li rdf Seq fly list rdf Description rdf RDF An RDF sequence resides with its list of resources inside fly list . Here shorthand RDF specifies a label with the fly label attribute. The ID attribute within this sequence is actually a pointer to the main definition of the resource described by an about attribute of the same value. The about attribute includes a in its identifier much like HTML anchors use a href frag to refer to a name frag . For example ID Horse points to about Horse elsewhere in the file allowing you to add

TỪ KHÓA LIÊN QUAN
crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.