TAILIEUCHUNG - XML in 60 Minutes a Day phần 7

là một trong những thành phần của các Extensible Stylesheet Language (XSL) gia đình XSL, XSLT, và XPath. Thật không may, trong một chương giới thiệu cấp độ đơn giản như thế này, chúng tôi chỉ có thể làm xước bề mặt của biến đổi XML. | 402 Chapter 10 exercise is simple and fast and you won t have to do a lot of typing. Once you see how it works and that it works you will actually own a functioning example of this kind of data file. You can copy and modify this file to create more of them. 1. Download the file called from the Chapter 10 page of the XML in 60 Minutes a Day Web site as described in this book s introduction and put the file in the C WWW SpaceGems directory. The _IDI has been inserted into the filename to remind you that it contains an internal XML data island. 2. Test the file in the browser to make sure that it works. There is no link to this particular file yet so you must enter the filename as part of the URL don t forget the underscore between the B and the IDI . In the browser s locator bar type http localhost spacegems 3. When the file is displayed it should look like Figure . 4. Using HTML-Kit open the file. 5. Using the following steps as a guide examine the content of the file a. Note that the actual XML data instance is situated between the HTML head tags. b. Look closely at the xml id gemdata opening and xml closing tags. This element type can only be named xml . It indicates to the browser s parser that the information between the start and end tags is the data island. If you were to change the element name from xml to xmla for example it would not work. c. The id attribute defined inside the xml id gemdata start tag is also mandatory. The value gemdata provides the subsequent data island with a data source reference that will be used later in the file. d. Now examine the HTML table element start tag in the following table border 1 width 100 summary Space Gems Quick List of Details datasrc gemdata e. The datasrc gemdata attribute binds the data source specified by the id attribute mentioned in Step c. to the HTML table. This attribute therefore designates the HTML table as a data consumer. XML Data

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã 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.