HTML and CSS Reference
In-Depth Information
Table H-14 XSLT Elements (continued)
Element Name
Description
xsl:element
Adds a new element node to the output
xsl:fallback
Indicates code to execute if the processor does not support an XSLT element
xsl:for-each
Provides a mechanism to create a loop in the output stream
xsl:if
Provides a conditional branch mechanism based on a condition
xsl:import and xsl:include
Merges rules from different style sheets
xsl:key
Declares a named key that can be used in the style sheet with the key() function
xsl:message
Writes error message to the output
xsl:namespace-alias
Replaces namespaces in the style sheet with different namespaces in the output
xsl:number
Determines the integer position of the current node and formats a number
xsl:otherwise
Is part of the choose mechanism (see xsl:choose)
xsl:output
Defines the format of the output document
xsl:param
Declares a local or global parameter
xsl:preserve-space
Indicates elements to preserve white space
xsl:processing-instruction
Adds a processing statement or instruction to the output
xsl:sort
Reorders input before copying to output
xsl:strip-space
Indicates elements to remove white space
xsl:stylesheet
Defines the root element of the style sheet
xsl:template
Defines a template
xsl:text
Writes literal text or spaces to the output
xsl:transform
Defines the root element of a style sheet
xsl:value-of
Defines a node to insert into the output
xsl:variable
Defines constants
xsl:when
Is part of the choose mechanism (see xsl:choose)
xsl:with-param
Defines the value of a parameter to be passed into a template
Document Type Definition (DTD)
A document type declaration is a processing instruction that tells the processor
where to locate the Document Type Definition. A Document Type Definition (DTD)
defines the elements and attributes in an XML document. A DTD also defines the order in
which the elements and attributes appear. The DTD can be embedded within a document
type declaration, or linked as an external document. Using a DTD allows the developer
to confirm that an XML document is valid, meaning it conforms to the specified structure
in the DTD. The DTD, however, has been largely replaced by developers in favor of the
more succinct definition of the XML Schema Definition. It is included here strictly for
reference only.
The prolog can also contain a document type declaration that tells the processor
where to locate the DTD. The DTD can be an external file or embedded within the
XML document. The DTD has two elements that indicate a relationship between the
parent (<Video>) and the child (<Movie>). Table H-15 shows the general form of a
document type declaration identifying an embedded DTD.
Search WWH ::




Custom Search