Kinh doanh - Marketing
Kinh tế quản lý
Biểu mẫu - Văn bản
Tài chính - Ngân hàng
Công nghệ thông tin
Tiếng anh ngoại ngữ
Kĩ thuật công nghệ
Khoa học tự nhiên
Khoa học xã hội
Văn hóa nghệ thuật
Sức khỏe - Y tế
Văn bản luật
Nông Lâm Ngư
Kỹ năng mềm
Luận văn - Báo cáo
Giải trí - Thư giãn
Tài liệu phổ thông
Văn mẫu
Giới thiệu
Đăng ký
Đăng nhập
Tìm
Danh mục
Kinh doanh - Marketing
Kinh tế quản lý
Biểu mẫu - Văn bản
Tài chính - Ngân hàng
Công nghệ thông tin
Tiếng anh ngoại ngữ
Kĩ thuật công nghệ
Khoa học tự nhiên
Khoa học xã hội
Văn hóa nghệ thuật
Y tế sức khỏe
Văn bản luật
Nông lâm ngư
Kĩ năng mềm
Luận văn - Báo cáo
Giải trí - Thư giãn
Tài liệu phổ thông
Văn mẫu
Thông tin
Điều khoản sử dụng
Quy định bảo mật
Quy chế hoạt động
Chính sách bản quyền
Giới thiệu
Đăng ký
Đăng nhập
0
Trang chủ
Công Nghệ Thông Tin
Kỹ thuật lập trình
Essential xml Quick Reference PHẦN 5
Đang chuẩn bị liên kết để tải về tài liệu:
Essential xml Quick Reference PHẦN 5
Gia Nghị
84
42
pdf
Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
Ví dụ này minh họa làm thế nào để sử dụng một biến để trả về một giá trị từ một mẫu. Chú ý rằng lệnh gọi-mẫu được chứa trong một yếu tố biến. Bởi vì điều này, bất cứ điều gì là đầu ra trong bản mẫu thêm được thêm vào đoạn cây kết quả cho biến tổng hợp. | 146 Essential XML Quick Reference employee fullname xsl value-of select fullname fullname title xsl value-of select aaron title title employee xsl template This example stores the results of several expressions in variables for later use. Returning values from templates xsl template name add xsl param name x xsl param name y xsl value-of select x y xsl template xsl template match xsl variable name sum xsl call-template name add xsl with-param name x select 30 xsl with-param name y select 70 xsl call-template xsl variable sum xsl value-of select sum sum xsl template This example illustrates how to use a variable to return a value from a template. Notice that the call-template instruction is contained within a variable element. Because of this anything that is output within the add template is added to the result tree fragment for the sum variable. Using variables with recursive templates xsl template name totalSalaries xsl param name empList xsl choose XSL Transformations 1.0 147 xsl when test empList xsl variable name first select empList 1 xsl variable name total xsl call-template name totalSalaries xsl with-param name empList select empList postion 1 xsl call-template xsl variable xsl value-of select first salary total xsl when xsl otherwise 0 xsl otherwise xsl choose xsl template xsl template match xsl variable name salaries xsl call-template name totalSalaries xsl with-param name empList select emp xsl call-template xsl variable Total Salaries xsl value-of select salaries xsl template This example illustrates how to call a template recursively to total a list of employee salaries. XSLT 5.9.34 when xsl when test boolean-expression -- Content template -- xsl when Description Defines a conditional template that is used within the choose element. See choose for more details and an example. 148 Essential XML Quick Reference Attribute Name Default Description test required Specifies an XPath expression that is evaluated as a boolean. 5.9.35 with-param xsl with-param
TÀI LIỆU LIÊN QUAN
Essential XML Quick Reference
Essential xml Quick Reference PHẦN 1
Essential xml Quick Reference PHẦN 2
Essential xml Quick Reference PHẦN 3
Essential xml Quick Reference PHẦN 4
Essential xml Quick Reference PHẦN 5
Essential xml Quick Reference PHẦN 6
Essential xml Quick Reference PHẦN 7
Essential xml Quick Reference PHẦN 8
Essential xml Quick Reference PHẦN 9
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.