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

URL trong thanh địa chỉ trình duyệt của mình, yêu cầu sẽ được gửi đến máy chủ đã được cấu hình với các spacegems tên miền (máy chủ có lẽ là trong DMZ1 ở đây). Sau khi máy chủchuẩn bị dữ liệu XML để chế biến tiếp. Những biến đổi này sẽ sử dụng các Extensible Stylesheet Language Transformation (XSLT) ngôn ngữ, | 258 Chapter 7 note So far the five_Cs class selector we created in the style sheet document could be applied to any element in the document. All we have to do is select an element and insert the CLASS . attribute specification in its start tag. As a variation on class selectors we could create a class that applies to only specified elements. Here is the generic syntax that we would insert into the CSS file propertynamel value . propertynamen value Previously placing the period . at the beginning of the name of the selector class made it possible to apply the class to all elements. Here placing a period between a specific element name and the class name ensures that the class will apply to only that element. Let s look at an example. In the small Space Gems diamond list let s say that we want to modify the appearance of the names of the gems that is Cullinan and Dark so that even though they keep their existing display style they appear gold on a magenta background. Follow these steps 1. Start with the original style sheet document. In addition to the existing name element selector add another selector with the following class definition display block font-weight bold text-align center color gold background-color magenta The resulting style sheet document should resemble the modified document in Figure . 2. To apply the class definition to the names of the diamonds go to the file and modify the name elements as follows name CLASS Cullinan name name CLASS Dark name 3. Finally to ensure that the document is valid declare the new CLASS attribute in the DTD document. Insert the following attribute declaration into that document ATTLIST name CLASS CDATA IMPLIED Grouping Selectors by Pseudo-Classes Like pseudo-elements pseudo-classes classify elements on characteristics that cannot be deduced from the document tree pseudo-classes like .

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.