Đang chuẩn bị liên kết để tải về tài liệu:
Oracle XSQL- P24

Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ

Oracle XSQL- P24Welcome to the exciting world of eXtended Structured Query Language (XSQL) development! What’s so exciting? Efficiency and ease of use. XSQL isn’t some razzle-dazzle technology to wow your users. It also isn’t the latest X standard du jour that no one can stop talking about until you ask, “But what does it do for me today?” The problem with all of the great stuff out there is that no one technology does it all. | 440 Chapter 14 An XSQL Error Template Developing an error handling template is just like developing any other template. Here you ll develop a stylesheet that can be imported into other stylesheets so that you can use the same error handling routines throughout your application. Then you ll look at ways to override the basic error handling stylesheet for specific cases. Here is the error handling stylesheet itself xml version 1.0 xsl stylesheet xmlns xsl http www.w3.org 1999 XSL Transform version 1.0 xsl template match xsql-error xsl param name error-mesg Error xsl param p table border 1 tr td h3 xsl value-of select error-mesg h3 td tr tr td b XSQL Action Handler b xsl value-of select @action td tr tr td b Code b xsl value-of select @code td tr xsl apply-templates table p xsl template xsl template match message tr td b Message b xsl value-of select . td tr xsl template xsl template match statement tr td b Statement b xsl value-of select . td tr xsl template xsl stylesheet Now you just need to add the following xsl import to all of your stylesheets xsl import href xsql-error.xsl Notice that you are doing an import this time not an include. The reasoning is that you can override the default template on a page-by-page basis. For instance if this error comes up in prod-search.xsl you know that it was caused by a bad search string. You can put the following template in prod-search.xsl to handle the error xsl template match xsql-error Fix your broken search string xsl apply-imports xsl template Building XSQL Web Applications 441 This will give the error and then invoke the template that resides in the xsql -error.xsl stylesheet. It is also possible to give more refined messages based on the error code that was returned. This one interprets the error based on the error code that was returned xsl template match xsql-error @code 911 Hey Don t use single quotes in your searches. They aren t allowed. xsl template Because you know what the error is you don t need to trouble the

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.