XSLT PI and StyleSheet options

Given an XSLT 1.x stylesheet that requires parameters, is there a way to link it to an XML document that sets parameter values? I read the W3C specification document for the PI stylesheet and got the impression that the answer is no, but by the time I was done I had a case of acute BNF poisoning and maybe he missed something.

More specifically, given:

<?xml-stylesheet type="text/xsl" href="cdcatalog.xsl"?>

Is there a way to add some parameters that will be bound to the stylesheet parameters?

+3
source share
2 answers

Your analysis is correct. The xml-stylesheet PI does not have any means to pass parameters to XSL.

XML, , .

+3

, XML- XSLT, ; :

<?xml-stylesheet type="text/xsl" href="cdcatalog.xsl"?>

: XSL XML- .

+1

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


All Articles