What is the difference between using XSLT and declaring elements literally?

后端 未结 4 1307
旧时难觅i
旧时难觅i 2020-12-20 20:59

I have started using XSLT just recently and am wondering what the effective difference is between using for defining elements vs. just decla

4条回答
  •  误落风尘
    2020-12-20 21:20

    xsl:element allows defining elements whose name you don't know when writing the stylesheet and also element whose names are dynamically created. I would always use the inline definition (i.e. by hand) if possible. It is shorter and I consider it more readable.

提交回复
热议问题