XSL: Variable with XSL: PARAM (original)

xiaoxiao2021-03-04  51

Let's take an example:

Today


Last Update:

For the XML template, the name attribute is a very critical call-template / apply-template's Name must be and template's Name

Corresponding. Templates are equivalent to a function, you can see it for the time being. Name is equivalent to the function name.

Using XSL: with-param in Call-Template is equivalent to function parameter input

The parameter statement is quite in XSL: Template XSL: PARAM

Speaking XSL: Variable.

You can declare the

CONST is equivalent to C because the variable is not changed again.

For XSL: PARAM and XSL: Variable, you can use $ NAME to choose directly, for example

is to select a DATE variable or parameter

Variables and parameters are the same as the reason why there is a declaration.

The last most important thing: XSL's variable is constant that can no longer change again.

Don't be confused by its name,

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

New Post(0)