Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Can you pass additional parameters to the XSL stylesheet?

0
Posted

Can you pass additional parameters to the XSL stylesheet?

0

Yes, but they will have no effect unless the stylesheet is programmed to deal with those parameters. In my original implementation any parameters were specified during the XSL Transformation process, but I later decided to build them into the element of the XML document so that they could be both visible and easily amendable during testing. If any parameters are required they can be loaded into the $xsl_params array which is defined within the generic table class. Any entries will then be extracted from the object and automatically inserted into XML document by the standard code. Once inside the XML document the existence of any parameters can be detected by code within the XSL stylesheet and the appropriate action taken. Here is an actual working example: • The controller script for transaction pattern MULTI 2 contains the following line: $dbouter->xsl_params = array(‘outer_noedit’ => ‘y’); • This value is then extracted by the following line in function buildXML(): $xsl_para

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123