Subject: Re: [docbook-apps] PHP processing instructions
Hi Peter,Yes, that's expected. HTML was based on SGML, and the syntax for a processing instruction in SGML is <? ... > (note there is no closing question mark), and that is what the HTML stylesheet produces. But that forced you to manually insert the closing "?" for PHP. With XHTML, you no longer have to manually add the closing mark because the syntax for a processing instruction in XML is <? ... ?>.
Bob Stayton Sagehill Enterprises firstname.lastname@example.org On 6/18/2016 10:05 AM, Peter Lavin wrote:
Hi, I'm using the 1.79.1 onechunk.xsl transformation style sheets with PHP processing instructions. If I use the HTML onechunk.xsl file in my customization level, a "?" is required immediately before the closing processing instruction tag. For example: <xsl:processing-instruction name="php"> //PHP code here ?</xsl:processing-instruction> This produces the correct opening and closing PHP tags. (<?php ... ?>) If I use the _XHTML_ onechunk.xsl file and a terminating "?" the output is as follows: <?php //PHP code ??> Note the duplicate "?". Is this expected? Thanks.