Is it possible to create a "two-step view" only with XSLT

I am trying to double convert an XML file with different XSLT files (two-step view). Can this be done?

Example: data.xml → converted first.xsl → result of the first conversion (XML) → converted second.xsl → result of the second conversion (HTML)

+3
source share
2 answers

Unfortunately, with standard XSLT 1.0: no, this is not possible.

In XSLT 2.0, the return value of a template can be used as input to another template; therefore, upgrading to XSLT 2.0 (which is easier to work with on many other fronts) will solve this limitation for you.

node-set: , , , , : . http://www.xml.com/pub/a/2003/07/16/nodeset.html .

+3

XSLT 2.0 - <xsl:variable/> , (, ) ( ) / xml xsl:.

XSLT 1.0 xxx: node -set(), xsl: ( RTF - ) XML-/.

EXSLT - " " XSLT 1.0.

+1

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


All Articles