Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

There is a code: <?php $xsltproc

Status
Not open for further replies.

sulacco

Technical User
Nov 8, 2002
74
0
0
RU
There is a code:
<?php
$xsltproc = xslt_create();
$arguments = array( '$dayX' => 1 );
$xslt_result = xslt_process($xsltproc, 'file://C:/xml/ex24/cdcatalog.xml', 'file://C:/xml/ex24/cdcatalog.xsl',NULL,NULL,$arguments);
echo $xslt_result;
xslt_free($xsltproc);
?>

in manual there is spec, which explain how to access the
$dayX variable. Anyone knows how to get this variable in
xsl file? The spec is:...
These parameters can then be accessed within your XSL files using the <xsl:param name=&quot;parameter_name&quot;> instruction. The parameters must be UTF-8 encoded and their values will be interpreted as strings by the Sablotron processor...

...But i have a trouble to get this $dayX varible. Anyone
knows what the heck?


 
When you specify parameters on the XSL transformation process you can only access thyem inside your XSL stylesheet using the following line:

<xsl:param name=&quot;name&quot;>default</xsl:param>

where the value 'default' will be overwritten by whatever you supply during the transformation process.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top