Tài liệu XSLT Quick Reference

Thảo luận trong 'Lập Trình' bắt đầu bởi Thúy Viết Bài, 5/12/13.

  1. Thúy Viết Bài

    Thành viên vàng

    Bài viết:
    198,891
    Được thích:
    167
    Điểm thành tích:
    0
    Xu:
    0Xu
    ELEMENT: xsl:apply-imports
    <xsl:apply-imports>
    </xsl:apply-imports>
    The xsl:apply-imports element is used to apply (invoke) the definitions and template rules of
    an imported stylesheet that normally might be overridden by the importing stylesheet.
    When one or more stylesheets are imported using the xsl:import element, the imported
    stylesheets are assigned a lower import precedence than the importing stylesheet. This means
    that the definitions and rules contained in the imports may be overridden and therefore may not
    be applied. The purpose of the xsl:apply-imports element is to permit these overridden rules
    to be applied when and where you desire them to be applied.
    This element has no attributes. It is not a self-closing tag. The separate closing element is
    mandatory.
    We use the DevGuru Staff List XML file for our example with the following header:
    <?xml-stylesheet type=text/xsl href=xslt_example_applyimports.xsl?>
    and we name it: xslt_example_applyimports.xml
    We import and apply: xslt_example_choose.xsl
    Code for xslt_example_applyimports.xsl:
    <xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform version=1.0>
    <xsl:import href=xslt_example_choose.xsl />
    <xsl:template match=/>
    <html>
    <body>
    <xsl:apply-imports />
    </body>
    </html>
    </xsl:template>
    </xsl:stylesheet>
     

    Các file đính kèm:

Đang tải...
Chủ đề tương tự
  1. Thúy Viết Bài

    Tài liệu CSS Quick Reference

    Thúy Viết Bài, 5/12/13, trong diễn đàn: Lập Trình
    Trả lời:
    0
    Xem:
    800
  2. Thúy Viết Bài

    Tài liệu HTML Quick Reference

    Thúy Viết Bài, 5/12/13, trong diễn đàn: Lập Trình
    Trả lời:
    0
    Xem:
    799
  3. Thúy Viết Bài
    Trả lời:
    0
    Xem:
    867
  4. Thúy Viết Bài

    Tài liệu XHTML Quick Reference

    Thúy Viết Bài, 5/12/13, trong diễn đàn: Lập Trình
    Trả lời:
    0
    Xem:
    733
  5. Thúy Viết Bài
    Trả lời:
    0
    Xem:
    805