Skip to content

Commit

Permalink
Nits
Browse files Browse the repository at this point in the history
  • Loading branch information
Girgias authored Feb 21, 2025
1 parent 000618a commit 2b0666a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions reference/xsl/xsltprocessor/registerphpfunctionns.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@
&reftitle.examples;
<example>
<title>Simple PHP Function call from a stylesheet</title>
<programlisting role="php"><![CDATA[<?php
<programlisting role="php">
<![CDATA[
<?php
$xml = <<<EOB
<allusers>
<user>
Expand Down Expand Up @@ -104,7 +106,9 @@ $proc->registerPHPFunctionNS('urn:my.ns', 'uppercase', strtoupper(...));
$proc->registerPHPFunctionNS('urn:my.ns', 'count', fn (array $arg1) => count($arg1));
$proc->importStyleSheet($xsldoc);
echo $proc->transformToXML($xmldoc);
?>]]></programlisting>
?>
]]>
</programlisting>
</example>
</refsect1>

Expand Down

0 comments on commit 2b0666a

Please sign in to comment.