• home
  • forum
  • my
  • kt
  • download
  • Structure of a stylesheet

    Author: 2007-08-28 10:58:06 From:

    An XSLT stylesheet is itself an XML document:

    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
                    xmlns="...">
       .
       .
       .
      <xsl:template match="pattern">   \
        template                        >
    a template rule
      </xsl:template>                  /
       .
       .                  
    <- other top-level elements
       .
    </xsl:stylesheet>

    The namespace http://www.w3.org/1999/XSL/Transform is used to recognize the XSLT elements; elements from other namespaces constitute literal result fragments.

    A document may refer to a stylesheet using the processing instruction:

    <?xml-stylesheet type="text/xsl" href="foo.xsl"?>

    Newer browsers contain an XSLT processor.

    discuss this topic to forum

    relation tutorial

    No relevant information

    Category

      Authoring (2)
      Book Samples (1)
      Database Related (2)
      Development (7)
      Introduction to XML (10)
      Java and XML (1)
      Miscellaneous (5)
      Parsing (2)
      PHP and XML (0)
      Style Sheets (8)
      Web Services (5)

    New

    Hot