How to improve override / rewrite variable in XSL?

I want to do the following:

  • Declare a variable
  • Go to the if statement
  • Replace variable

XSL says I cannot declare a variable twice, so what can I do to improve this step?

Another approach was to check if the variable was set at all. I did this because I skipped the first step and declared the variable in the if-statement. In another if-statement, I wanted to check if a variable exists at all.

+3
source share
3 answers

, , " ", , Tomalak, Dimitre, () /.

. (, , !!!??), , , .

XSLT , .. .. , .;);)

XSLT.
, . ( )
.
, , . ( , , ).


, .. ..!? , .. , .. ... .


, 1.

.. .. [ like translate(., abc, ABC)] (Param) .. ..!! .:))

+5

, xslt :

, , , . , xsl: xsl: param , xsl: variable xsl: param . , , xsl: variable xsl: param , xsl: xsl: param .

, .

  • , , , , < xsl: if > , , < xsl: > < xsl: variable >
  • , < xsl: if > ,
    • < xsl: call-template > < xsl: if > .
+2

Source: https://habr.com/ru/post/1745883/


All Articles