tailieunhanh - Building Oracle XML Applications phần 10
Tất cả ba bộ vi xử lý sản xuất đầu ra sau đây giống hệt nhau: 20% 26% 20t% 20% 2F% 20mobilecom Chúng tôi có thể viết một tờ kiểu dáng liên quan đến chức năng mở rộng trong không gian tên khác nhau (chỉ trong đó, chúng tôi đang mong đợi để được sử dụng bởi các | top of the stylesheet before any other XSLT actions we ve changed to be imported instead of included and we ve moved both of the xsi import statements to the top of the list in the appropriate order -- Transform the Abstract Structure of a page -- xsl stylesheet xmlns xsl http 1999 XSL Transform version xsl import href xsl import href xsl include href xsl include href xsl include href Refreshing our page in the browser we see what s shown in Figure . The forums are now hyperlinks to the drill-down page we ll create next. Figure . Forum titles show as hyperlinks paging control is centered I orums Active Topics Today Search Forum Last Post Posts Ũ7 May 2DŨQ 23 3B 4 D7 May 2000 22 38 5 oradeai D7 May 2D0Q 22 37 4 aXI. Ũ7 May 2DŨD 22 47 12 Page 1 of 1 - Total 4 We ve now basically done all the hard work to set up the abstract page structure and get an example page styled according to our web designer s specifications. Creating additional pages simply involves coming up with the XSQL page to represent the structure and data for new pages and possibly introducing additional column-level overrides if we have to do one-off processing. Figure illustrates all the pages we will build. One down seven to go. Figure . Map of XSQL pages to implement discussion forum To create the drill-down page we throw together the XSQL page describing its breadcrumbs actions data and paging and we re done. Example shows these four structural parts in a single XSQL data page template. Example . XSQL Page to Display List of Topics for a Forum xml version -- Show list of topics for a forum -- xml-stylesheet type text xsl href page connection xmlbook xmlns xsql urn oracle-xsql -- Include request params so Actions can check for forumuser cookie -- xsql .
đang nạp các trang xem trước