TAILIEUCHUNG - hackapps book hack proofing your web applications phần 7

Một lần nữa, sau khi giản đồ được định nghĩa, một nhà phát triển Web có thể bắt đầu làm việc trên tài liệu XSL để chuyển đổi tài liệu XML vào giản đồ là một hợp đồng mà tất cả mọi người đồng ý khi cho cấu trúc của bảng phong cách data. | 350 Chapter 8 Securing XML Figure Continued pd ProductName Product Name F pd ProductName pd ProductPrice pd ProductPrice pd Product pd Products Again after the schema was defined a Web developer could begin working on the XSL document to transform the XML document into schema is a contract that everybody agrees upon for the structure of the style sheet is only dependent upon the structure of the data the data itself is style sheet in Figure creates a table based upon an XML document that adheres to the preceding schema. Notice that this style sheet doesn t create a complete HTML document but only some reason for this is that the resulting output of the transformation is incorporated into an existing HTML document. Remember the output of an XSL transformation can be anything including another XML document of a different structure. Figure xml version xsl template xmlns xsl uri xsl h3 Product Listing h3 br table cellspacing 0 cellpadding 10 border 1 tr td b Product ID b td td b Product Name b td td b Price b td tr xsl for-each select pd Products pd Product tr td xsl value-of select pd ProductID td td xsl value-of select pd ProductName td Continued Securing XML Chapter 8 351 Figure Continued td xsl value-of select pd Productprice td tr xsl for-each table xsl template Last but not least we have code required to perform the XSL code is contained within the window onload event of the following HTML document as demonstrated in Figure . It will load both the preceding XML document and XSL style sheet and then transform the XML document using the XSL style resulting transformation is displayed within the div tag. Figure html head title Product Listing title script language javascript for window event onload var source new ActiveXObject var style new ActiveXObject .

TỪ KHÓA LIÊN QUAN
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.