XSL References-from W3Schools.com

xiaoxiao2021-03-06  42

XSLT Elements Reference

The xslt elements from the w3c recommentation (xslt version 1.0).

XSLT Elements

........................

NN: INDICATES The Earliest Version of Netscape That Supports The Tag IE: INDICES The Earliest Version of Internet Explorer That Supports The Tag

Note: All Elements Supported in IE 5.x May Have Non-Standard Behavior, Because IE 5.x Was Released Before XSLT Became A W3C Recommendation!

ElementDescriptionIENNapply-importsApplies a template rule from an imported style sheet6.0 apply-templatesApplies a template rule to the current element or to the current element's child nodes5.06.0attributeAdds an attribute5.06.0attribute-setDefines a named set of attributes6.06.0call-templateCalls a named template6.06.0chooseused in conjunction with and

to express multiple conditional tests5.06.0commentCreates a comment node in the result tree5.06.0copyCreates a copy of the current node (without child nodes and attributes) 5.06.0copy-ofCreates a copy of the current node (with child nodes and attributes) 6.06 .0decimal-formatDefines the characters and symbols to be used when converting numbers into strings, with the format-number () function6.0 elementCreates an element node in the output document5.06.0fallbackSpecifies an alternate code to run if the processor does support an not XSLT element6.0 for-eachLoops through each node in a specified node set5.06.0ifContains a template that will be applied only if a specified condition is true5.06.0importImports the contents of one style sheet into another Note:. An imported style sheet has lower precedence than the importing style sheet6.06.0includeIncludes the contents of one style sheet into another Note:. An included style sheet has the same precedence as the including style sheet6.06.0keyDec lares a named key that can be used in the style sheet with the key () function6.06.0messageWrites a message to the output (used to report errors) 6.06.0namespace-aliasReplaces a namespace in the style sheet to a different namespace in the output6 .0 Numberdermines the integer position of the current node and formats a number6.06.0 Herwisespecifies a Default action for the

element5.06.0outputDefines the format of the output document6.06.0paramDeclares a local or global parameter6.06.0preserve-spaceDefines the elements for which white space should be preserved6.06.0processing-instructionWrites a processing instruction to the output5.06.0sortSorts the output6.06.0 strip-spaceDefines the elements for which white space should be removed6.06.0stylesheetDefines the root element of a style sheet5.06.0templateRules to apply when a specified node is matched5.06.0textWrites literal text to the output5.06.0transformDefines the root element of a style sheet6.06.0value-ofExtracts the value of a selected node5.06.0variableDeclares a local or global variable6.06.0whenSpecifies an action for the element5.06.0with-paramDefines the value of a parameter to be passed into a template6.06.0XSLT Functions

XSLT Supplies a Number of Functions.

XSLT functions

NameDescriptioncurrent () Returns the current nodedocument () Used to access the nodes in an external XML documentelement-available () Tests whether the element specified is supported by the XSLT processorformat-number () Converts a number into a stringfunction-available () Tests whether the function specified is supported by the XSLT processorgenerate-id () Returns a string value that uniquely identifies a specified nodekey () Returns a node-set using the index specified by an elementsystem-property () Returns the value of The System Propertiesunparsed-Entity-Uri () Returns The Uri of An Unparsed Entity

Inherited Xpath Functions

You can also use all the xpath functions in xslt. Look at the xpath functions.

转载请注明原文地址:https://www.9cbs.com/read-67109.html

New Post(0)