Changes

Jump to navigation Jump to search
641 bytes added ,  18:25, 23 November 2017
no edit summary
==xslt:transform==
 
{{Updated with Version 9.0:}} {{Code|$options}} argument added.
{| width='100%'
|-
| width='120' | '''Signatures'''
|{{Func|xslt:transform|$input as item(), $stylesheet as item()|node()}}<br />{{Func|xslt:transform|$input as item(), $stylesheet as item(), $params as map(xs*)|node()}}<br />{{Func|xslt:stringtransform|$input as item(), xs:string$stylesheet as item(), $params as map(*), $options as map(*)|node()}}
|-
| '''Summary'''
* {{Code|xs:string}}, containing the document in its string representation, or
* {{Code|node()}}, containing the document itself.
The {{Code|$params}} argument can be used to bind variables to a stylesheet. Only strings are supported when using Saxon (XSLT 2.0).The following {{Code|$options}} are available:* {{Code|cache}}: cache XSLT transformer (speeds up repeated transformations, but may increase memory consumption)
|-
| '''Error'''
==xslt:transform-text==
 
{{Updated with Version 9.0:}} {{Code|$options}} argument added.
{| width='100%'
|-
| width='120' | '''Signatures'''
|{{Func|xslt:transform-text|$input as item(), $stylesheet as item()|xs:string}}<br />{{Func|xslt:transform-text|$input as item(), $stylesheet as item(), $params as map(*)|xs:string}}<br />{{Func|xslt:transform-text|$input as item(), $stylesheet as item(), $params as map(*), xs:string$options as map(*)|xs:string}}
|-
| '''Summary'''
|Transforms the document specified by {{Code|$input}}, using the XSLT template specified by {{Code|$stylesheet}}, and returns the result as string. The semantics of {{Code|$params}} and {{Code|$options}} is the same as for [[#xslt:transform|xslt:transform]].<br />
|-
| '''Error'''
;Version 9.0
* Updated: [[#xslt:transform|xslt:transform]], [[#xslt:transform-text|xslt:transform-text]]: {{Code|$options}} argument added.
* Updated: error codes updated; errors now use the module namespace
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu